JCM:ThirdBlockBase
From The District of Joban
Views
Actions
Namespaces
Variants
Tools
ThirdBlockBase is an abstract class used by Blocks that are 3 block tall.
Blockstates
FACING | THIRD |
---|---|
north | lower |
east | middle |
south | upper |
west |
On Player Place
- Set the block above to this block (THIRD = middle)
- Set the block 2 block above to this block (THIRD = upper)
On Player Break
If the THIRD property of the block broken is middle:
- Break the block below
If the THIRD property of the block broken is upper:
- Break 2 block below
Destroy the block player broke
getStateForPlacement
If the above 3 block is replacable, return the state and face the player's direction
Otherwise, return null.