Skip to main content

Module sign_item

Module sign_item 

Source
Expand description

Sign item behavior implementation.

Places sign blocks and opens the sign editor after placement. Handles both standing signs (on ground) and wall signs (on walls).

Vanilla reference: SignItem extends StandingAndWallBlockItem and only overrides updateCustomBlockEntityTag to open the sign editor after placement.

Structsยง

HangingSignItem
Behavior for hanging sign items that place hanging sign blocks.
SignItem
Behavior for sign items that place sign blocks and open the editor.

Functionsยง

can_attach_to ๐Ÿ”’
Checks if a wall hanging sign can attach to a neighboring block.
can_place_hanging_sign ๐Ÿ”’
Checks if a wall hanging sign block state can be placed.
can_wall_hanging_sign_place ๐Ÿ”’
Checks if a wall hanging sign can be placed at the given position.