Skip to main content

Module vegetation

Module vegetation 

Source
Expand description

Block behavior implementations for crops and feature-placed vegetation.

ModulesΒ§

azalea_block πŸ”’
bamboo πŸ”’
bamboo_sapling πŸ”’
base_coral_fan_block πŸ”’
base_coral_plant_block πŸ”’
base_coral_wall_fan_block πŸ”’
beetroots πŸ”’
big_dripleaf_block πŸ”’
big_dripleaf_stem_block πŸ”’
bonemealable
Bonemeal-related traits and helpers for block behaviors.
bush_block πŸ”’
cactus_block πŸ”’
Cactus block behavior.
cactus_flower_block πŸ”’
Cactus flower block behavior.
carpet_block πŸ”’
carrot πŸ”’
cave_vines_block πŸ”’
cave_vines_plant_block πŸ”’
chorus_flower_block πŸ”’
chorus_plant_block πŸ”’
cocoa_block πŸ”’
coral_block πŸ”’
coral_fan_block πŸ”’
coral_plant_block πŸ”’
coral_wall_fan_block πŸ”’
crop_block πŸ”’
Crop block implementation (wheat, carrots, potatoes, beetroot).
dirt_path_block πŸ”’
double_plant_block πŸ”’
dry_vegetation_block πŸ”’
eyeblossom_block πŸ”’
farmland_block πŸ”’
Farmland block implementation.
firefly_bush_block πŸ”’
flower_bed_block πŸ”’
flower_block πŸ”’
glow_lichen_block πŸ”’
growing_plant_body_block πŸ”’
growing_plant_head_block πŸ”’
hanging_moss_block πŸ”’
hanging_roots_block πŸ”’
kelp_block πŸ”’
kelp_plant_block πŸ”’
leaf_litter_block πŸ”’
leaves_block πŸ”’
Leaves block behavior implementation.
lily_pad_block πŸ”’
mangrove_propagule_block πŸ”’
mossy_carpet_block πŸ”’
mushroom_block πŸ”’
nether_fungus_block πŸ”’
nether_roots_block πŸ”’
nether_sprouts πŸ”’
nether_wart πŸ”’
pitcher_crop πŸ”’
pointed_dripstone_block πŸ”’
potato πŸ”’
pumpkin_block πŸ”’
rooted_dirt_block πŸ”’
sapling_block πŸ”’
sculk_vein_block πŸ”’
sea_pickle_block πŸ”’
seagrass_block πŸ”’
segmentable_block πŸ”’
short_dry_grass_block πŸ”’
small_dripleaf_block πŸ”’
spore_blossom_block πŸ”’
sugar_cane πŸ”’
Sugar Cane block behavior.
sweet_berry_bush πŸ”’
tall_dry_grass_block πŸ”’
tall_flower_block πŸ”’
tall_grass_block πŸ”’
tall_seagrass_block πŸ”’
torchflower πŸ”’
twisting_vines_block πŸ”’
twisting_vines_plant_block πŸ”’
vegetation_block πŸ”’
vine_block πŸ”’
weeping_vines_block πŸ”’
weeping_vines_plant_block πŸ”’
wither_rose_block πŸ”’

StructsΒ§

