[PR #7322] [MERGED] Port map: ToggleTooltips.run is the /item modify arm #7493

Closed
opened 2026-11-03 06:40:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7322
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-d-classes-09


📝 Commits (2)

  • e1ed944 port map: ToggleTooltips.run is the /item modify arm
  • 963baaf port map: the ToggleTooltips class row names the arm's function

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 tools/port_map/classes-09.tsv (+2 -1)

📄 Description

Rows of tools/port_map/classes-09.tsv (157 rows, map-check clean against 26.3), the loot table's conditions, number providers and the shape mergers. The batch was already accurate where it answered; the gap was one method it never answered, and one note that read as if a modifier id were a function.

Rows

  • ToggleTooltips.run — added, inline crates/horizon-client/src/game/commands/items.rs::Game::cmd_item_modify. The class row says the /item modify arm writes what run writes, but left the method itself unanswered, so the ledger still counted it missing. The arm is minecraft:toggle_tooltips (items.rs:583): it keeps hide_tooltip, adds every false toggle to tooltip_display's hidden_components and re-inserts the component, and the loot run has no arm for the id, so a loot table naming it is ignored — no 26.3 loot table does (data/minecraft/loot_table: no toggle_tooltips, and the jar ships no item_modifier data at all).
  • ToggleTooltips (class row) — its note now names cmd_item_modify, the function the arm lives in. "the /item modify arm toggle_tooltips" read as though toggle_tooltips were a function; it is the id the match arm is keyed by.

Checked and left alone, since each one holds at this commit:

  • SmeltItemFunction.run and the four Context::condition targets are arms of one match each: loot.rs:1430 has furnace_smelt, and loot.rs:1286 has damage_source_properties, inverted, location_check, entity_properties and random_chance (plus random_chance_with_enchanted_bonus).
  • The eight floats/* rows pointing at compute.rs::Game::provider_float and the eight ints/* rows pointing at provider_int each have their arm: avg, sub, length, max, min, mod, mul, div, truncate, add, and floor_mod, floor_div, mod, mul, div, add, avg, sub, max, min respectively. provider_select has the conditional, number_dispatcher and weighted-list branches the three provider rows and the two resolvable rows name.
  • The three merger rows that share shape/join.rs::merge belong there: merge picks the gcd/lcm grid when both sides are cubes (DiscreteCubeMerger), the identical-coordinate case (IdenticalMerger) and the general walk (IndirectMerger); disjoint covers both NonOverlappingMerger rows.
  • MinecartCollisionContext stays missing: minecarts.rs::move_cart resolves the move through SceneCollisions/EntityCollisions with no context that would let a cart pass the block under its rail or the slope block of an ascending one.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/classes-09.tsv
157 rows, no problems.

Proven: the added row and the rewritten note; cmd_item_modify's minecraft:toggle_tooltips arm is read at this commit, with the hidden-components and hide_tooltip handling, and grep finds no toggle_tooltips in crates/horizon-world/src/loot.rs. The "no vanilla data uses it" notes in this file were checked against the jar's data: of 1447 loot tables, none names set_written_book_pages, set_writable_book_pages, entity_scores, time_check, environment_attribute_check or a storage provider, while set_stew_effect is used by three and is handled at loot.rs:1529.

Not proven: nothing here changes a gameplay verdict — the added row records code that already exists in the command path, and the loot-table hole it names stays open. I did not run the game, and the Vec3i-style arithmetic rows of the sibling batches were not re-checked from this file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7322 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-d-classes-09` --- ### 📝 Commits (2) - [`e1ed944`](https://github.com/horizon-rust/horizon/commit/e1ed94450bb8dfed7bb7eb68da1743c8b2baaa87) port map: ToggleTooltips.run is the /item modify arm - [`963baaf`](https://github.com/horizon-rust/horizon/commit/963baaf3a68392e7b99b17961608ae804f25c97e) port map: the ToggleTooltips class row names the arm's function ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-09.tsv` (+2 -1) </details> ### 📄 Description Rows of `tools/port_map/classes-09.tsv` (157 rows, map-check clean against 26.3), the loot table's conditions, number providers and the shape mergers. The batch was already accurate where it answered; the gap was one method it never answered, and one note that read as if a modifier id were a function. **Rows** - `ToggleTooltips.run` — added, `inline crates/horizon-client/src/game/commands/items.rs::Game::cmd_item_modify`. The class row says the `/item modify` arm writes what `run` writes, but left the method itself unanswered, so the ledger still counted it `missing`. The arm is `minecraft:toggle_tooltips` (`items.rs:583`): it keeps `hide_tooltip`, adds every `false` toggle to `tooltip_display`'s `hidden_components` and re-inserts the component, and the loot run has no arm for the id, so a loot table naming it is ignored — no 26.3 loot table does (`data/minecraft/loot_table`: no `toggle_tooltips`, and the jar ships no `item_modifier` data at all). - `ToggleTooltips` (class row) — its note now names `cmd_item_modify`, the function the arm lives in. "the `/item modify` arm toggle_tooltips" read as though `toggle_tooltips` were a function; it is the id the match arm is keyed by. Checked and left alone, since each one holds at this commit: - `SmeltItemFunction.run` and the four `Context::condition` targets are arms of one match each: `loot.rs:1430` has `furnace_smelt`, and `loot.rs:1286` has `damage_source_properties`, `inverted`, `location_check`, `entity_properties` and `random_chance` (plus `random_chance_with_enchanted_bonus`). - The eight `floats/*` rows pointing at `compute.rs::Game::provider_float` and the eight `ints/*` rows pointing at `provider_int` each have their arm: `avg`, `sub`, `length`, `max`, `min`, `mod`, `mul`, `div`, `truncate`, `add`, and `floor_mod`, `floor_div`, `mod`, `mul`, `div`, `add`, `avg`, `sub`, `max`, `min` respectively. `provider_select` has the `conditional`, `number_dispatcher` and weighted-list branches the three provider rows and the two `resolvable` rows name. - The three merger rows that share `shape/join.rs::merge` belong there: `merge` picks the gcd/lcm grid when both sides are cubes (`DiscreteCubeMerger`), the identical-coordinate case (`IdenticalMerger`) and the general walk (`IndirectMerger`); `disjoint` covers both `NonOverlappingMerger` rows. - `MinecartCollisionContext` stays `missing`: `minecarts.rs::move_cart` resolves the move through `SceneCollisions`/`EntityCollisions` with no context that would let a cart pass the block under its rail or the slope block of an ascending one. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/classes-09.tsv 157 rows, no problems. ``` **Proven:** the added row and the rewritten note; `cmd_item_modify`'s `minecraft:toggle_tooltips` arm is read at this commit, with the hidden-components and hide_tooltip handling, and `grep` finds no `toggle_tooltips` in `crates/horizon-world/src/loot.rs`. The "no vanilla data uses it" notes in this file were checked against the jar's data: of 1447 loot tables, none names `set_written_book_pages`, `set_writable_book_pages`, `entity_scores`, `time_check`, `environment_attribute_check` or a storage provider, while `set_stew_effect` is used by three and is handled at `loot.rs:1529`. **Not proven:** nothing here changes a gameplay verdict — the added row records code that already exists in the command path, and the loot-table hole it names stays open. I did not run the game, and the `Vec3i`-style arithmetic rows of the sibling batches were not re-checked from this file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7493
No description provided.