Match vanilla structure placement block for block
- Legacy jigsaw elements apply STRUCTURE_AND_AIR last, after jigsaw replacement (outposts no longer carve air where jigsaws sat). - Templates without a known shape run StructureTemplate's neighbor shape updates (updateShapeAtEdge, then updateFromNeighbourShapes) through level::Behaviours: snowy grass under igloos, stair shapes and fence connections in shipwrecks. - The placement oracle keeps going through structure entities (a level stand-in with no enabled features) and compares brushable-block loot. With block behavior exports present, 18 chunks of seed 1 covering villages, igloo, outpost, mineshafts, shipwreck, warm ocean ruin, buried treasure, ruined portal, trial chambers, monument, mansion, stronghold, ancient city, trail ruins and a jungle temple match vanilla exactly, blocks and block-entity loot seeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,7 +52,9 @@ def parse(lines):
|
||||
elif t[0] == 'y' and current:
|
||||
chunks[current]['rows'][int(t[1])] = t[2:]
|
||||
elif t[0] == 'be' and current:
|
||||
chunks[current]['be'].append(' '.join(t[1:]))
|
||||
# Position, loot table and seed; the block entity type follows
|
||||
# from the (separately compared) block state.
|
||||
chunks[current]['be'].append(' '.join(t[1:4] + t[5:]))
|
||||
return chunks
|
||||
|
||||
|
||||
@@ -77,6 +79,7 @@ def main():
|
||||
check=True, cwd=lab.ROOT)
|
||||
rust_out = subprocess.run([str(lab.ROOT/'target/fast/examples/structure_blocks'), resources, seed, dimension, *targets],
|
||||
check=True, capture_output=True, text=True).stdout
|
||||
(build_dir()/'rust.txt').write_text(rust_out)
|
||||
rust = parse(rust_out.splitlines())
|
||||
names = state_names(resources)
|
||||
failed = 0
|
||||
|
||||
Reference in New Issue
Block a user