Fix the tree feature harness and the scene probes

The tree fixture world now applies vanilla's edge shape updates for its
obstacles (faceless vines, unsupported short grass), the vanilla fixture
world answers environment attributes with defaults, and features that
need structure templates or the pale moss registry, directly or through
named features, are left to the decoration harnesses. The scene probes
build their scene with World::test_scene since TestWorld was removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-09 00:28:31 +02:00
parent ebb1180bd5
commit 2a7f199b5f
6 changed files with 99 additions and 4 deletions
@@ -92,6 +92,7 @@ public final class VanillaTreeFeatureOracle {
case "scheduleTick":return null; // Edge shape updates also schedule ticks; not compared.
case "setCurrentlyGenerating":case "playSound":case "levelEvent":case "gameEvent":case "blockEvent":return null;
case "getEntities":return java.util.List.of();
case "environmentAttributes":return net.minecraft.world.attribute.EnvironmentAttributeReader.EMPTY; // attribute defaults
case "getBlockEntity":{
if(args.length!=1)break;var p=((BlockPos)args[0]).immutable();var state=get(p);
if(state.is(Blocks.CHEST))return chests.computeIfAbsent(p,key->new ChestBlockEntity(key,state){@Override public void setLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> table,long seed){out.println("loot "+xyz(key)+" "+table.identifier()+" "+seed);super.setLootTable(table,seed);}});