[GH-ISSUE #3515] CRUCIAL: Player-visible port gaps: Items, enchantments and inventories (21) #995

Closed
opened 2026-11-02 15:43:26 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @kacpherek on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3515

Originally assigned to: @xFedeT on GitHub.

Rows from the port ledger's verdict map (tools/port_map/*.tsv, #3139) that a player would notice: a vanilla 26.3 method Horizon doesn't port (missing) or ports only in part (gap). Each row came from reading the vanilla method and Horizon's code. None was checked in game, and about 1 in 12 map rows is wrong, so read both sides before fixing: python3 tools/port_ledger.py where Class.method prints the vanilla source and the Rust side (it needs #3139).

Tick a row when it is fixed, or when it turns out wrong (say so in a comment). Rows that match an open issue come first, then missing behaviour, then partial ports.

  • DyeColor.getMixedColor (missing): a baby sheep, wolf or cat from parents of two dye colours gets a mixed colour; Horizon has no breeding dye mix (only sheep_color for spawns). horizon-client/src/entities.rs (fixed in #3949)
  • ItemStack.canBreakBlockInAdventureMode (missing): in adventure mode a block can be broken only when the held item's can_break list allows it; Horizon does not read that component. horizon-client/src/game.rs
  • ItemStack.canPlaceOnBlockInAdventureMode (missing): in adventure mode a block can be placed only when the held item's can_place_on list allows it; Horizon does not read that component. horizon-client/src/game.rs
  • EnchantmentHelper.createBook (missing): the creative menu has no enchanted book for each enchantment (CreativeModeTabs); creative.rs lists none. horizon-client/src/game/enchant_effects.rs
  • DyeColor.findColorMixInRecipes (missing): part of the same breeding dye mix; the crafting recipe lookup for two dyes is not done for offspring. horizon-client/src/entities.rs
  • InstrumentItem.play (missing): using a goat horn plays no sound; Horizon has no horn playback. horizon-client/src/game/item_draw.rs
  • MerchantMenu.playTradeSound (missing): a shift-click trade should play the villager yes sound; the menu queues Event::TradeSound and game/trading.rs drops it with an empty arm. horizon-client/src/menu.rs
  • SmithingTemplateItem.createNetheriteUpgradeIconList (missing): an empty template slot in the smithing table does not cycle through the 11 tool and armour icons (SmithingScreen ticks baseIcon); Horizon shows one fixed netherite icon. horizon-client/src/game/stations.rs
  • DebugStickItem (missing): the debug stick does nothing in creative; no block state cycling or marker.
  • HangingEntityItem.appendHoverText (missing): hovering a painting item shows no title, author or size line in its tooltip. horizon-client/src/game/paintings.rs
  • InstrumentItem.use (missing): using a goat horn plays no sound and does not start the horn cooldown. horizon-client/src/game/item_draw.rs
  • MapItem.useOn (missing): using a map on a banner block should toggle that banner's marker on the map; Horizon has no banner toggle. horizon-client/src/game/maps.rs (fixed in #3945)
  • OminousBottleAmplifier.addToTooltip (missing): an ominous bottle's tooltip shows no Bad Omen line for its level; Horizon's potion tooltip covers potion items only.
  • PotionItem.useOn (missing): a water bottle used on a block that turns to mud should make mud; no such conversion was found in potions.rs. horizon-client/src/game/stations.rs
  • ShieldItem.getName (missing): a shield with a banner base colour is named after that colour; Horizon names every shield the same. horizon-client/src/game/shield.rs (fixed in #3953)
  • SuspiciousStewEffects.addToTooltip (missing): in creative, a suspicious stew's tooltip should list its effects; Horizon's stack tooltip shows none.
  • TypedEntityData.addToTooltip (missing): in Peaceful, a hostile mob's spawn egg should show a red Peaceful line; Horizon shows only the OP-only warning.
  • HangingEntityItem.mayPlace (gap): the horizontal-face rule is checked for paintings only; place_item_frame has no vertical-face test. horizon-client/src/game/paintings.rs::Game::place_painting
  • SmithingTemplateItem.createArmorTrimTemplate (gap): the empty template slot cycles the armour icons in vanilla (SmithingScreen); Horizon draws one fixed netherite icon, and the additions slot gets no icon. horizon-client/src/game/stations.rs::Game::draw_station
  • SmithingTemplateItem.createNetheriteUpgradeTemplate (gap): no cycling tool and armour icons and no ingot icon for the additions slot; Horizon draws one fixed netherite icon in the template slot. horizon-client/src/game/stations.rs::Game::draw_station
  • CrossbowItem.createProjectile (gap): crossbow arrows keep the normal arrow hit sound; the crossbow hit sound (item.crossbow.hit) is never set. horizon-client/src/game/crossbow.rs::Game::shoot_crossbow
Originally created by @kacpherek on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3515 Originally assigned to: @xFedeT on GitHub. Rows from the port ledger's verdict map (`tools/port_map/*.tsv`, #3139) that a player would notice: a vanilla 26.3 method Horizon doesn't port (**missing**) or ports only in part (**gap**). Each row came from reading the vanilla method and Horizon's code. None was checked in game, and about 1 in 12 map rows is wrong, so read both sides before fixing: `python3 tools/port_ledger.py where Class.method` prints the vanilla source and the Rust side (it needs #3139). Tick a row when it is fixed, or when it turns out wrong (say so in a comment). Rows that match an open issue come first, then missing behaviour, then partial ports. - [x] `DyeColor.getMixedColor` (missing): a baby sheep, wolf or cat from parents of two dye colours gets a mixed colour; Horizon has no breeding dye mix (only sheep_color for spawns). `horizon-client/src/entities.rs` (fixed in #3949) - [ ] `ItemStack.canBreakBlockInAdventureMode` (missing): in adventure mode a block can be broken only when the held item's can_break list allows it; Horizon does not read that component. `horizon-client/src/game.rs` - [ ] `ItemStack.canPlaceOnBlockInAdventureMode` (missing): in adventure mode a block can be placed only when the held item's can_place_on list allows it; Horizon does not read that component. `horizon-client/src/game.rs` - [ ] `EnchantmentHelper.createBook` (missing): the creative menu has no enchanted book for each enchantment (CreativeModeTabs); creative.rs lists none. `horizon-client/src/game/enchant_effects.rs` - [ ] `DyeColor.findColorMixInRecipes` (missing): part of the same breeding dye mix; the crafting recipe lookup for two dyes is not done for offspring. `horizon-client/src/entities.rs` - [ ] `InstrumentItem.play` (missing): using a goat horn plays no sound; Horizon has no horn playback. `horizon-client/src/game/item_draw.rs` - [ ] `MerchantMenu.playTradeSound` (missing): a shift-click trade should play the villager yes sound; the menu queues Event::TradeSound and game/trading.rs drops it with an empty arm. `horizon-client/src/menu.rs` - [ ] `SmithingTemplateItem.createNetheriteUpgradeIconList` (missing): an empty template slot in the smithing table does not cycle through the 11 tool and armour icons (SmithingScreen ticks baseIcon); Horizon shows one fixed netherite icon. `horizon-client/src/game/stations.rs` - [ ] `DebugStickItem` (missing): the debug stick does nothing in creative; no block state cycling or marker. - [ ] `HangingEntityItem.appendHoverText` (missing): hovering a painting item shows no title, author or size line in its tooltip. `horizon-client/src/game/paintings.rs` - [ ] `InstrumentItem.use` (missing): using a goat horn plays no sound and does not start the horn cooldown. `horizon-client/src/game/item_draw.rs` - [x] `MapItem.useOn` (missing): using a map on a banner block should toggle that banner's marker on the map; Horizon has no banner toggle. `horizon-client/src/game/maps.rs` (fixed in #3945) - [ ] `OminousBottleAmplifier.addToTooltip` (missing): an ominous bottle's tooltip shows no Bad Omen line for its level; Horizon's potion tooltip covers potion items only. - [ ] `PotionItem.useOn` (missing): a water bottle used on a block that turns to mud should make mud; no such conversion was found in potions.rs. `horizon-client/src/game/stations.rs` - [x] `ShieldItem.getName` (missing): a shield with a banner base colour is named after that colour; Horizon names every shield the same. `horizon-client/src/game/shield.rs` (fixed in #3953) - [ ] `SuspiciousStewEffects.addToTooltip` (missing): in creative, a suspicious stew's tooltip should list its effects; Horizon's stack tooltip shows none. - [ ] `TypedEntityData.addToTooltip` (missing): in Peaceful, a hostile mob's spawn egg should show a red Peaceful line; Horizon shows only the OP-only warning. - [ ] `HangingEntityItem.mayPlace` (gap): the horizontal-face rule is checked for paintings only; place_item_frame has no vertical-face test. `horizon-client/src/game/paintings.rs::Game::place_painting` - [ ] `SmithingTemplateItem.createArmorTrimTemplate` (gap): the empty template slot cycles the armour icons in vanilla (SmithingScreen); Horizon draws one fixed netherite icon, and the additions slot gets no icon. `horizon-client/src/game/stations.rs::Game::draw_station` - [ ] `SmithingTemplateItem.createNetheriteUpgradeTemplate` (gap): no cycling tool and armour icons and no ingot icon for the additions slot; Horizon draws one fixed netherite icon in the template slot. `horizon-client/src/game/stations.rs::Game::draw_station` - [ ] `CrossbowItem.createProjectile` (gap): crossbow arrows keep the normal arrow hit sound; the crossbow hit sound (item.crossbow.hit) is never set. `horizon-client/src/game/crossbow.rs::Game::shoot_crossbow`
bsakaguchi 2026-11-02 15:43:26 +07:00
Author
Owner

@Benflex1 commented on GitHub (Oct 30, 2026):

🤖 Agent: MerchantMenu.playTradeSound is fixed in #4125. The row can be ticked.

<!-- gh-comment-id:6512526010 --> @Benflex1 commented on GitHub (Oct 30, 2026): 🤖 Agent: `MerchantMenu.playTradeSound` is fixed in #4125. The row can be ticked.
Author
Owner

@xFedeT commented on GitHub (Oct 30, 2026):

🤖 Agent: xFedeT's AI agent (Claude Code), working through this area for #3912 . PR #4340 takes three rows (the smithing table's cycling slot icons): SmithingTemplateItem.createArmorTrimTemplate, createNetheriteUpgradeTemplate, createNetheriteUpgradeIconList. Next from the rows that have no open PR: OminousBottleAmplifier.addToTooltip, SuspiciousStewEffects.addToTooltip, CrossbowItem.createProjectile (the crossbow hit sound), HangingEntityItem.mayPlace. I'll tick the rows when each PR merges and I'll leave the ones other PRs already cover (can_break/can_place_on, goat horn, enchanted books, debug stick, trade sound, painting and spawn egg tooltips, dye mix, mud).

<!-- gh-comment-id:6521031317 --> @xFedeT commented on GitHub (Oct 30, 2026): 🤖 Agent: xFedeT's AI agent (Claude Code), working through this area for #3912 . PR #4340 takes three rows (the smithing table's cycling slot icons): `SmithingTemplateItem.createArmorTrimTemplate`, `createNetheriteUpgradeTemplate`, `createNetheriteUpgradeIconList`. Next from the rows that have no open PR: `OminousBottleAmplifier.addToTooltip`, `SuspiciousStewEffects.addToTooltip`, `CrossbowItem.createProjectile` (the crossbow hit sound), `HangingEntityItem.mayPlace`. I'll tick the rows when each PR merges and I'll leave the ones other PRs already cover (can_break/can_place_on, goat horn, enchanted books, debug stick, trade sound, painting and spawn egg tooltips, dye mix, mud).
Author
Owner

@xFedeT commented on GitHub (Oct 30, 2026):

🤖 Agent: xFedeT's AI agent (Claude Code). PR #4357 takes the row TypedEntityData.addToTooltip (the red "Disabled in Peaceful" line under a monster's spawn egg in Peaceful). Rows I checked on both sides and found wrong (already in the game) so they can be ticked: OminousBottleAmplifier.addToTooltip (item_tooltip.rs::ominous_bottle_line), SuspiciousStewEffects.addToTooltip (stew_lines), CrossbowItem.createProjectile (arrows.rs plays item.crossbow.hit for a crossbow's arrow, 4ce1eb6b0), HangingEntityItem.mayPlace (paintings take no vertical face; an item frame goes through ItemFrameItem.mayPlace, which allows one), HangingEntityItem.appendHoverText (stations.rs::stack_tooltip_lines lists a painting's title, author and size), EnchantmentHelper.createBook (the creative export lists the enchanted books: 43 in Ingredients, 128 in Search) and DebugStickItem (#3655, merged). What is left here is covered by open PRs (can_break / can_place_on and mud: #2990; goat horn: #2417; trade sound: #4125).

<!-- gh-comment-id:6521602420 --> @xFedeT commented on GitHub (Oct 30, 2026): 🤖 Agent: xFedeT's AI agent (Claude Code). PR #4357 takes the row `TypedEntityData.addToTooltip` (the red "Disabled in Peaceful" line under a monster's spawn egg in Peaceful). Rows I checked on both sides and found wrong (already in the game) so they can be ticked: `OminousBottleAmplifier.addToTooltip` (`item_tooltip.rs::ominous_bottle_line`), `SuspiciousStewEffects.addToTooltip` (`stew_lines`), `CrossbowItem.createProjectile` (`arrows.rs` plays `item.crossbow.hit` for a crossbow's arrow, 4ce1eb6b0), `HangingEntityItem.mayPlace` (paintings take no vertical face; an item frame goes through `ItemFrameItem.mayPlace`, which allows one), `HangingEntityItem.appendHoverText` (`stations.rs::stack_tooltip_lines` lists a painting's title, author and size), `EnchantmentHelper.createBook` (the creative export lists the enchanted books: 43 in Ingredients, 128 in Search) and `DebugStickItem` (#3655, merged). What is left here is covered by open PRs (can_break / can_place_on and mud: #2990; goat horn: #2417; trade sound: #4125).
Author
Owner

@xFedeT commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6521604687 --> @xFedeT commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@xFedeT commented on GitHub (Oct 30, 2026):

🤖 Agent: xFedeT's AI agent (Claude Code). Status of every row of this checklist, checked on origin/main on 2026-10-31 (vanilla method and Horizon code read on both sides; PR states read from GitHub).

Legend. Status: DONE = on main; IN REVIEW = a PR is open for it; ALREADY IN GAME = the ledger row was wrong. The "PR for this row" column gives the PR and its state (MERGED, or OPEN with the check state); "Depends on / waits for" lists what the row needs before it can merge or be complete: other PRs, issues, and open PRs that touch the same code.

# Row Status PR for this row Depends on / waits for Evidence
1 DyeColor.getMixedColor DONE (on main) MERGED #3949 by kacpherek —
2 DyeColor.findColorMixInRecipes DONE (on main) MERGED #3949 by kacpherek — Game::dye_color_mix_in_recipes
3 ShieldItem.getName DONE (on main) MERGED #3953 by kacpherek —
4 DebugStickItem DONE (on main) MERGED #3655 by jaszkus —
5 EnchantmentHelper.createBook ALREADY IN GAME (row was wrong) — — the creative export lists the enchanted books (43 in Ingredients, 128 in Search)
6 OminousBottleAmplifier.addToTooltip ALREADY IN GAME (row was wrong) — — item_tooltip.rs::ominous_bottle_line
7 SuspiciousStewEffects.addToTooltip ALREADY IN GAME (row was wrong) — — item_tooltip.rs::stew_lines
8 HangingEntityItem.appendHoverText ALREADY IN GAME (row was wrong) — — stack_tooltip_lines: a painting's title, author and size, or "Random variant" in creative
9 HangingEntityItem.mayPlace ALREADY IN GAME (row was wrong) MERGED #4346 MERGED #4346: item frames keep to the build height there paintings take no vertical face (place_painting); item frames use ItemFrameItem.mayPlace, and #4346 adds its build-height check
10 CrossbowItem.createProjectile ALREADY IN GAME (row was wrong) — — arrows.rs plays item.crossbow.hit
11 MapItem.useOn IN REVIEW (other author) OPEN #3945 by kacpherek (checks failing: verify) its own verify fails (clippy) and a reviewer asked for changes map banner and frame markers; needs the review fixes (clippy wrong_self_convention)
12 ItemStack.canBreakBlockInAdventureMode DONE (on main) MERGED #2990 by kacpherek —
13 ItemStack.canPlaceOnBlockInAdventureMode DONE (on main) MERGED #2990 by kacpherek —
14 PotionItem.useOn (mud) DONE (on main) MERGED #2990 by kacpherek —
15 InstrumentItem.play DONE (on main) MERGED #2417 by kacpherek —
16 InstrumentItem.use DONE (on main) MERGED #2417 by kacpherek —
17 MerchantMenu.playTradeSound DONE (on main) MERGED #4125 by Benflex1 —
18 SmithingTemplateItem.createNetheriteUpgradeIconList DONE (on main) MERGED #4340 —
19 SmithingTemplateItem.createArmorTrimTemplate DONE (on main) MERGED #4340 —
20 SmithingTemplateItem.createNetheriteUpgradeTemplate DONE (on main) MERGED #4340 —
21 TypedEntityData.addToTooltip DONE (on main) MERGED #4357 — also any item with entity_data, ids without a namespace; reviewed by two agents and approved

Summary: 21 rows. Done on main: 1-4, 12-21. Ledger row was wrong: 5-10. In review, my PRs: none. In review, other authors: 11 (#3945). TODO: none. Open PRs still to merge: mine none; other authors #3945.

What is left for this issue to be complete: row 11 (#3945, another author) needs its clippy fix and a merge; every other row is on main or was wrong. The checklist boxes can only be ticked by a maintainer or the issue's author (the API refuses me).

<!-- gh-comment-id:6521642778 --> @xFedeT commented on GitHub (Oct 30, 2026): 🤖 Agent: xFedeT's AI agent (Claude Code). Status of every row of this checklist, checked on `origin/main` on 2026-10-31 (vanilla method and Horizon code read on both sides; PR states read from GitHub). Legend. Status: **DONE** = on main; **IN REVIEW** = a PR is open for it; **ALREADY IN GAME** = the ledger row was wrong. The "PR for this row" column gives the PR and its state (**MERGED**, or **OPEN** with the check state); "Depends on / waits for" lists what the row needs before it can merge or be complete: other PRs, issues, and open PRs that touch the same code. | # | Row | Status | PR for this row | Depends on / waits for | Evidence | |---|---|---|---|---|---| | 1 | `DyeColor.getMixedColor` | **DONE** (on main) | **MERGED** #3949 by kacpherek | — | | | 2 | `DyeColor.findColorMixInRecipes` | **DONE** (on main) | **MERGED** #3949 by kacpherek | — | `Game::dye_color_mix_in_recipes` | | 3 | `ShieldItem.getName` | **DONE** (on main) | **MERGED** #3953 by kacpherek | — | | | 4 | `DebugStickItem` | **DONE** (on main) | **MERGED** #3655 by jaszkus | — | | | 5 | `EnchantmentHelper.createBook` | **ALREADY IN GAME** (row was wrong) | — | — | the creative export lists the enchanted books (43 in Ingredients, 128 in Search) | | 6 | `OminousBottleAmplifier.addToTooltip` | **ALREADY IN GAME** (row was wrong) | — | — | `item_tooltip.rs::ominous_bottle_line` | | 7 | `SuspiciousStewEffects.addToTooltip` | **ALREADY IN GAME** (row was wrong) | — | — | `item_tooltip.rs::stew_lines` | | 8 | `HangingEntityItem.appendHoverText` | **ALREADY IN GAME** (row was wrong) | — | — | `stack_tooltip_lines`: a painting's title, author and size, or "Random variant" in creative | | 9 | `HangingEntityItem.mayPlace` | **ALREADY IN GAME** (row was wrong) | **MERGED** #4346 | **MERGED** #4346: item frames keep to the build height there | paintings take no vertical face (`place_painting`); item frames use `ItemFrameItem.mayPlace`, and #4346 adds its build-height check | | 10 | `CrossbowItem.createProjectile` | **ALREADY IN GAME** (row was wrong) | — | — | `arrows.rs` plays `item.crossbow.hit` | | 11 | `MapItem.useOn` | **IN REVIEW** (other author) | **OPEN** #3945 by kacpherek (checks failing: verify) | its own `verify` fails (clippy) and a reviewer asked for changes | map banner and frame markers; needs the review fixes (clippy `wrong_self_convention`) | | 12 | `ItemStack.canBreakBlockInAdventureMode` | **DONE** (on main) | **MERGED** #2990 by kacpherek | — | | | 13 | `ItemStack.canPlaceOnBlockInAdventureMode` | **DONE** (on main) | **MERGED** #2990 by kacpherek | — | | | 14 | `PotionItem.useOn (mud)` | **DONE** (on main) | **MERGED** #2990 by kacpherek | — | | | 15 | `InstrumentItem.play` | **DONE** (on main) | **MERGED** #2417 by kacpherek | — | | | 16 | `InstrumentItem.use` | **DONE** (on main) | **MERGED** #2417 by kacpherek | — | | | 17 | `MerchantMenu.playTradeSound` | **DONE** (on main) | **MERGED** #4125 by Benflex1 | — | | | 18 | `SmithingTemplateItem.createNetheriteUpgradeIconList` | **DONE** (on main) | **MERGED** #4340 | — | | | 19 | `SmithingTemplateItem.createArmorTrimTemplate` | **DONE** (on main) | **MERGED** #4340 | — | | | 20 | `SmithingTemplateItem.createNetheriteUpgradeTemplate` | **DONE** (on main) | **MERGED** #4340 | — | | | 21 | `TypedEntityData.addToTooltip` | **DONE** (on main) | **MERGED** #4357 | — | also any item with `entity_data`, ids without a namespace; reviewed by two agents and approved | **Summary:** 21 rows. Done on main: 1-4, 12-21. Ledger row was wrong: 5-10. In review, my PRs: none. In review, other authors: 11 (#3945). TODO: none. Open PRs still to merge: mine none; other authors #3945. **What is left for this issue to be complete:** row 11 (#3945, another author) needs its clippy fix and a merge; every other row is on main or was wrong. The checklist boxes can only be ticked by a maintainer or the issue's author (the API refuses me).
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#995
No description provided.