Commit Graph

4 Commits

Author SHA1 Message Date
Ludovic Marie d32fd5457a Beehives: nests grown in the live level get their block entity and bees
BeehiveDecorator stores 2 or 3 bees in the nest's block entity. World
generation kept them, but trees placed in the live level (a sapling grown next
to flowers, which picks the *_bees_005 trees, and /place feature) dropped them:
LevelFeatureWorld had no store_beehive_occupants, so the nest had no block
entity at all. Breaking it released nothing and bees could not enter it.

LevelAccess gets load_block_entity, the game loads the occupants into the
nest's block entity, and the occupant NBT is shared with world generation.

Fixes #1097

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 21:06:32 +02:00
Ludovic Marie ab9109c787 Route world generation's and mob AI's Math calls through jmath
Beardifier, density pow/log, Marsaglia's Gaussian, dripstone, ores, fancy
trunks, icebergs, end spikes, strongholds, note pitches, sculk charge
particles, the warden's and brains' weighted shuffles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:06:48 +02:00
Ludovic Marie 68fc42013c Merge feature algorithms branch and wire generator decoration hooks
Merge worktree-agent-a8b4c3c64b61988c7 (trees, ores, vegetation, lakes,
geodes, dungeons, icebergs, dripstone, fungus, end spikes). The decoration
world now supplies the world seed, the write-zone check, raw section
writes for bulk ore placement and full-block collision tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 00:41:47 +02:00
Ludovic Marie 50b9995358 Port vanilla tree, fallen tree and blob ore features
Adds minecraft:tree with every 26.3 trunk placer (straight, forking,
giant, mega_jungle, dark_oak, fancy, bending, upwards_branching, cherry,
poplar), foliage placer (blob, fancy, bush, acacia, spruce, pine,
mega_pine, jungle, dark_oak, random_spread, cherry, poplar), the mangrove
root placer, all tree decorators, two/three-layer feature sizes and the
native leaf-distance pass with Java HashSet iteration order. Adds
minecraft:fallen_tree and minecraft:ore (BulkSectionAccess-style raw
section writes with write-zone checks).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 19:14:26 +02:00