Skip to main content

Module standing_and_wall_block_item

Module standing_and_wall_block_item 

Source
Expand description

Standing and wall block item behavior implementation.

This handles items like torches that place different block variants depending on whether they’re placed on top of a block (standing) or on the side of a block (wall).

Vanilla differences: None - this matches vanilla’s StandingAndWallBlockItem exactly. The placement logic iterates through getNearestLookingDirections() and tries each direction (skipping the opposite of attachmentDirection), using the standing block when direction matches attachmentDirection and wall block otherwise.

Structs§

StandingAndWallBlockItem
Behavior for items that place either a standing or wall variant of a block.