[PR #6947] [MERGED] Clear stale rest-002 rows main already implements #7221

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-002-rows


📝 Commits (1)

  • 7800bf7 Clear six stale rest-002 rows the tree already answers

📊 Changes

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

View changed files

📝 tools/port_map/rest-002.tsv (+6 -6)

📄 Description

Clears six stale rows in tools/port_map/rest-002.tsv: three rows that said missing for code the tree has, and three gap notes that describe behaviour the tree no longer has that way.

  • PassengerPredicate.matches was missing ("the passenger key inside vehicle falls through entity() to false"). crates/horizon-client/src/advancements.rs::entity reads the passenger key and matches any of the vehicle's passengers, and game/advancements.rs fills EntityView.passengers from the boat's riders. Now inline.
  • AnyBlockInteractionTrigger.trigger was missing ("any_block_use never fires"). crates/horizon-client/src/game/advancements.rs::Game::trigger_any_block_use fires minecraft:any_block_use with the block's location context and the stack in hand. Now port.
  • DefaultBlockInteractionTrigger.trigger was missing ("default_block_use never fires"). crates/horizon-client/src/game/advancements.rs::Game::trigger_default_block_use fires minecraft:default_block_use at the block's centre with no tool, called from a block use in game.rs, jukebox.rs, chiseled_bookshelf.rs and decorated_pot.rs. Now port.
  • KilledTrigger.trigger (a port row) claimed the killing_blow condition is never tested; it is, in crates/horizon-client/src/game/advancements.rs::Game::trigger_killed_as, which is the function the row now cites and which serves all three instances.
  • KilledTrigger.TriggerInstance.matches (an inline row) carried the same stale gap; its note now says the killing blow is tested per instance, citing the same function.
  • PickedUpItemTrigger.trigger (a port row) claimed thrown_item_picked_up_by_player never fires; crates/horizon-client/src/game/advancements.rs::Game::trigger_thrown_picked_up_by_player fires it beside the by-entity variant, from the thrower and the stack taken.

Every other row this file calls missing — the nbt, slots, cube_mob, entity_tags, movement, movement_affected_by, raider, sheep, targeted_entity, team and advancements predicates — still has no place in entity() that reads its key, so those rows are left as they were.

map-check tools/port_map/rest-002.tsv: 149 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/rest-002.tsv → 149 rows, no problems.

Not proven: no in-game check. None of ride_a_boat_with_a_goat, allay_deliver_item_to_player or sniper_duel was completed in a running world to watch the triggers fire.


🔄 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/6947 **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/ledger-rest-002-rows` --- ### 📝 Commits (1) - [`7800bf7`](https://github.com/horizon-rust/horizon/commit/7800bf71909dca68d757c1f76bfd6132e70fcf7c) Clear six stale rest-002 rows the tree already answers ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-002.tsv` (+6 -6) </details> ### 📄 Description Clears six stale rows in `tools/port_map/rest-002.tsv`: three rows that said `missing` for code the tree has, and three gap notes that describe behaviour the tree no longer has that way. - `PassengerPredicate.matches` was `missing` ("the passenger key inside vehicle falls through entity() to false"). `crates/horizon-client/src/advancements.rs::entity` reads the `passenger` key and matches any of the vehicle's passengers, and `game/advancements.rs` fills `EntityView.passengers` from the boat's riders. Now `inline`. - `AnyBlockInteractionTrigger.trigger` was `missing` ("any_block_use never fires"). `crates/horizon-client/src/game/advancements.rs::Game::trigger_any_block_use` fires `minecraft:any_block_use` with the block's location context and the stack in hand. Now `port`. - `DefaultBlockInteractionTrigger.trigger` was `missing` ("default_block_use never fires"). `crates/horizon-client/src/game/advancements.rs::Game::trigger_default_block_use` fires `minecraft:default_block_use` at the block's centre with no tool, called from a block use in `game.rs`, `jukebox.rs`, `chiseled_bookshelf.rs` and `decorated_pot.rs`. Now `port`. - `KilledTrigger.trigger` (a `port` row) claimed the `killing_blow` condition is never tested; it is, in `crates/horizon-client/src/game/advancements.rs::Game::trigger_killed_as`, which is the function the row now cites and which serves all three instances. - `KilledTrigger.TriggerInstance.matches` (an `inline` row) carried the same stale gap; its note now says the killing blow is tested per instance, citing the same function. - `PickedUpItemTrigger.trigger` (a `port` row) claimed `thrown_item_picked_up_by_player` never fires; `crates/horizon-client/src/game/advancements.rs::Game::trigger_thrown_picked_up_by_player` fires it beside the by-entity variant, from the thrower and the stack taken. Every other row this file calls `missing` — the nbt, slots, cube_mob, entity_tags, movement, movement_affected_by, raider, sheep, targeted_entity, team and advancements predicates — still has no place in `entity()` that reads its key, so those rows are left as they were. `map-check tools/port_map/rest-002.tsv`: `149 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/rest-002.tsv` → `149 rows, no problems.` **Not proven:** no in-game check. None of `ride_a_boat_with_a_goat`, `allay_deliver_item_to_player` or `sniper_duel` was completed in a running world to watch the triggers fire. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:55 +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#7221
No description provided.