Skip to main content

Module cactus_block

Module cactus_block 

Source
Expand description

Cactus block behavior.

Cactus grows up to 3 blocks tall via random ticks. It requires sand below and breaks if any solid block or lava is adjacent horizontally.

Structsยง

CactusBlock
Behavior for cactus blocks.

Constantsยง

CACTUS_FLOWER_AGE ๐Ÿ”’
Age at which cactus can attempt to grow a flower (vanilla 1.21+).
FLOWER_CHANCE_SMALL ๐Ÿ”’
Chance for small cactus (< 3 blocks) to spawn flower.
FLOWER_CHANCE_TALL ๐Ÿ”’
Chance for tall cactus (>= 3 blocks) to spawn flower.
MAX_CACTUS_HEIGHT ๐Ÿ”’
Maximum cactus stack height (vanilla: 3 blocks).