[GH-ISSUE #6139] Content mods: a declared state property named before a template property stops the game loading #1990

Closed
opened 2026-11-02 15:51:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6139

Originally assigned to: @Xmilon on GitHub.

A content block declaring state_properties on a template with properties of its own stops the game at load when a declared name sorts before one of the template's properties
For example template minecraft:carved_pumpkin (facing) with a declared bites (0 to 3): "registry state order differs from vanilla's state definition" (StateTable::new, horizon-world level/states.rs)

The rows are built as each template state times each declared combination (NewBlock::state_combinations), so the template's properties always vary slowest, but StateTable::new reads them the way vanilla's StateDefinition does: sorted by name, the first name slowest. servings or waterlogged on carved_pumpkin load, bites doesn't

What would fix it

  • build the rows in name order over the template's and the declared properties together
  • or refuse the declaration with its id, so the game still starts
Originally created by @reservedbytes on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6139 Originally assigned to: @Xmilon on GitHub. A content block declaring `state_properties` on a template with properties of its own stops the game at load when a declared name sorts before one of the template's properties For example template `minecraft:carved_pumpkin` (`facing`) with a declared `bites` (0 to 3): "registry state order differs from vanilla's state definition" (`StateTable::new`, horizon-world `level/states.rs`) The rows are built as each template state times each declared combination (`NewBlock::state_combinations`), so the template's properties always vary slowest, but `StateTable::new` reads them the way vanilla's `StateDefinition` does: sorted by name, the first name slowest. `servings` or `waterlogged` on `carved_pumpkin` load, `bites` doesn't What would fix it - build the rows in name order over the template's and the declared properties together - or refuse the declaration with its id, so the game still starts
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

/claim :3

<!-- gh-comment-id:6561512569 --> @Xmilon commented on GitHub (Nov 1, 2026): /claim :3
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#1990
No description provided.