AzaleaBlock
Behavior for azalea blocks.
BambooSaplingBlock
Behavior for the Bamboo Sapling Block
BambooStalkBlock
Behavior for the Bamboo Stalk Block
BaseCoralFanBlock
Vanilla BaseCoralFanBlock survival (dead coral fans).
BaseCoralPlantBlock
Vanilla BaseCoralPlantBlock survival (dead coral plants such as dead_tube_coral).
BaseCoralWallFanBlock
Vanilla BaseCoralWallFanBlock survival (dead coral wall fans).
BeetrootBlock
Behavior for the Beetroots Block
BigDripleafBlock
Vanilla BigDripleafBlock survival.
BigDripleafStemBlock
Vanilla BigDripleafStemBlock survival.
BushBlock
Vanilla BushBlock survival.
CactusBlock
Behavior for cactus blocks.
CactusFlowerBlock
Behavior for cactus flower blocks.
CarpetBlock
Vanilla CarpetBlock survival and shape updates.
CarrotBlock
Behavior for Carrots
CaveVinesBlock
Vanilla CaveVinesBlock (head) survival.
CaveVinesPlantBlock
Vanilla CaveVinesPlantBlock (body) survival.
ChorusFlowerBlock
Vanilla ChorusFlowerBlock survival behavior.
ChorusPlantBlock
Vanilla ChorusPlantBlock connection and survival behavior.
CocoaBlock
Cocoa Block behavior
CoralBlock
Vanilla CoralBlock survival.
CoralFanBlock
Vanilla CoralFanBlock survival (live coral fans).
CoralPlantBlock
Vanilla CoralPlantBlock survival (live coral plants such as tube_coral).
CoralWallFanBlock
Vanilla CoralWallFanBlock survival (live coral wall fans).
CropBlock
Behavior for crop blocks (wheat, carrots, potatoes).
DirtPathBlock
Behavior for dirt path blocks.
DoublePlantBlock
Behavior for vanilla two-block-tall plants.
DryVegetationBlock
Vanilla DryVegetationBlock behavior
EyeblossomBlock
Vanilla EyeblossomBlock survival and ticking shape.
FarmlandBlock
Behavior for farmland blocks.
FireflyBushBlock
Vanilla FireflyBushBlock survival.
FlowerBedBlock
Vanilla FlowerBedBlock survival.
FlowerBlock
Behavior for most flower blocks.
GlowLichenBlock
Vanilla GlowLichenBlock survival.
HangingMossBlock
Vanilla HangingMossBlock survival (e.g. pale_hanging_moss).
HangingRootsBlock
Vanilla HangingRootsBlock survival
KelpBlock
Vanilla KelpBlock survival and fluid state.
KelpPlantBlock
Vanilla KelpPlantBlock survival and fluid state.
LeafLitterBlock
Vanilla LeafLitterBlock uses sturdy top-face support, not the vegetation tag.
LilyPadBlock
Vanilla LilyPadBlock survival.
MangroveLeavesBlock
Mangrove leaves behavior, including hanging propagule growth.
MangrovePropaguleBlock
Vanilla MangrovePropaguleBlock survival.
MossyCarpetBlock
Vanilla MossyCarpetBlock survival and side state updates.
MushroomBlock
Vanilla MushroomBlock survival.
NetherFungusBlock
Vanilla NetherFungusBlock survival.
NetherRootsBlock
Vanilla NetherRootsBlock survival.
NetherSproutsBlock
Behavior for Nether Sprouts
NetherWartBlock
Behavior for Nether Warts
PitcherCropBlock
Behavior for Pitcher Crops
PointedDripstoneBlock
Vanilla PointedDripstoneBlock survival and thickness updates.
PotatoBlock
Behavior for Potatoes
PumpkinBlock
Behavior for pumpkins.
RootedDirtBlock
Vanilla RootedDirtBlock bonemeal behavior
SaplingBlock
Vanilla SaplingBlock survival.
SculkVeinBlock
Vanilla SculkVeinBlock survival.
SeaPickleBlock
Vanilla SeaPickleBlock survival.
SeagrassBlock
Behavior for seagrass blocks.
ShortDryGrassBlock
Vanilla ShortDryGrassBlock survival
SmallDripleafBlock
Vanilla SmallDripleafBlock survival.
SporeBlossomBlock
Vanilla SporeBlossomBlock survival.
SugarCaneBlock
Behavior for sugar cane blocks.
SulfurSpikeBlock
Vanilla SulfurSpikeBlock behavior
SweetBerryBushBlock
Behavior for Sweet Berry Bushes
TallDryGrassBlock
Vanilla TallDryGrassBlock survival
TallFlowerBlock
Behavior for two-block-tall flowers.
TallGrassBlock
Behavior for short grass and fern blocks.
TallSeagrassBlock
Behavior for tall seagrass blocks.
TintedParticleLeavesBlock
Used for oak, spruce, jungle… tree leaves.
TorchflowerCropBlock
Behavior for the Torchflower Block
TwistingVinesBlock
Vanilla TwistingVinesBlock (head) survival.
TwistingVinesPlantBlock
Vanilla TwistingVinesPlantBlock (body) survival.
UntintedParticleLeavesBlock
Used for cherry tree leaves.
VineBlock
Vanilla VineBlock survival and neighbor shape updates.
WeepingVinesBlock
Vanilla WeepingVinesBlock (head) survival.
WeepingVinesPlantBlock
Vanilla WeepingVinesPlantBlock (body) survival.
WitherRoseBlock
Behavior for wither roses.
WoolCarpetBlock
Vanilla WoolCarpetBlock behavior for dyed wool carpets.

EnumsΒ§

EyeblossomType
Vanilla open/closed eyeblossom type from classes.json.

TraitsΒ§

Vegetation
Common behavior for vegetation blocks

FunctionsΒ§

can_attach_to_multiface πŸ”’
Vanilla MultifaceBlock.canAttachTo(level, directionTowardsNeighbor, neighborPos, neighborState).
can_attach_to_multiface_state πŸ”’
coral_plant_can_survive πŸ”’
Vanilla BaseCoralPlantTypeBlock.canSurvive (also BaseCoralFanBlock, CoralPlantBlock, CoralFanBlock).
coral_scan_for_water πŸ”’
Vanilla BaseCoralPlantTypeBlock.scanForWater.
coral_wall_fan_can_survive πŸ”’
Vanilla BaseCoralWallFanBlock.canSurvive.
default_surviving_state πŸ”’
find_stalactite_tip_above_cauldron
Searches upward from cauldron position to find an overhanging stalactite tip.
get_cauldron_fill_fluid_type
Determines which fluid (water or lava) a stalactite would fill a cauldron with.
get_top_connected_block
Vanilla equal getTopConnectedBlock()
growing_plant_can_survive πŸ”’
Vanilla GrowingPlantBlock.canSurvive.
kelp_can_survive πŸ”’
multiface_can_survive πŸ”’
Vanilla MultifaceBlock.canSurvive.
multiface_face_property πŸ”’
Vanilla MultifaceBlock.getFaceProperty(faceDirection).
multiface_has_any_face πŸ”’
nether_vines_get_blocks_to_grow_when_bonemealed
Vanilla getBlocksToGrowWhenBonemealed()
schedule_coral_die_tick πŸ”’
Vanilla BaseCoralPlantTypeBlock.tryScheduleDieTick.
survives_on_tag πŸ”’
turn_to_dirt πŸ”’
Turns farmland or a dirt path into dirt.
update_multiface_shape πŸ”’
water_source_fluid_state πŸ”’

Type AliasesΒ§

BlockTagRef πŸ”’