[PR #7311] [MERGED] port map: rest-008's item predicates name the keys the advancement check reads #7484

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-b-rest-008


📝 Commits (1)

  • cd7c450 port map: the item predicates the advancement check ignores

📊 Changes

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

View changed files

📝 tools/port_map/rest-008.tsv (+13 -13)

📄 Description

Rows of tools/port_map/rest-008.tsv (149 rows, map-check clean against 26.3), item predicates and the advancement item check. Notes only: the thirteen missing rows in this batch are real, but nine of them said "unsure … matches too broadly" without naming what the check actually reads.

Notes repaired

  • advancements.rs::item reads the item ids, the count, the potion_contents and damage components, and the minecraft:enchantments and minecraft:damage predicates. Every other predicate key is ignored, so a criterion carrying one matches too broadly — that is now written on each row:
    • AttributeModifiersPredicate.matches and .EntryPredicate.test
    • BundlePredicate.matches, ContainerPredicate.matches
    • FireworkExplosionPredicate.FireworkPredicate.test, FireworksPredicate.matches
    • JukeboxPlayablePredicate.matches
    • WritableBookPredicate.matches, WrittenBookPredicate.matches
  • SectionPos.aroundChunk: mobs/villager_brain.rs::chunk_pois reads the chunks it has, with no ensureLoadedAndValid, so a search near an unloaded chunk sees fewer points of interest.
  • DataComponentLookup.findAll: dyes are found by their _dye name and fuels by the table in crafting.rs/furnace.rs, with no component-driven search.
  • DataComponentLookup.ComponentStorage.findMatching: a spawn egg is built from the entity type's id by name, with no component lookup.
  • DataComponentPatch.forget: block_entity_item.rs merges a block entity's explicit components over the implicit ones; nothing strips the implicit ones on placement.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-008.tsv
149 rows, no problems.

Proven: every rewritten note; advancements.rs::item's body is read line by line for which keys it consults, and chunk_pois is read for the missing pre-load.

Not proven: no verdict changes, and I did not measure how much a "too broad" match changes a real advancement — the notes record which keys are read, not what a given criterion would have required. None of the gaps is shown to be unportable.


🔄 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/7311 **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-b-rest-008` --- ### 📝 Commits (1) - [`cd7c450`](https://github.com/horizon-rust/horizon/commit/cd7c4505d322b2a3406623ebdd403c49e7dc1c1b) port map: the item predicates the advancement check ignores ### 📊 Changes **1 file changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-008.tsv` (+13 -13) </details> ### 📄 Description Rows of `tools/port_map/rest-008.tsv` (149 rows, map-check clean against 26.3), item predicates and the advancement item check. Notes only: the thirteen `missing` rows in this batch are real, but nine of them said "unsure … matches too broadly" without naming what the check actually reads. **Notes repaired** - `advancements.rs::item` reads the item ids, the count, the `potion_contents` and `damage` components, and the `minecraft:enchantments` and `minecraft:damage` predicates. Every other predicate key is ignored, so a criterion carrying one matches too broadly — that is now written on each row: - `AttributeModifiersPredicate.matches` and `.EntryPredicate.test` - `BundlePredicate.matches`, `ContainerPredicate.matches` - `FireworkExplosionPredicate.FireworkPredicate.test`, `FireworksPredicate.matches` - `JukeboxPlayablePredicate.matches` - `WritableBookPredicate.matches`, `WrittenBookPredicate.matches` - `SectionPos.aroundChunk`: `mobs/villager_brain.rs::chunk_pois` reads the chunks it has, with no `ensureLoadedAndValid`, so a search near an unloaded chunk sees fewer points of interest. - `DataComponentLookup.findAll`: dyes are found by their `_dye` name and fuels by the table in `crafting.rs`/`furnace.rs`, with no component-driven search. - `DataComponentLookup.ComponentStorage.findMatching`: a spawn egg is built from the entity type's id by name, with no component lookup. - `DataComponentPatch.forget`: `block_entity_item.rs` merges a block entity's explicit components over the implicit ones; nothing strips the implicit ones on placement. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-008.tsv 149 rows, no problems. ``` **Proven:** every rewritten note; `advancements.rs::item`'s body is read line by line for which keys it consults, and `chunk_pois` is read for the missing pre-load. **Not proven:** no verdict changes, and I did not measure how much a "too broad" match changes a real advancement — the notes record which keys are read, not what a given criterion would have required. None of the gaps is shown to be unportable. --- <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:03 +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#7484
No description provided.