[GH-ISSUE #7464] Content mods: a block shape from several properties, and its own collision shape #3251

Closed
opened 2026-11-03 04:07:01 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @Xmilon on GitHub.

Part of #4953

A content block's outline shape can't depend on several of its state properties at once, and its collision shape is always its outline shape
Vanilla's BlockBehaviour.getShape(state, …) and getCollisionShape(state, …) are separate methods and both read the whole state, so a block's shape can follow facing and a count together, and a block can be targeted by its outline but walked through, or collide with less than it shows

What's missing

  • a shape table keyed by several properties together
  • a collision shape declared apart from the outline shape, including an empty one
Originally created by @reservedbytes on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7464 Originally assigned to: @Xmilon on GitHub. Part of #4953 A content block's outline shape can't depend on several of its state properties at once, and its collision shape is always its outline shape Vanilla's `BlockBehaviour.getShape(state, …)` and `getCollisionShape(state, …)` are separate methods and both read the whole state, so a block's shape can follow `facing` and a count together, and a block can be targeted by its outline but walked through, or collide with less than it shows What's missing - a shape table keyed by several properties together - a collision shape declared apart from the outline shape, including an empty one
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6583094464 --> @Xmilon commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3251
No description provided.