The District of Joban Difference between revisions of "JCM:ThirdBlockBase"

Difference between revisions of "JCM:ThirdBlockBase"

From The District of Joban
(Created page with "'''ThirdBlockBase''' is an abstract class used by Blocks that are 3 block tall. === Blockstates === {| class="wikitable" |+ !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...")
 
m (LX86 moved page ThirdBlockBase to JCM:ThirdBlockBase without leaving a redirect)
 
(No difference)

Latest revision as of 19:11, 18 August 2022

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.