From 9c5cb19749174a81b1b02ab1987f72863a000c0e Mon Sep 17 00:00:00 2001 From: SierraNevada <111426360+programmer1o1@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:32:02 +0800 Subject: [PATCH 1/3] Share neighbour cache and face visibility across render paths The vanilla and VulkanMod paths now read block state, light and AO occlusion through GreedySectionCache like the Sodium path already did, instead of hitting the world for every AO corner. Measured on vanilla rendering: about 8-10% faster per section (median 0.635 vs 0.693 ms). populateFaceVisibility, the flat-water check and the AO key were copied across the three mixins; they now live in GreedyFaceVisibility. Unused imports and constants left behind are removed. Adds a per-section greedy build timer (shown in the debug HUD) and /greedybench [rounds], which rebuilds all loaded sections and prints the average, median and spread, since F3+L's compile queue does not see Sodium's chunk builder. --- .../greedy_meshing/client/GreedyBench.java | 121 +++++++++++ .../client/GreedyFaceVisibility.java | 184 +++++++++++++++++ .../client/GreedyMeshingClient.java | 29 +++ .../client/GreedyPerformanceStats.java | 35 ++++ .../client/GreedySectionCache.java | 8 + .../mixin/client/DebugScreenOverlayMixin.java | 4 + .../mixin/client/SectionCompilerMixin.java | 193 +----------------- .../SodiumChunkBuilderMeshingTaskMixin.java | 158 +------------- .../client/vulkan/VulkanBuildTaskMixin.java | 169 +-------------- 9 files changed, 403 insertions(+), 498 deletions(-) create mode 100644 src/client/java/hi/sierra/greedy_meshing/client/GreedyBench.java create mode 100644 src/client/java/hi/sierra/greedy_meshing/client/GreedyFaceVisibility.java diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedyBench.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedyBench.java new file mode 100644 index 0000000..d83a49e --- /dev/null +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedyBench.java @@ -0,0 +1,121 @@ +package hi.sierra.greedy_meshing.client; + +import net.minecraft.client.Minecraft; +import net.minecraft.network.chat.Component; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * {@code /greedybench [rounds]}: for each round, resets the build-time counters, rebuilds every + * loaded section and waits for the rebuild to go quiet, then prints the per-section greedy build + * time. After the last round it prints the median and spread. It exists because F3+L's + * compile-queue metric is blind to Sodium's chunk builder. + */ +public final class GreedyBench { + /** No new sections for this long means a round has settled (2 seconds). */ + private static final int QUIET_TICKS = 40; + private static final int TIMEOUT_TICKS = 20 * 90; + + private static boolean active; + private static int totalRounds; + private static int round; + private static final List ROUND_AVERAGES = new ArrayList<>(); + private static long lastCount; + private static int quietTicks; + private static int elapsedTicks; + + private GreedyBench() { + } + + public static void start(Minecraft mc, int rounds) { + if (mc.level == null || mc.player == null) { + return; + } + totalRounds = Math.max(1, rounds); + round = 0; + ROUND_AVERAGES.clear(); + say(mc, "Greedy bench: " + totalRounds + " round(s), stand still..."); + beginRound(mc); + } + + private static void beginRound(Minecraft mc) { + round++; + GreedyPerformanceStats.reset(); + active = true; + lastCount = 0; + quietTicks = 0; + elapsedTicks = 0; + //? if >=26.2 { + /*if (mc.levelExtractor != null) { + mc.levelExtractor.allChanged(); + } + *///?} else { + if (mc.levelRenderer != null) { + mc.levelRenderer.allChanged(); + } + //?} + } + + public static void tick(Minecraft mc) { + if (!active) { + return; + } + if (mc.player == null || mc.level == null) { + active = false; + return; + } + elapsedTicks++; + long count = GreedyPerformanceStats.buildCount(); + if (count > 0 && count == lastCount) { + quietTicks++; + } else { + quietTicks = 0; + lastCount = count; + } + boolean timedOut = elapsedTicks >= TIMEOUT_TICKS; + if (quietTicks < QUIET_TICKS && !timedOut) { + return; + } + active = false; + double avg = GreedyPerformanceStats.buildAverageMillis(); + ROUND_AVERAGES.add(avg); + say(mc, String.format("Round %d/%d: avg %.3f ms over %d sections%s", + round, totalRounds, avg, count, timedOut ? " (timed out)" : "")); + if (round < totalRounds) { + beginRound(mc); + } else { + summarize(mc); + } + } + + private static void summarize(Minecraft mc) { + List sorted = new ArrayList<>(ROUND_AVERAGES); + Collections.sort(sorted); + double median = sorted.size() % 2 == 1 + ? sorted.get(sorted.size() / 2) + : (sorted.get(sorted.size() / 2 - 1) + sorted.get(sorted.size() / 2)) / 2.0; + // The first round is dominated by JIT warm-up, so also report the mean without it. + double warmMean = 0; + int warmCount = 0; + for (int i = 1; i < ROUND_AVERAGES.size(); i++) { + warmMean += ROUND_AVERAGES.get(i); + warmCount++; + } + say(mc, String.format("Greedy bench done: median %.3f ms, min %.3f, max %.3f%s", + median, sorted.get(0), sorted.get(sorted.size() - 1), + warmCount > 0 ? String.format(", mean w/o round 1 %.3f", warmMean / warmCount) : "")); + } + + private static void say(Minecraft mc, String text) { + if (mc.player == null) { + return; + } + //? if UNOBFUSCATED { + /*mc.player.sendSystemMessage(Component.literal(text)); + *///?} else { + mc.player.displayClientMessage(Component.literal(text), false); + //?} + } +} diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedyFaceVisibility.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedyFaceVisibility.java new file mode 100644 index 0000000..91dc12b --- /dev/null +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedyFaceVisibility.java @@ -0,0 +1,184 @@ +package hi.sierra.greedy_meshing.client; + +import hi.sierra.greedy_meshing.GreedyConfig; +import hi.sierra.greedy_meshing.GreedyMesher; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +//? if UNOBFUSCATED { +/*import net.minecraft.client.renderer.block.BlockAndTintGetter; +*///?} else { +import net.minecraft.world.level.BlockAndTintGetter; +//?} +import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.Blocks; +import net.minecraft.world.level.block.state.BlockState; +import net.minecraft.world.level.material.FluidState; +import net.minecraft.world.level.material.Fluids; + +import java.util.BitSet; + +/** + * Face visibility and merge-key computation shared by the Sodium, vanilla and VulkanMod paths. + * Every neighbour lookup goes through the per-thread {@link GreedySectionCache}. + */ +public final class GreedyFaceVisibility { + private static final Direction[] FACES = Direction.values(); + + /** For each face, the 8 cells around the sampled neighbour whose occlusion forms the AO key. */ + private static final int[][][] AO_OFFSETS = new int[6][8][3]; + static { + for (Direction face : FACES) { + int ax1, ay1, az1, ax2, ay2, az2; + switch (face) { + case DOWN, UP -> { ax1 = 1; ay1 = 0; az1 = 0; ax2 = 0; ay2 = 0; az2 = 1; } + case NORTH, SOUTH -> { ax1 = 1; ay1 = 0; az1 = 0; ax2 = 0; ay2 = 1; az2 = 0; } + default -> { ax1 = 0; ay1 = 0; az1 = 1; ax2 = 0; ay2 = 1; az2 = 0; } + } + int idx = 0; + for (int a = -1; a <= 1; a++) { + for (int b = -1; b <= 1; b++) { + if (a == 0 && b == 0) continue; + AO_OFFSETS[face.ordinal()][idx][0] = face.getStepX() + a * ax1 + b * ax2; + AO_OFFSETS[face.ordinal()][idx][1] = face.getStepY() + a * ay1 + b * ay2; + AO_OFFSETS[face.ordinal()][idx][2] = face.getStepZ() + a * az1 + b * az2; + idx++; + } + } + } + } + + private GreedyFaceVisibility() { + } + + /** + * Fills {@code visibleFaces} and {@code faceMergeKeys} for one section. + * + * @param eligibleIndices block indices to visit, or {@code null} to visit every cell + * @param eligibleCount number of valid entries in {@code eligibleIndices} + */ + public static void populate( + BlockAndTintGetter world, + GreedySectionCache cache, + BlockState[] sectionStates, + BitSet[] visibleFaces, + long[][] faceMergeKeys, + int baseX, + int baseY, + int baseZ, + int[] eligibleIndices, + int eligibleCount + ) { + GreedyMesher.clearFaceMaskArray(visibleFaces); + BlockPos.MutableBlockPos samplePos = new BlockPos.MutableBlockPos(); + int visits = eligibleIndices != null + ? eligibleCount + : GreedyMesher.SECTION_SIZE * GreedyMesher.SECTION_SIZE * GreedyMesher.SECTION_SIZE; + boolean aggressive = GreedyConfig.aggressiveGreedy(); + for (int i = 0; i < visits; i++) { + int idx = eligibleIndices != null ? eligibleIndices[i] : i; + BlockState state = sectionStates[idx]; + if (state == null) { + continue; + } + int x = idx & 15; + int y = (idx >> 8) & 15; + int z = (idx >> 4) & 15; + int worldX = baseX + x; + int worldY = baseY + y; + int worldZ = baseZ + z; + for (Direction face : FACES) { + int nx = x + face.getStepX(); + int ny = y + face.getStepY(); + int nz = z + face.getStepZ(); + if (nx >= 0 && nx < GreedyMesher.SECTION_SIZE + && ny >= 0 && ny < GreedyMesher.SECTION_SIZE + && nz >= 0 && nz < GreedyMesher.SECTION_SIZE + && sectionStates[GreedyMesher.index(nx, ny, nz)] != null) { + continue; + } + + samplePos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); + BlockState neighbor = cache.state(samplePos.getX(), samplePos.getY(), samplePos.getZ()); + //? if >=1.21.2 { + if (Block.shouldRenderFace(state, neighbor, face)) { + //?} else { + /*if (Block.shouldRenderFace(state, world, new BlockPos(worldX, worldY, worldZ), face, samplePos)) { + *///?} + visibleFaces[face.ordinal()].set(idx); + int mergeKey; + if (state.is(Blocks.WATER)) { + // Water only merges within the interior of a flat, uncovered still-water body + // (see GreedyEligibility.isGreedyWaterSource + isFlatWaterSurface) — vanilla + // renders a sloped, per-corner-averaged surface everywhere else, which this + // mod's flat GreedyQuad rectangles can't represent. The bottom face is always + // an exact flat square regardless of the top surface's slope, so it skips the + // check; every other face (including the sides, whose top edge follows the + // same slope as the top face) needs it. Non-flat faces get a unique key so they + // fall back to individual 1x1 quads — pixel-identical to un-merged vanilla + // rendering, never a regression. + boolean flat = face == Direction.DOWN + || isFlatWaterSurface(world, worldX, worldY, worldZ, samplePos); + mergeKey = flat ? 0 : (0x40000000 | idx); + } else { + // Aggressive ("absolute") greedy ignores the AO signature so same-block faces + // merge into the largest possible quads; lighting is still sampled per sub-quad. + mergeKey = aggressive ? 0 : computeAoKey(cache, worldX, worldY, worldZ, face); + } + faceMergeKeys[face.ordinal()][idx] = mergeKey; + } + } + } + } + + /** + * True iff the 3x3 horizontal neighbourhood centered on (worldX, worldY, worldZ) is entirely + * uncovered still-water source blocks — the union of the four lattice corners vanilla's own + * per-corner height averaging touches for this block's top face. Checking the superset rather + * than each corner's exact 2x2 footprint is conservative: a handful of tiles that would actually + * render flat get misclassified as non-flat (and simply don't merge), which is acceptable — + * this check only ever removes merge opportunities, never approves an incorrect one. + */ + private static boolean isFlatWaterSurface( + BlockAndTintGetter world, int worldX, int worldY, int worldZ, BlockPos.MutableBlockPos scratch + ) { + for (int dx = -1; dx <= 1; dx++) { + for (int dz = -1; dz <= 1; dz++) { + scratch.set(worldX + dx, worldY, worldZ + dz); + BlockState neighborState = world.getBlockState(scratch); + if (!neighborState.is(Blocks.WATER)) { + return false; + } + FluidState neighborFluid = neighborState.getFluidState(); + if (!neighborFluid.isSource() || neighborFluid.getType() != Fluids.WATER) { + return false; + } + scratch.set(worldX + dx, worldY + 1, worldZ + dz); + if (world.getBlockState(scratch).getFluidState().getType() == Fluids.WATER) { + return false; + } + } + } + return true; + } + + private static int computeAoKey(GreedySectionCache cache, + int worldX, int worldY, int worldZ, Direction face) { + int[][] offsets = AO_OFFSETS[face.ordinal()]; + int key = 0; + for (int i = 0; i < 8; i++) { + // occludes() is the single occlusion predicate shared with the smooth-lighting path + // (isLightPermeable on 26.3, isViewBlocking + light dampening before). + if (cache.occludes(worldX + offsets[i][0], worldY + offsets[i][1], worldZ + offsets[i][2])) { + key |= (1 << i); + } + } + // AO occupancy alone is insufficient: two otherwise identical faces can sit on + // opposite sides of a block/sky-light boundary. Keep the four-bit block and sky + // levels in disjoint key bits so a dark sample cannot be interpolated across a + // brighter merged run. Aggressive mode deliberately bypasses this whole key. + int packedLight = cache.light(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); + key |= ((packedLight >>> 4) & 0xF) << 8; + key |= ((packedLight >>> 20) & 0xF) << 12; + return key; + } +} diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedyMeshingClient.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedyMeshingClient.java index 81751ee..b271913 100644 --- a/src/client/java/hi/sierra/greedy_meshing/client/GreedyMeshingClient.java +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedyMeshingClient.java @@ -1,6 +1,13 @@ package hi.sierra.greedy_meshing.client; +import com.mojang.brigadier.arguments.IntegerArgumentType; import net.fabricmc.api.ClientModInitializer; +//? if UNOBFUSCATED { +/*import net.fabricmc.fabric.api.client.command.v2.ClientCommands; +*///?} else { +import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager; +//?} +import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; //? if >=1.21.9 { /*import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry; @@ -63,6 +70,27 @@ public void onInitializeClient() { //?} ClientTickEvents.END_CLIENT_TICK.register(GreedyMeshingClient::onClientTick); GreedyResourceReloadListener.register(); + ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> + //? if UNOBFUSCATED { + /*dispatcher.register(ClientCommands.literal("greedybench") + .executes(context -> { + GreedyBench.start(Minecraft.getInstance(), 1); + return 1; + }) + .then(ClientCommands.argument("rounds", IntegerArgumentType.integer(1, 50)) + *///?} else { + dispatcher.register(ClientCommandManager.literal("greedybench") + .executes(context -> { + GreedyBench.start(Minecraft.getInstance(), 1); + return 1; + }) + .then(ClientCommandManager.argument("rounds", IntegerArgumentType.integer(1, 50)) + //?} + .executes(context -> { + GreedyBench.start(Minecraft.getInstance(), + IntegerArgumentType.getInteger(context, "rounds")); + return 1; + })))); } private static void onClientTick(Minecraft mc) { @@ -79,6 +107,7 @@ private static void onClientTick(Minecraft mc) { zonePlayerSectionX = Integer.MIN_VALUE; } + GreedyBench.tick(mc); greedyMeshing$refreshMergeZone(mc); greedyMeshing$pruneUnloadedSections(mc); } diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedyPerformanceStats.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedyPerformanceStats.java index 340851a..fa841ae 100644 --- a/src/client/java/hi/sierra/greedy_meshing/client/GreedyPerformanceStats.java +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedyPerformanceStats.java @@ -15,6 +15,11 @@ public final class GreedyPerformanceStats { private static final LongAdder MERGED_QUADS = new LongAdder(); private static final LongAdder EMITTED_QUADS = new LongAdder(); private static final LongAdder VANILLA_EQUIVALENT_QUADS = new LongAdder(); + // Wall-clock cost of the greedy step (visibility, merge, emit) per section that produced + // geometry. Meant for A/B comparing builds: F3+L's compile-queue metric is blind to Sodium. + private static final LongAdder BUILD_NANOS = new LongAdder(); + private static final LongAdder BUILD_COUNT = new LongAdder(); + private static final AtomicLong BUILD_MAX_NANOS = new AtomicLong(); /** * Per-section geometry for sections that are currently built, keyed by @@ -40,6 +45,9 @@ public static void reset() { MERGED_QUADS.reset(); EMITTED_QUADS.reset(); VANILLA_EQUIVALENT_QUADS.reset(); + BUILD_NANOS.reset(); + BUILD_COUNT.reset(); + BUILD_MAX_NANOS.set(0); LIVE_SECTIONS.clear(); LIVE_EMITTED.set(0); LIVE_VANILLA_EQUIVALENT.set(0); @@ -105,6 +113,33 @@ public static void onGreedySectionBuilt(int eligibleBlocks, int mergedQuads, int VANILLA_EQUIVALENT_QUADS.add(Math.max(0, vanillaEquivalent)); } + /** Records one section's greedy build time; called from each backend after the emit. */ + public static void recordBuildNanos(long nanos) { + BUILD_NANOS.add(nanos); + BUILD_COUNT.increment(); + BUILD_MAX_NANOS.accumulateAndGet(nanos, Math::max); + } + + public static long buildCount() { + return BUILD_COUNT.sum(); + } + + public static double buildAverageMillis() { + long count = BUILD_COUNT.sum(); + return count == 0 ? 0.0 : BUILD_NANOS.sum() / (double) count / 1_000_000.0; + } + + /** One HUD line: average and worst per-section greedy build time since the last reset. */ + public static String formatBuildTime() { + long count = BUILD_COUNT.sum(); + if (count == 0) { + return "Greedy build time: no sections yet"; + } + double avgMs = BUILD_NANOS.sum() / (double) count / 1_000_000.0; + double maxMs = BUILD_MAX_NANOS.get() / 1_000_000.0; + return String.format("Greedy build time: avg %.3f ms, max %.2f ms (%d sections)", avgMs, maxMs, count); + } + public static Snapshot snapshot() { return new Snapshot( VANILLA_COMPILE_HOOKS.sum(), diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedySectionCache.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedySectionCache.java index 0f2cae3..223b35d 100644 --- a/src/client/java/hi/sierra/greedy_meshing/client/GreedySectionCache.java +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedySectionCache.java @@ -25,6 +25,14 @@ public final class GreedySectionCache { private static final int CELLS = PAD * PAD * PAD; private static final int LIGHT_UNKNOWN = Integer.MIN_VALUE; + // Vanilla and Vulkan recreate their per-compile work state every build, so the ~50 KiB of cache + // arrays live here per thread instead of being reallocated for each section. + private static final ThreadLocal THREAD = ThreadLocal.withInitial(GreedySectionCache::new); + + public static GreedySectionCache forThread() { + return THREAD.get(); + } + private final BlockState[] states = new BlockState[CELLS]; private final int[] light = new int[CELLS]; /** 0 = unknown, 1 = does not occlude, 2 = occludes (see {@link #occludes}). */ diff --git a/src/client/java/hi/sierra/greedy_meshing/mixin/client/DebugScreenOverlayMixin.java b/src/client/java/hi/sierra/greedy_meshing/mixin/client/DebugScreenOverlayMixin.java index b741b1d..e8ea49f 100644 --- a/src/client/java/hi/sierra/greedy_meshing/mixin/client/DebugScreenOverlayMixin.java +++ b/src/client/java/hi/sierra/greedy_meshing/mixin/client/DebugScreenOverlayMixin.java @@ -61,6 +61,7 @@ public void display(DebugScreenDisplayer displayer, Level level, LevelChunk clie lines.add(String.format("Sections: %d Blocks: %s", stats.greedySections(), fmt(stats.eligibleBlocks()))); lines.add(GreedyPerformanceStats.formatVertexSavings(stats)); + lines.add(GreedyPerformanceStats.formatBuildTime()); if (GreedyRuntimeState.isShaderPackActive()) { lines.add("Shader: tiled mode (face culling only)"); } @@ -127,6 +128,7 @@ public void display(DebugScreenDisplayer displayer, Level level, LevelChunk clie lines.add(String.format("Sections: %d Blocks: %s", stats.greedySections(), fmt(stats.eligibleBlocks()))); lines.add(GreedyPerformanceStats.formatVertexSavings(stats)); + lines.add(GreedyPerformanceStats.formatBuildTime()); if (GreedyRuntimeState.isShaderPackActive()) { lines.add("Shader: tiled mode (face culling only)"); } @@ -195,6 +197,7 @@ public abstract class DebugScreenOverlayMixin { lines.add(String.format("Sections: %d Blocks: %s", stats.greedySections(), greedyMeshing$fmt(stats.eligibleBlocks()))); lines.add(GreedyPerformanceStats.formatVertexSavings(stats)); + lines.add(GreedyPerformanceStats.formatBuildTime()); if (GreedyRuntimeState.isShaderPackActive()) { lines.add("Shader: tiled mode (face culling only)"); @@ -246,6 +249,7 @@ public abstract class DebugScreenOverlayMixin { lines.add(String.format("Sections: %d Blocks: %s", stats.greedySections(), greedyMeshing$fmt(stats.eligibleBlocks()))); lines.add(GreedyPerformanceStats.formatVertexSavings(stats)); + lines.add(GreedyPerformanceStats.formatBuildTime()); if (GreedyRuntimeState.isShaderPackActive()) { lines.add("Shader: tiled mode (face culling only)"); diff --git a/src/client/java/hi/sierra/greedy_meshing/mixin/client/SectionCompilerMixin.java b/src/client/java/hi/sierra/greedy_meshing/mixin/client/SectionCompilerMixin.java index b6c7461..1a4a4c8 100644 --- a/src/client/java/hi/sierra/greedy_meshing/mixin/client/SectionCompilerMixin.java +++ b/src/client/java/hi/sierra/greedy_meshing/mixin/client/SectionCompilerMixin.java @@ -32,7 +32,6 @@ import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandlerRegistry; import net.minecraft.client.renderer.block.BlockRenderDispatcher; //?} -import net.minecraft.client.renderer.LevelRenderer; import net.minecraft.client.renderer.SectionBufferBuilderPack; //? if >=1.21.6 { /*import net.minecraft.client.renderer.chunk.ChunkSectionLayer; @@ -52,7 +51,6 @@ *///?} else { import net.minecraft.world.level.BlockAndTintGetter; //?} -import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.RenderShape; import net.minecraft.world.level.block.state.BlockState; @@ -63,9 +61,11 @@ import hi.sierra.greedy_meshing.GreedyMesher; import hi.sierra.greedy_meshing.client.GreedyDebugStore; import hi.sierra.greedy_meshing.client.GreedyEmissiveSupport; +import hi.sierra.greedy_meshing.client.GreedyFaceVisibility; import hi.sierra.greedy_meshing.client.GreedyLighting; import hi.sierra.greedy_meshing.client.GreedyPerformanceStats; import hi.sierra.greedy_meshing.client.GreedyRuntimeState; +import hi.sierra.greedy_meshing.client.GreedySectionCache; import hi.sierra.greedy_meshing.client.GreedySpriteSupport; import hi.sierra.greedy_meshing.client.GreedyVanillaWorkState; import org.spongepowered.asm.mixin.Mixin; @@ -102,8 +102,6 @@ protected abstract BufferBuilder getOrBeginLayer( @Unique private static final ThreadLocal GREEDY_MESHING$STATE = ThreadLocal.withInitial(GreedyVanillaWorkState::new); - @Unique - private static final Direction[] GREEDY_MESHING$FACES = Direction.values(); @Inject(method = "compile", at = @At("HEAD")) private void greedyMeshing$beginCompile( SectionPos sectionPos, @@ -246,12 +244,16 @@ protected abstract BufferBuilder getOrBeginLayer( int baseX = work.baseX(); int baseY = work.baseY(); int baseZ = work.baseZ(); + long greedyBuildStartNanos = System.nanoTime(); work.scratchLighting.applyDirectionalShade = !GreedyRuntimeState.isInSableSubLevel(baseX >> 4, baseZ >> 4) && !GreedyRuntimeState.isFlatLighting(); long[][] mergeKeys = work.faceMergeKeys(); - populateFaceVisibility(renderSectionRegion, work.sectionStates(), work.visibleFaces(), mergeKeys, baseX, baseY, baseZ, work.eligibleIndices(), work.eligibleCount()); + GreedySectionCache sectionCache = GreedySectionCache.forThread(); + sectionCache.begin(renderSectionRegion, baseX, baseY, baseZ); + work.scratchLighting.cache = sectionCache; + GreedyFaceVisibility.populate(renderSectionRegion, sectionCache, work.sectionStates(), work.visibleFaces(), mergeKeys, baseX, baseY, baseZ, work.eligibleIndices(), work.eligibleCount()); List merged = GreedyMesher.meshWithKeys( work.sectionStates(), work.visibleFaces(), mergeKeys ); @@ -328,11 +330,13 @@ protected abstract BufferBuilder getOrBeginLayer( } GreedyPerformanceStats.onGreedySectionBuilt(work.eligibleCount(), merged.size(), emittedQuads, vanillaEquivalent); + GreedyPerformanceStats.recordBuildNanos(System.nanoTime() - greedyBuildStartNanos); GreedyPerformanceStats.setSectionGeometry(sectionPos.asLong(), emittedQuads, vanillaEquivalent); if (captureDebug) { GreedyDebugStore.setSectionQuads(sectionPos.asLong(), debugQuads); } } finally { + GreedySectionCache.forThread().end(); GREEDY_MESHING$STATE.remove(); } } @@ -455,185 +459,6 @@ private static GreedyDebugStore.DebugQuad toDebugQuad( //?} } - @Unique - private static void populateFaceVisibility( - //? if >=1.21.6 { - /*RenderSectionRegion region, - *///?} else { - RenderChunkRegion region, - //?} - BlockState[] sectionStates, - BitSet[] visibleFaces, - long[][] faceMergeKeys, - int baseX, - int baseY, - int baseZ, - int[] eligibleIndices, - int eligibleCount - ) { - GreedyMesher.clearFaceMaskArray(visibleFaces); - BlockPos.MutableBlockPos samplePos = new BlockPos.MutableBlockPos(); - for (int i = 0; i < eligibleCount; i++) { - int idx = eligibleIndices[i]; - BlockState state = sectionStates[idx]; - if (state == null) { - continue; - } - - int x = idx & 15; - int y = (idx >> 8) & 15; - int z = (idx >> 4) & 15; - int worldX = baseX + x; - int worldY = baseY + y; - int worldZ = baseZ + z; - for (Direction face : GREEDY_MESHING$FACES) { - int nx = x + face.getStepX(); - int ny = y + face.getStepY(); - int nz = z + face.getStepZ(); - if (nx >= 0 && nx < GreedyMesher.SECTION_SIZE - && ny >= 0 && ny < GreedyMesher.SECTION_SIZE - && nz >= 0 && nz < GreedyMesher.SECTION_SIZE - && sectionStates[GreedyMesher.index(nx, ny, nz)] != null) { - continue; - } - - samplePos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - BlockState neighbor = region.getBlockState(samplePos); - //? if >=1.21.2 { - if (Block.shouldRenderFace(state, neighbor, face)) { - //?} else { - /*if (Block.shouldRenderFace(state, region, new BlockPos(worldX, worldY, worldZ), face, samplePos)) { - *///?} - visibleFaces[face.ordinal()].set(idx); - int mergeKey; - if (state.is(Blocks.WATER)) { - // Water only merges within the interior of a flat, uncovered still-water body - // (see GreedyEligibility.isGreedyWaterSource + isFlatWaterSurface) — vanilla - // renders a sloped, per-corner-averaged surface everywhere else, which this - // mod's flat GreedyQuad rectangles can't represent. The bottom face is always - // an exact flat square regardless of the top surface's slope, so it skips the - // check; every other face (including the sides, whose top edge follows the - // same slope as the top face) needs it. Non-flat faces get a unique key so they - // fall back to individual 1x1 quads — pixel-identical to un-merged vanilla - // rendering, never a regression. - boolean flat = face == Direction.DOWN - || isFlatWaterSurface(region, worldX, worldY, worldZ, samplePos); - mergeKey = flat ? 0 : (0x40000000 | idx); - } else { - // Aggressive ("absolute") greedy ignores the AO signature so same-block faces - // merge into the largest possible quads; lighting is still sampled per sub-quad. - mergeKey = GreedyConfig.aggressiveGreedy() - ? 0 - : computeAoKey(region, samplePos, worldX, worldY, worldZ, face); - } - faceMergeKeys[face.ordinal()][idx] = mergeKey; - } - } - } - } - - /** - * True iff the 3x3 horizontal neighbourhood centered on (worldX, worldY, worldZ) is entirely - * uncovered still-water source blocks — the union of the four lattice corners vanilla's own - * per-corner height averaging touches for this block's top face. Checking the superset rather - * than each corner's exact 2x2 footprint is conservative: a handful of tiles that would actually - * render flat get misclassified as non-flat (and simply don't merge), which is acceptable — - * this check only ever removes merge opportunities, never approves an incorrect one. - */ - @Unique - private static boolean isFlatWaterSurface( - //? if >=1.21.6 { - /*RenderSectionRegion region, - *///?} else { - RenderChunkRegion region, - //?} - int worldX, int worldY, int worldZ, BlockPos.MutableBlockPos scratch - ) { - for (int dx = -1; dx <= 1; dx++) { - for (int dz = -1; dz <= 1; dz++) { - scratch.set(worldX + dx, worldY, worldZ + dz); - BlockState neighborState = region.getBlockState(scratch); - if (!neighborState.is(Blocks.WATER)) { - return false; - } - FluidState neighborFluid = neighborState.getFluidState(); - if (!neighborFluid.isSource() || neighborFluid.getType() != Fluids.WATER) { - return false; - } - scratch.set(worldX + dx, worldY + 1, worldZ + dz); - if (region.getBlockState(scratch).getFluidState().getType() == Fluids.WATER) { - return false; - } - } - } - return true; - } - - @Unique - private static final int[][][] AO_OFFSETS = new int[6][8][3]; - static { - Direction[] faces = Direction.values(); - for (Direction face : faces) { - int ax1, ay1, az1, ax2, ay2, az2; - switch (face) { - case DOWN, UP -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=0; az2=1; } - case NORTH, SOUTH -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=1; az2=0; } - default -> { ax1=0; ay1=0; az1=1; ax2=0; ay2=1; az2=0; } - } - int idx = 0; - for (int a = -1; a <= 1; a++) { - for (int b = -1; b <= 1; b++) { - if (a == 0 && b == 0) continue; - AO_OFFSETS[face.ordinal()][idx][0] = face.getStepX() + a * ax1 + b * ax2; - AO_OFFSETS[face.ordinal()][idx][1] = face.getStepY() + a * ay1 + b * ay2; - AO_OFFSETS[face.ordinal()][idx][2] = face.getStepZ() + a * az1 + b * az2; - idx++; - } - } - } - } - - @Unique - //? if >=1.21.6 { - /*private static int computeAoKey(RenderSectionRegion region, BlockPos.MutableBlockPos pos, - *///?} else { - private static int computeAoKey(RenderChunkRegion region, BlockPos.MutableBlockPos pos, - //?} - int worldX, int worldY, int worldZ, Direction face) { - int[][] offsets = AO_OFFSETS[face.ordinal()]; - int key = 0; - for (int i = 0; i < 8; i++) { - pos.set(worldX + offsets[i][0], worldY + offsets[i][1], worldZ + offsets[i][2]); - BlockState neighbor = region.getBlockState(pos); - //? if >=26.3 { - /*// 26.3 narrowed isViewBlocking to the camera near-plane check; vanilla and Sodium AO - // now test isLightPermeable(), which is the same solid-and-dampening predicate. - if (!neighbor.isLightPermeable()) { - *///?} else { - if (neighbor.isViewBlocking(region, pos) - //? if UNOBFUSCATED { - /*&& neighbor.getLightDampening() != 0 - *///?} else if >=1.21.2 { - && neighbor.getLightBlock() != 0 - //?} else { - /*&& neighbor.getLightBlock(region, pos) != 0 - *///?} - ) { - //?} - key |= (1 << i); - } - } - // AO occupancy alone is insufficient: two otherwise identical faces can sit on - // opposite sides of a block/sky-light boundary. Keep the four-bit block and sky - // levels in disjoint key bits so a dark sample cannot be interpolated across a - // brighter merged run. Aggressive mode deliberately bypasses this whole key. - pos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - int packedLight = GreedyLighting.mergeLightKey(region, pos); - key |= ((packedLight >>> 4) & 0xF) << 8; - key |= ((packedLight >>> 20) & 0xF) << 12; - return key; - } - /** Max sub-quad size for lighting subdivision. Larger merged quads are split into * sub-quads of at most this size so lighting gets sampled every LIGHT_STEP blocks. */ private static final int LIGHT_STEP = 4; diff --git a/src/client/java/hi/sierra/greedy_meshing/mixin/client/sodium/SodiumChunkBuilderMeshingTaskMixin.java b/src/client/java/hi/sierra/greedy_meshing/mixin/client/sodium/SodiumChunkBuilderMeshingTaskMixin.java index 5575583..f371517 100644 --- a/src/client/java/hi/sierra/greedy_meshing/mixin/client/sodium/SodiumChunkBuilderMeshingTaskMixin.java +++ b/src/client/java/hi/sierra/greedy_meshing/mixin/client/sodium/SodiumChunkBuilderMeshingTaskMixin.java @@ -54,17 +54,16 @@ import net.minecraft.core.Direction; import net.minecraft.core.SectionPos; import net.minecraft.util.RandomSource; -import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.material.FluidState; import net.minecraft.world.level.material.Fluids; -import hi.sierra.greedy_meshing.GreedyConfig; import hi.sierra.greedy_meshing.GreedyEligibility; import hi.sierra.greedy_meshing.GreedyMesher; import hi.sierra.greedy_meshing.client.GreedyColorLightCompat; import hi.sierra.greedy_meshing.client.GreedyDebugStore; import hi.sierra.greedy_meshing.client.GreedyEmissiveSupport; +import hi.sierra.greedy_meshing.client.GreedyFaceVisibility; import hi.sierra.greedy_meshing.client.GreedyLighting; import hi.sierra.greedy_meshing.client.GreedyPerformanceStats; import hi.sierra.greedy_meshing.client.GreedyRuntimeState; @@ -91,8 +90,6 @@ public abstract class SodiumChunkBuilderMeshingTaskMixin { @Unique private static final ThreadLocal GREEDY_MESHING$STATE = ThreadLocal.withInitial(GreedySodiumWorkState::new); @Unique - private static final Direction[] GREEDY_MESHING$FACES = Direction.values(); - @Unique private static final ThreadLocal GREEDY_MESHING$VISIBLE = ThreadLocal.withInitial(GreedyMesher::createFaceMaskArray); @Inject(method = "execute", at = @At("HEAD")) private void greedyMeshing$beginSodiumTask( @@ -416,6 +413,7 @@ public abstract class SodiumChunkBuilderMeshingTaskMixin { int baseX = work.sectionOrigin().getX(); int baseY = work.sectionOrigin().getY(); int baseZ = work.sectionOrigin().getZ(); + long greedyBuildStartNanos = System.nanoTime(); work.scratchLighting.applyDirectionalShade = !GreedyRuntimeState.isInSableSubLevel(baseX >> 4, baseZ >> 4) && !GreedyRuntimeState.isFlatLighting(); @@ -424,7 +422,7 @@ public abstract class SodiumChunkBuilderMeshingTaskMixin { GreedySectionCache sectionCache = work.sectionCache; sectionCache.begin(work.world(), baseX, baseY, baseZ); work.scratchLighting.cache = sectionCache; - populateFaceVisibility(work.world(), sectionCache, work.sectionStates(), visibleFaces, mergeKeys, baseX, baseY, baseZ); + GreedyFaceVisibility.populate(work.world(), sectionCache, work.sectionStates(), visibleFaces, mergeKeys, baseX, baseY, baseZ, null, 0); List merged = GreedyMesher.meshWithKeys( work.sectionStates(), visibleFaces, mergeKeys ); @@ -506,6 +504,7 @@ public abstract class SodiumChunkBuilderMeshingTaskMixin { } if (!merged.isEmpty()) { GreedyPerformanceStats.onGreedySectionBuilt(work.eligibleCount(), merged.size(), emittedQuads, vanillaEquivalent); + GreedyPerformanceStats.recordBuildNanos(System.nanoTime() - greedyBuildStartNanos); GreedyPerformanceStats.setSectionGeometry(work.sectionKey(), emittedQuads, vanillaEquivalent); } @@ -668,155 +667,6 @@ private static GreedyDebugStore.DebugQuad toDebugQuad( //?} } - @Unique - private static void populateFaceVisibility( - BlockAndTintGetter world, - GreedySectionCache cache, - BlockState[] sectionStates, - BitSet[] visibleFaces, - long[][] faceMergeKeys, - int baseX, - int baseY, - int baseZ - ) { - GreedyMesher.clearFaceMaskArray(visibleFaces); - BlockPos.MutableBlockPos samplePos = new BlockPos.MutableBlockPos(); - for (int y = 0; y < GreedyMesher.SECTION_SIZE; y++) { - for (int z = 0; z < GreedyMesher.SECTION_SIZE; z++) { - for (int x = 0; x < GreedyMesher.SECTION_SIZE; x++) { - int idx = GreedyMesher.index(x, y, z); - BlockState state = sectionStates[idx]; - if (state == null) { - continue; - } - - int worldX = baseX + x; - int worldY = baseY + y; - int worldZ = baseZ + z; - for (Direction face : GREEDY_MESHING$FACES) { - int nx = x + face.getStepX(); - int ny = y + face.getStepY(); - int nz = z + face.getStepZ(); - if (nx >= 0 && nx < GreedyMesher.SECTION_SIZE - && ny >= 0 && ny < GreedyMesher.SECTION_SIZE - && nz >= 0 && nz < GreedyMesher.SECTION_SIZE - && sectionStates[GreedyMesher.index(nx, ny, nz)] != null) { - continue; - } - - samplePos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - BlockState neighbor = cache.state(samplePos.getX(), samplePos.getY(), samplePos.getZ()); - //? if >=1.21.2 { - if (Block.shouldRenderFace(state, neighbor, face)) { - //?} else { - /*if (Block.shouldRenderFace(state, world, new BlockPos(worldX, worldY, worldZ), face, samplePos)) { - *///?} - visibleFaces[face.ordinal()].set(idx); - int mergeKey; - if (state.is(Blocks.WATER)) { - // Water only merges within the interior of a flat, uncovered still-water - // body (see GreedyEligibility.isGreedyWaterSource + isFlatWaterSurface) — - // vanilla renders a sloped, per-corner-averaged surface everywhere else, - // which this mod's flat GreedyQuad rectangles can't represent. The bottom - // face is always an exact flat square regardless of the top surface's - // slope, so it skips the check; every other face (including the sides, - // whose top edge follows the same slope as the top face) needs it. - // Non-flat faces get a unique key so they fall back to individual 1x1 - // quads — pixel-identical to un-merged vanilla rendering, never a - // regression. - boolean flat = face == Direction.DOWN - || isFlatWaterSurface(world, worldX, worldY, worldZ, samplePos); - mergeKey = flat ? 0 : (0x40000000 | idx); - } else { - // Aggressive ("absolute") greedy ignores the AO signature so same-block - // faces merge into the largest possible quads; lighting is still sampled - // per sub-quad. - mergeKey = GreedyConfig.aggressiveGreedy() - ? 0 - : computeAoKey(cache, worldX, worldY, worldZ, face); - } - faceMergeKeys[face.ordinal()][idx] = mergeKey; - } - } - } - } - } - } - - /** - * True iff the 3x3 horizontal neighbourhood centered on (worldX, worldY, worldZ) is entirely - * uncovered still-water source blocks — the union of the four lattice corners vanilla's own - * per-corner height averaging touches for this block's top face. Checking the superset rather - * than each corner's exact 2x2 footprint is conservative: a handful of tiles that would actually - * render flat get misclassified as non-flat (and simply don't merge), which is acceptable — - * this check only ever removes merge opportunities, never approves an incorrect one. - */ - @Unique - private static boolean isFlatWaterSurface( - BlockAndTintGetter world, int worldX, int worldY, int worldZ, BlockPos.MutableBlockPos scratch - ) { - for (int dx = -1; dx <= 1; dx++) { - for (int dz = -1; dz <= 1; dz++) { - scratch.set(worldX + dx, worldY, worldZ + dz); - BlockState neighborState = world.getBlockState(scratch); - if (!neighborState.is(Blocks.WATER)) { - return false; - } - FluidState neighborFluid = neighborState.getFluidState(); - if (!neighborFluid.isSource() || neighborFluid.getType() != Fluids.WATER) { - return false; - } - scratch.set(worldX + dx, worldY + 1, worldZ + dz); - if (world.getBlockState(scratch).getFluidState().getType() == Fluids.WATER) { - return false; - } - } - } - return true; - } - - @Unique - private static final int[][][] GREEDY_MESHING$AO_OFFSETS = new int[6][8][3]; - static { - Direction[] faces = Direction.values(); - for (Direction face : faces) { - int ax1, ay1, az1, ax2, ay2, az2; - switch (face) { - case DOWN, UP -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=0; az2=1; } - case NORTH, SOUTH -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=1; az2=0; } - default -> { ax1=0; ay1=0; az1=1; ax2=0; ay2=1; az2=0; } - } - int idx = 0; - for (int a = -1; a <= 1; a++) { - for (int b = -1; b <= 1; b++) { - if (a == 0 && b == 0) continue; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][0] = face.getStepX() + a * ax1 + b * ax2; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][1] = face.getStepY() + a * ay1 + b * ay2; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][2] = face.getStepZ() + a * az1 + b * az2; - idx++; - } - } - } - } - - @Unique - private static int computeAoKey(GreedySectionCache cache, - int worldX, int worldY, int worldZ, Direction face) { - int[][] offsets = GREEDY_MESHING$AO_OFFSETS[face.ordinal()]; - int key = 0; - for (int i = 0; i < 8; i++) { - // occludes() is the same predicate the old inline test used (isLightPermeable on 26.3, - // isViewBlocking + light dampening before), evaluated once per cell instead of per face. - if (cache.occludes(worldX + offsets[i][0], worldY + offsets[i][1], worldZ + offsets[i][2])) { - key |= (1 << i); - } - } - int packedLight = cache.light(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - key |= ((packedLight >>> 4) & 0xF) << 8; - key |= ((packedLight >>> 20) & 0xF) << 12; - return key; - } - private static final int GREEDY_MESHING$LIGHT_STEP = 4; @Unique diff --git a/src/client/java/hi/sierra/greedy_meshing/mixin/client/vulkan/VulkanBuildTaskMixin.java b/src/client/java/hi/sierra/greedy_meshing/mixin/client/vulkan/VulkanBuildTaskMixin.java index ee9fbfc..da9c1c7 100644 --- a/src/client/java/hi/sierra/greedy_meshing/mixin/client/vulkan/VulkanBuildTaskMixin.java +++ b/src/client/java/hi/sierra/greedy_meshing/mixin/client/vulkan/VulkanBuildTaskMixin.java @@ -19,7 +19,6 @@ /*import net.minecraft.client.renderer.block.dispatch.BlockStateModel; import net.minecraft.client.renderer.block.dispatch.BlockStateModelPart; import net.minecraft.client.resources.model.geometry.BakedQuad; -import net.minecraft.client.renderer.chunk.ChunkSectionLayer; import net.minecraft.client.renderer.block.BlockAndTintGetter; *///?} else if >=1.21.5 { /*import net.minecraft.client.renderer.block.model.BakedQuad; @@ -36,7 +35,6 @@ import net.minecraft.core.Direction; import net.minecraft.core.SectionPos; import net.minecraft.util.RandomSource; -import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.material.FluidState; @@ -50,14 +48,15 @@ import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler; import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandlerRegistry; //?} -import hi.sierra.greedy_meshing.GreedyConfig; import hi.sierra.greedy_meshing.GreedyEligibility; import hi.sierra.greedy_meshing.GreedyMesher; import hi.sierra.greedy_meshing.client.GreedyDebugStore; import hi.sierra.greedy_meshing.client.GreedyEmissiveSupport; +import hi.sierra.greedy_meshing.client.GreedyFaceVisibility; import hi.sierra.greedy_meshing.client.GreedyLighting; import hi.sierra.greedy_meshing.client.GreedyPerformanceStats; import hi.sierra.greedy_meshing.client.GreedyRuntimeState; +import hi.sierra.greedy_meshing.client.GreedySectionCache; import hi.sierra.greedy_meshing.client.GreedySpriteSupport; import hi.sierra.greedy_meshing.client.vulkan.GreedyVulkanWorkState; import org.spongepowered.asm.mixin.Mixin; @@ -113,8 +112,6 @@ public abstract class VulkanBuildTaskMixin { @Unique private static final ThreadLocal GREEDY_MESHING$STATE = ThreadLocal.withInitial(GreedyVulkanWorkState::new); @Unique - private static final Direction[] GREEDY_MESHING$FACES = Direction.values(); - @Unique private static final ThreadLocal GREEDY_MESHING$VISIBLE = ThreadLocal.withInitial(GreedyMesher::createFaceMaskArray); @Inject(method = "compile", at = @At("HEAD")) @@ -140,6 +137,7 @@ public abstract class VulkanBuildTaskMixin { float camX, float camY, float camZ, BuilderResources builderResources, CallbackInfoReturnable cir ) { + GreedySectionCache.forThread().end(); GREEDY_MESHING$STATE.remove(); } @@ -297,12 +295,16 @@ public abstract class VulkanBuildTaskMixin { int baseX = origin.getX(); int baseY = origin.getY(); int baseZ = origin.getZ(); + long greedyBuildStartNanos = System.nanoTime(); work.scratchLighting.applyDirectionalShade = !GreedyRuntimeState.isInSableSubLevel(baseX >> 4, baseZ >> 4) && !GreedyRuntimeState.isFlatLighting(); BitSet[] visibleFaces = GREEDY_MESHING$VISIBLE.get(); long[][] mergeKeys = work.faceMergeKeys(); - populateFaceVisibility(world, work.sectionStates(), visibleFaces, mergeKeys, baseX, baseY, baseZ); + GreedySectionCache sectionCache = GreedySectionCache.forThread(); + sectionCache.begin(world, baseX, baseY, baseZ); + work.scratchLighting.cache = sectionCache; + GreedyFaceVisibility.populate(world, sectionCache, work.sectionStates(), visibleFaces, mergeKeys, baseX, baseY, baseZ, null, 0); List merged = GreedyMesher.meshWithKeys( work.sectionStates(), visibleFaces, mergeKeys ); @@ -352,6 +354,7 @@ public abstract class VulkanBuildTaskMixin { } } GreedyPerformanceStats.onGreedySectionBuilt(work.eligibleCount(), merged.size(), emittedQuads, vanillaEquivalent); + GreedyPerformanceStats.recordBuildNanos(System.nanoTime() - greedyBuildStartNanos); GreedyPerformanceStats.setSectionGeometry(work.sectionKey(), emittedQuads, vanillaEquivalent); if (captureDebug) { GreedyDebugStore.setSectionQuads(work.sectionKey(), debugQuads); @@ -457,160 +460,6 @@ public abstract class VulkanBuildTaskMixin { // Face visibility + AO merge keys. Mirrors the Sodium path. // ------------------------------------------------------------------ - @Unique - private static void populateFaceVisibility( - BlockAndTintGetter world, - BlockState[] sectionStates, - BitSet[] visibleFaces, - long[][] faceMergeKeys, - int baseX, - int baseY, - int baseZ - ) { - GreedyMesher.clearFaceMaskArray(visibleFaces); - BlockPos.MutableBlockPos samplePos = new BlockPos.MutableBlockPos(); - for (int y = 0; y < GreedyMesher.SECTION_SIZE; y++) { - for (int z = 0; z < GreedyMesher.SECTION_SIZE; z++) { - for (int x = 0; x < GreedyMesher.SECTION_SIZE; x++) { - int idx = GreedyMesher.index(x, y, z); - BlockState state = sectionStates[idx]; - if (state == null) { - continue; - } - int worldX = baseX + x; - int worldY = baseY + y; - int worldZ = baseZ + z; - for (Direction face : GREEDY_MESHING$FACES) { - int nx = x + face.getStepX(); - int ny = y + face.getStepY(); - int nz = z + face.getStepZ(); - if (nx >= 0 && nx < GreedyMesher.SECTION_SIZE - && ny >= 0 && ny < GreedyMesher.SECTION_SIZE - && nz >= 0 && nz < GreedyMesher.SECTION_SIZE - && sectionStates[GreedyMesher.index(nx, ny, nz)] != null) { - continue; - } - samplePos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - BlockState neighbor = world.getBlockState(samplePos); - //? if >=1.21.2 { - if (Block.shouldRenderFace(state, neighbor, face)) { - //?} else { - /*if (Block.shouldRenderFace(state, world, new BlockPos(worldX, worldY, worldZ), face, samplePos)) { - *///?} - visibleFaces[face.ordinal()].set(idx); - int mergeKey; - if (state.is(Blocks.WATER)) { - // Water only merges within the interior of a flat, uncovered still-water - // body (see GreedyEligibility.isGreedyWaterSource + isFlatWaterSurface) — - // vanilla renders a sloped, per-corner-averaged surface everywhere else, - // which this mod's flat GreedyQuad rectangles can't represent. The bottom - // face is always an exact flat square regardless of the top surface's - // slope, so it skips the check; every other face (including the sides, - // whose top edge follows the same slope as the top face) needs it. - // Non-flat faces get a unique key so they fall back to individual 1x1 - // quads — pixel-identical to un-merged vanilla rendering, never a - // regression. - boolean flat = face == Direction.DOWN - || isFlatWaterSurface(world, worldX, worldY, worldZ, samplePos); - mergeKey = flat ? 0 : (0x40000000 | idx); - } else { - // Aggressive ("absolute") greedy ignores the AO signature so same-block - // faces merge into the largest possible quads; lighting is still sampled - // per sub-quad. - mergeKey = GreedyConfig.aggressiveGreedy() - ? 0 - : computeAoKey(world, samplePos, worldX, worldY, worldZ, face); - } - faceMergeKeys[face.ordinal()][idx] = mergeKey; - } - } - } - } - } - } - - /** - * True iff the 3x3 horizontal neighbourhood centered on (worldX, worldY, worldZ) is entirely - * uncovered still-water source blocks — the union of the four lattice corners vanilla's own - * per-corner height averaging touches for this block's top face. Checking the superset rather - * than each corner's exact 2x2 footprint is conservative: a handful of tiles that would actually - * render flat get misclassified as non-flat (and simply don't merge), which is acceptable — - * this check only ever removes merge opportunities, never approves an incorrect one. - */ - @Unique - private static boolean isFlatWaterSurface( - BlockAndTintGetter world, int worldX, int worldY, int worldZ, BlockPos.MutableBlockPos scratch - ) { - for (int dx = -1; dx <= 1; dx++) { - for (int dz = -1; dz <= 1; dz++) { - scratch.set(worldX + dx, worldY, worldZ + dz); - BlockState neighborState = world.getBlockState(scratch); - if (!neighborState.is(Blocks.WATER)) { - return false; - } - FluidState neighborFluid = neighborState.getFluidState(); - if (!neighborFluid.isSource() || neighborFluid.getType() != Fluids.WATER) { - return false; - } - scratch.set(worldX + dx, worldY + 1, worldZ + dz); - if (world.getBlockState(scratch).getFluidState().getType() == Fluids.WATER) { - return false; - } - } - } - return true; - } - - @Unique - private static final int[][][] GREEDY_MESHING$AO_OFFSETS = new int[6][8][3]; - static { - for (Direction face : Direction.values()) { - int ax1, ay1, az1, ax2, ay2, az2; - switch (face) { - case DOWN, UP -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=0; az2=1; } - case NORTH, SOUTH -> { ax1=1; ay1=0; az1=0; ax2=0; ay2=1; az2=0; } - default -> { ax1=0; ay1=0; az1=1; ax2=0; ay2=1; az2=0; } - } - int idx = 0; - for (int a = -1; a <= 1; a++) { - for (int b = -1; b <= 1; b++) { - if (a == 0 && b == 0) continue; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][0] = face.getStepX() + a * ax1 + b * ax2; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][1] = face.getStepY() + a * ay1 + b * ay2; - GREEDY_MESHING$AO_OFFSETS[face.ordinal()][idx][2] = face.getStepZ() + a * az1 + b * az2; - idx++; - } - } - } - } - - @Unique - private static int computeAoKey(BlockAndTintGetter world, BlockPos.MutableBlockPos pos, - int worldX, int worldY, int worldZ, Direction face) { - int[][] offsets = GREEDY_MESHING$AO_OFFSETS[face.ordinal()]; - int key = 0; - for (int i = 0; i < 8; i++) { - pos.set(worldX + offsets[i][0], worldY + offsets[i][1], worldZ + offsets[i][2]); - BlockState neighbor = world.getBlockState(pos); - if (neighbor.isViewBlocking(world, pos) - //? if UNOBFUSCATED { - /*&& neighbor.getLightDampening() != 0 - *///?} else if >=1.21.2 { - && neighbor.getLightBlock() != 0 - //?} else { - /*&& neighbor.getLightBlock(world, pos) != 0 - *///?} - ) { - key |= (1 << i); - } - } - pos.set(worldX + face.getStepX(), worldY + face.getStepY(), worldZ + face.getStepZ()); - int packedLight = GreedyLighting.mergeLightKey(world, pos); - key |= ((packedLight >>> 4) & 0xF) << 8; - key |= ((packedLight >>> 20) & 0xF) << 12; - return key; - } - // ------------------------------------------------------------------ // Merged emit: one quad per greedy run (UV = sprite centre, face id in colour alpha). The shader // (VulkanShaderMixin) re-tiles the UV per block. Large runs are split into LIGHT_STEP-sized From 2a6c5d184e3120593f80da8e83a7fd1184b9590c Mon Sep 17 00:00:00 2001 From: SierraNevada <111426360+programmer1o1@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:32:02 +0800 Subject: [PATCH 2/3] Add test datapack for chunk rendering Generated datapack that builds a gallery of scenes on a flat world (walls, AO pillars, water, glass, lighting, orientation blocks, biome tint, roof, noise, pyramids, corridor, checkerboard) for visual and performance checks. See testing/README.md. --- testing/README.md | 61 ++ testing/generate_test_pack.py | 235 ++++++ .../greedy_test/function/build.mcfunction | 5 + .../function/build_cells.mcfunction | 18 + .../function/goto/biomes.mcfunction | 1 + .../function/goto/checker.mcfunction | 1 + .../function/goto/corridor.mcfunction | 1 + .../function/goto/glass.mcfunction | 1 + .../function/goto/lighting.mcfunction | 1 + .../function/goto/noise.mcfunction | 1 + .../function/goto/orientation.mcfunction | 1 + .../function/goto/pillars.mcfunction | 1 + .../function/goto/pyramid.mcfunction | 1 + .../greedy_test/function/goto/roof.mcfunction | 1 + .../function/goto/slab_block.mcfunction | 1 + .../function/goto/walls.mcfunction | 1 + .../function/goto/water.mcfunction | 1 + .../greedy_test/function/prepare.mcfunction | 2 + .../greedy_test/function/reset.mcfunction | 44 + .../function/scene/biomes.mcfunction | 7 + .../function/scene/checker.mcfunction | 784 ++++++++++++++++++ .../function/scene/corridor.mcfunction | 4 + .../function/scene/glass.mcfunction | 13 + .../function/scene/lighting.mcfunction | 8 + .../function/scene/noise.mcfunction | 784 ++++++++++++++++++ .../function/scene/orientation.mcfunction | 40 + .../function/scene/pillars.mcfunction | 197 +++++ .../function/scene/pyramid.mcfunction | 8 + .../function/scene/roof.mcfunction | 1 + .../function/scene/slab_block.mcfunction | 2 + .../function/scene/walls.mcfunction | 184 ++++ .../function/scene/water.mcfunction | 21 + testing/greedy_test_pack/pack.mcmeta | 15 + 33 files changed, 2446 insertions(+) create mode 100644 testing/README.md create mode 100644 testing/generate_test_pack.py create mode 100644 testing/greedy_test_pack/data/greedy_test/function/build.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/build_cells.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/biomes.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/checker.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/corridor.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/glass.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/lighting.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/noise.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/orientation.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/pillars.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/pyramid.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/roof.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/slab_block.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/walls.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/goto/water.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/prepare.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/reset.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/biomes.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/checker.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/corridor.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/glass.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/lighting.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/noise.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/orientation.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/pillars.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/pyramid.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/roof.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/slab_block.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/walls.mcfunction create mode 100644 testing/greedy_test_pack/data/greedy_test/function/scene/water.mcfunction create mode 100644 testing/greedy_test_pack/pack.mcmeta diff --git a/testing/README.md b/testing/README.md new file mode 100644 index 0000000..157b2af --- /dev/null +++ b/testing/README.md @@ -0,0 +1,61 @@ +# Greedy Meshing test scenes + +A datapack that builds a gallery of test scenes on a flat world, each aimed at a code path in the mod +(merging, AO/light merge keys, water, translucent layers, orientation blocks, biome tint, section borders). + +Not yet run in-game. If a version rejects `pack.mcmeta`, see "If it doesn't load" below. + +## Setup + +1. Create a **Superflat** world (Allow Commands: ON, Creative). Quit it once so the folder exists. +2. Copy the pack into the world's `datapacks` folder: + + ```bash + cp -R testing/greedy_test_pack "/saves//datapacks/" + ``` + +3. Open the world, stand on the ground where you want the gallery's corner (it extends +X and +Z, 224 x 96 blocks). +4. Run these in order: + + ``` + /function greedy_test:prepare (force-loads the area; wait ~10 s) + /function greedy_test:build (builds everything around a marker at your position) + ``` + +5. Jump between scenes with `/function greedy_test:goto/`. Run `/function greedy_test:reset` to clear everything + (including the force-load) and rebuild elsewhere. Biome changes from `fillbiome` stay in the world. + +## Scenes + +| Name | Cell | What it exercises | +|---|---|---| +| `walls` | 0,0 | huge flat vertical merges, a checker wall and striped wall that must not merge | +| `pillars` | 1,0 | many different AO merge keys on one floor | +| `water` | 2,0 | flat pool (merges), flowing sheet (must stay vanilla), waterlogged blocks | +| `glass` | 3,0 | glass, tinted glass, stained glass, sea lanterns, leaves, ice | +| `lighting` | 4,0 | closed room with a glowstone in one corner: light gradient across a merged floor | +| `orientation` | 5,0 | stairs, slabs, logs, glazed terracotta, pistons, barrels: must render exactly like vanilla | +| `biomes` | 6,0 | grass, leaves and water tint across biome borders | +| `roof` | row 1 | one 192 x 32 stone plane across many sections (shadow on the ground beneath) | +| `noise` | 6,1 | random heights and blocks: worst case, almost nothing merges | +| `pyramid` | 0,2 | stepped terraces | +| `corridor` | 1,2 | long dark corridor with sparse torches | +| `checker` | 2,2 | black/white concrete checkerboard | +| `slab_block` | 3,2 | thick solid slab with a mossy top | + +## Comparing builds + +Fly the same route in the same world with the old and new jar, with F3+L chunk profiling on. +After `build`, rejoin the world or move far away and back so every section recompiles. +Compare chunk build times, and check the scenes above look identical to the old build and to vanilla +(toggle the mod off in its config to see the vanilla reference). + +## If it doesn't load + +- `/datapack list` shows whether `file/greedy_test_pack` is available, enabled or flagged incompatible. +- Force it with `/datapack enable "file/greedy_test_pack"`, then `/reload`. +- The pack declares formats 48 (1.21.1) through 121 (26.3). If a version complains, edit `pack.mcmeta` + (1.21.9+ uses `min_format`/`max_format`; 1.21.1-1.21.8 use `pack_format`), or rerun + `python3 testing/generate_test_pack.py` after changing the numbers in it. +- Functions only use `fill`, `setblock`, `fillbiome`, `forceload`, `summon`, `kill`, `tp`, `time`, `weather`. + There are no gamerules, which were renamed in recent versions. diff --git a/testing/generate_test_pack.py b/testing/generate_test_pack.py new file mode 100644 index 0000000..72d03f6 --- /dev/null +++ b/testing/generate_test_pack.py @@ -0,0 +1,235 @@ +#!/usr/bin/env python3 +"""Generates the Greedy Meshing test datapack (testing/greedy_test_pack). + +Run: python3 testing/generate_test_pack.py +Scenes are built relative to a marker entity placed where /function greedy_test:build is run, +on a flat (superflat) world, in a 7x3 grid of 32x32 cells (224 x 96 blocks). +""" +import json +import os +import random +import shutil + +HERE = os.path.dirname(os.path.abspath(__file__)) +PACK = os.path.join(HERE, "greedy_test_pack") +FUNC = os.path.join(PACK, "data", "greedy_test", "function") +CELL = 32 +COLS, ROWS = 7, 3 + +shutil.rmtree(PACK, ignore_errors=True) +os.makedirs(os.path.join(FUNC, "scene")) +os.makedirs(os.path.join(FUNC, "goto")) +os.makedirs(os.path.join(FUNC, "reset")) + + +class Fn: + def __init__(self): + self.lines = [] + + def fill(self, x1, y1, z1, x2, y2, z2, block, mode=""): + n = (abs(x2 - x1) + 1) * (abs(y2 - y1) + 1) * (abs(z2 - z1) + 1) + assert n <= 32768, f"fill too large: {n}" + self.lines.append(f"fill ~{x1} ~{y1} ~{z1} ~{x2} ~{y2} ~{z2} {block}" + (f" {mode}" if mode else "")) + + def set(self, x, y, z, block): + self.lines.append(f"setblock ~{x} ~{y} ~{z} {block}") + + def raw(self, line): + self.lines.append(line) + + def write(self, path): + with open(os.path.join(FUNC, path), "w") as f: + f.write("\n".join(self.lines) + "\n") + + +rng = random.Random(42) + +# ── 0,0 walls: big flat vertical merges, checker and striped (merge-breaking) ──────────── +f = Fn() +f.fill(2, 0, 2, 29, 13, 2, "minecraft:stone_bricks") # solid wall +for x in range(2, 14): # checker half (breaks merging) + for y in range(0, 14): + f.set(x, y, 12, "minecraft:andesite" if (x + y) % 2 else "minecraft:stone") +f.fill(14, 0, 12, 29, 13, 12, "minecraft:polished_andesite") # plain polished half +for y in range(0, 14): # horizontal stripes + f.fill(2, y, 22, 29, y, 22, ["minecraft:bricks", "minecraft:sandstone", "minecraft:deepslate_bricks"][y % 3]) +f.write("scene/walls.mcfunction") + +# ── 1,0 ambient-occlusion pillars: many distinct AO merge keys ───────────────────────── +f = Fn() +for x in range(2, 30, 2): + for z in range(2, 30, 2): + h = rng.randint(1, 6) + f.fill(x, 0, z, x, h - 1, z, "minecraft:stone" if rng.random() < 0.7 else "minecraft:smooth_stone") +f.fill(0, 0, 0, 31, 0, 31, "minecraft:smooth_stone", "keep") +f.write("scene/pillars.mcfunction") + +# ── 2,0 water: flat pool (merges), ledge flow (must not), waterlogged blocks ─────────── +f = Fn() +f.fill(2, 0, 2, 25, 3, 25, "minecraft:stone_bricks") +f.fill(3, 1, 3, 24, 2, 24, "minecraft:water") # water to y=2, y=3 left open +f.fill(26, 0, 2, 26, 5, 8, "minecraft:stone_bricks") # ledge feeding a flowing sheet +f.set(26, 6, 2, "minecraft:water") +f.fill(27, 0, 2, 31, 0, 8, "minecraft:stone") +for i in range(8): + f.set(4 + i * 2, 4, 28, "minecraft:oak_slab[type=bottom,waterlogged=true]") + f.set(4 + i * 2, 4, 30, "minecraft:oak_stairs[facing=east,waterlogged=true]") +f.write("scene/water.mcfunction") + +# ── 3,0 glass, tinted, stained, leaves, ice: translucent / cutout layers ──────────────── +f = Fn() +colors = ["white", "red", "orange", "yellow", "lime", "cyan", "blue", "purple"] +f.fill(2, 0, 2, 29, 7, 2, "minecraft:glass") +f.fill(2, 0, 6, 29, 7, 6, "minecraft:tinted_glass") +for i, c in enumerate(colors): + f.fill(2 + i * 3, 0, 10, 4 + i * 3, 7, 10, f"minecraft:{c}_stained_glass") +f.fill(2, 0, 14, 29, 7, 14, "minecraft:sea_lantern") +f.fill(2, 0, 18, 29, 3, 24, "minecraft:oak_leaves[persistent=true]") +f.fill(2, 0, 27, 29, 3, 29, "minecraft:ice") +f.write("scene/glass.mcfunction") + +# ── 4,0 lighting: closed room with a single light source (gradient across merged floor) ─ +f = Fn() +f.fill(0, 0, 0, 31, 7, 31, "minecraft:stone_bricks") +f.fill(1, 1, 1, 30, 6, 30, "minecraft:air") +f.set(1, 1, 1, "minecraft:glowstone") +f.set(30, 1, 30, "minecraft:redstone_lamp[lit=true]") +for x in range(8, 30, 8): + f.set(x, 1, 15, "minecraft:lantern[hanging=false]") +f.fill(1, 6, 1, 30, 6, 30, "minecraft:stone_bricks") +f.write("scene/lighting.mcfunction") + +# ── 5,0 orientation zoo: blocks the mod must leave on the normal renderer ────────────── +f = Fn() +row = 2 +for half in ("bottom", "top"): + for i, d in enumerate(("north", "south", "east", "west")): + f.set(2 + i * 2, 0, row, f"minecraft:oak_stairs[facing={d},half={half}]") + row += 2 +for i, t in enumerate(("bottom", "top", "double")): + f.set(2 + i * 2, 0, row, f"minecraft:oak_slab[type={t}]") +row += 2 +for i, a in enumerate(("x", "y", "z")): + f.set(2 + i * 2, 0, row, f"minecraft:oak_log[axis={a}]") + f.set(2 + i * 2 + 8, 0, row, f"minecraft:stripped_birch_log[axis={a}]") +row += 2 +for i, d in enumerate(("north", "south", "east", "west")): + f.set(2 + i * 2, 0, row, f"minecraft:white_glazed_terracotta[facing={d}]") + f.set(2 + i * 2 + 8, 0, row, f"minecraft:carved_pumpkin[facing={d}]") + f.set(2 + i * 2 + 16, 0, row, f"minecraft:furnace[facing={d}]") +row += 2 +for i, d in enumerate(("up", "down", "north", "east")): + f.set(2 + i * 2, 0, row, f"minecraft:piston[facing={d}]") + f.set(2 + i * 2 + 8, 0, row, f"minecraft:barrel[facing={d}]") +row += 2 +f.fill(2, 0, row, 12, 0, row + 2, "minecraft:grass_block") +f.fill(14, 0, row, 20, 0, row + 2, "minecraft:mycelium") +f.fill(22, 0, row, 29, 0, row + 2, "minecraft:snow_block") +f.write("scene/orientation.mcfunction") + +# ── 6,0 biome tint: grass/foliage/water colour changes across merged floors ──────────── +f = Fn() +biomes = ["swamp", "desert", "jungle", "snowy_taiga"] +for i, b in enumerate(biomes): + f.raw(f"fillbiome ~{i * 8} ~-8 ~0 ~{i * 8 + 7} ~16 ~31 minecraft:{b}") +f.fill(0, 0, 0, 31, 0, 31, "minecraft:grass_block") +f.fill(0, 1, 0, 31, 2, 4, "minecraft:oak_leaves[persistent=true]") +f.fill(0, 1, 27, 31, 1, 31, "minecraft:water") +f.write("scene/biomes.mcfunction") + +# ── row 1: mega roof (one huge flat plane across many sections) + random noise ────────── +f = Fn() +f.fill(0, 12, 0, 31, 12, 31, "minecraft:stone") +f.write("scene/roof.mcfunction") + +f = Fn() +blocks = ["stone", "dirt", "cobblestone", "oak_planks"] +for x in range(2, 30): + for z in range(2, 30): + h = rng.randint(1, 3) + f.fill(x, 0, z, x, h - 1, z, f"minecraft:{rng.choice(blocks)}") +f.write("scene/noise.mcfunction") + +# ── row 2: stepped pyramids, long dark corridor, checkerboard floor ───────────────────── +f = Fn() +for i in range(8): + f.fill(i * 2, i, i * 2, 31 - i * 2, i, 31 - i * 2, "minecraft:stone" if i % 2 else "minecraft:grass_block") +f.write("scene/pyramid.mcfunction") + +f = Fn() +f.fill(0, 0, 0, 31, 8, 8, "minecraft:stone") +f.fill(1, 1, 1, 30, 4, 7, "minecraft:air") +for x in range(6, 30, 12): + f.set(x, 1, 4, "minecraft:torch") +f.write("scene/corridor.mcfunction") + +f = Fn() +for x in range(2, 30): + for z in range(2, 30): + if (x + z) % 2: + f.set(x, 0, z, "minecraft:black_concrete") + else: + f.set(x, 0, z, "minecraft:white_concrete") +f.write("scene/checker.mcfunction") + +f = Fn() +f.fill(0, 0, 0, 31, 3, 31, "minecraft:cobblestone") +f.fill(0, 4, 0, 31, 4, 31, "minecraft:mossy_cobblestone") +f.write("scene/slab_block.mcfunction") + +CELLS = { + "walls": (0, 0), "pillars": (1, 0), "water": (2, 0), "glass": (3, 0), "lighting": (4, 0), + "orientation": (5, 0), "biomes": (6, 0), + "roof": (0, 1), "noise": (6, 1), + "pyramid": (0, 2), "corridor": (1, 2), "checker": (2, 2), "slab_block": (3, 2), +} +# roof spans cells 0..5 of row 1 +ROOF_CELLS = [(i, 1) for i in range(0, 6)] + +b = Fn() +b.raw("kill @e[type=marker,tag=greedy_origin]") +b.raw("summon marker ~ ~ ~ {Tags:[\"greedy_origin\"]}") +b.raw("time set noon") +b.raw("weather clear") +b.raw("execute at @e[type=marker,tag=greedy_origin,limit=1] run function greedy_test:build_cells") +b.write("build.mcfunction") + +c = Fn() +for name, (i, j) in CELLS.items(): + if name == "roof": + for (ri, rj) in ROOF_CELLS: + c.raw(f"execute positioned ~{ri * CELL} ~ ~{rj * CELL} run function greedy_test:scene/roof") + else: + c.raw(f"execute positioned ~{i * CELL} ~ ~{j * CELL} run function greedy_test:scene/{name}") +c.write("build_cells.mcfunction") + +p = Fn() +p.raw("execute at @s run forceload add ~-16 ~-16 ~240 ~112") +p.raw('tellraw @s {"text":"Greedy test: wait ~10 seconds for chunks to load, then run /function greedy_test:build","color":"yellow"}') +p.write("prepare.mcfunction") + +for name, (i, j) in CELLS.items(): + g = Fn() + g.raw(f"execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~{i * CELL + 1} ~1 ~{j * CELL - 3}") + g.write(f"goto/{name}.mcfunction") + +r = Fn() +for j in range(ROWS): + for i in range(COLS): + for y0, y1 in ((-0, 23), (24, 47)): + r.raw(f"execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~{i * CELL} ~{y0} ~{j * CELL} ~{i * CELL + 31} ~{y1} ~{j * CELL + 31} minecraft:air") +r.raw("kill @e[type=marker,tag=greedy_origin]") +r.raw("forceload remove all") +r.write("reset.mcfunction") + +meta = {"pack": { + "description": "Greedy Meshing test scenes", + "pack_format": 48, + "supported_formats": {"min_inclusive": 48, "max_inclusive": 81}, + "min_format": 48, + "max_format": [121, 0], +}} +with open(os.path.join(PACK, "pack.mcmeta"), "w") as fh: + json.dump(meta, fh, indent=2) + +print("wrote", PACK) diff --git a/testing/greedy_test_pack/data/greedy_test/function/build.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/build.mcfunction new file mode 100644 index 0000000..627759e --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/build.mcfunction @@ -0,0 +1,5 @@ +kill @e[type=marker,tag=greedy_origin] +summon marker ~ ~ ~ {Tags:["greedy_origin"]} +time set noon +weather clear +execute at @e[type=marker,tag=greedy_origin,limit=1] run function greedy_test:build_cells diff --git a/testing/greedy_test_pack/data/greedy_test/function/build_cells.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/build_cells.mcfunction new file mode 100644 index 0000000..f3ab552 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/build_cells.mcfunction @@ -0,0 +1,18 @@ +execute positioned ~0 ~ ~0 run function greedy_test:scene/walls +execute positioned ~32 ~ ~0 run function greedy_test:scene/pillars +execute positioned ~64 ~ ~0 run function greedy_test:scene/water +execute positioned ~96 ~ ~0 run function greedy_test:scene/glass +execute positioned ~128 ~ ~0 run function greedy_test:scene/lighting +execute positioned ~160 ~ ~0 run function greedy_test:scene/orientation +execute positioned ~192 ~ ~0 run function greedy_test:scene/biomes +execute positioned ~0 ~ ~32 run function greedy_test:scene/roof +execute positioned ~32 ~ ~32 run function greedy_test:scene/roof +execute positioned ~64 ~ ~32 run function greedy_test:scene/roof +execute positioned ~96 ~ ~32 run function greedy_test:scene/roof +execute positioned ~128 ~ ~32 run function greedy_test:scene/roof +execute positioned ~160 ~ ~32 run function greedy_test:scene/roof +execute positioned ~192 ~ ~32 run function greedy_test:scene/noise +execute positioned ~0 ~ ~64 run function greedy_test:scene/pyramid +execute positioned ~32 ~ ~64 run function greedy_test:scene/corridor +execute positioned ~64 ~ ~64 run function greedy_test:scene/checker +execute positioned ~96 ~ ~64 run function greedy_test:scene/slab_block diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/biomes.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/biomes.mcfunction new file mode 100644 index 0000000..9f4356e --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/biomes.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~193 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/checker.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/checker.mcfunction new file mode 100644 index 0000000..0739f53 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/checker.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~65 ~1 ~61 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/corridor.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/corridor.mcfunction new file mode 100644 index 0000000..9087c2a --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/corridor.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~33 ~1 ~61 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/glass.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/glass.mcfunction new file mode 100644 index 0000000..7d3a5ce --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/glass.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~97 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/lighting.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/lighting.mcfunction new file mode 100644 index 0000000..ebe7a01 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/lighting.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~129 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/noise.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/noise.mcfunction new file mode 100644 index 0000000..aafe874 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/noise.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~193 ~1 ~29 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/orientation.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/orientation.mcfunction new file mode 100644 index 0000000..8ccb272 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/orientation.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~161 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/pillars.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/pillars.mcfunction new file mode 100644 index 0000000..866c752 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/pillars.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~33 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/pyramid.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/pyramid.mcfunction new file mode 100644 index 0000000..77dab5d --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/pyramid.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~1 ~1 ~61 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/roof.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/roof.mcfunction new file mode 100644 index 0000000..d6f4d3f --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/roof.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~1 ~1 ~29 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/slab_block.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/slab_block.mcfunction new file mode 100644 index 0000000..f0d76d7 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/slab_block.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~97 ~1 ~61 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/walls.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/walls.mcfunction new file mode 100644 index 0000000..7c9bef1 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/walls.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~1 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/goto/water.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/goto/water.mcfunction new file mode 100644 index 0000000..6f3248e --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/goto/water.mcfunction @@ -0,0 +1 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run tp @s ~65 ~1 ~-3 diff --git a/testing/greedy_test_pack/data/greedy_test/function/prepare.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/prepare.mcfunction new file mode 100644 index 0000000..ac87391 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/prepare.mcfunction @@ -0,0 +1,2 @@ +execute at @s run forceload add ~-16 ~-16 ~240 ~112 +tellraw @s {"text":"Greedy test: wait ~10 seconds for chunks to load, then run /function greedy_test:build","color":"yellow"} diff --git a/testing/greedy_test_pack/data/greedy_test/function/reset.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/reset.mcfunction new file mode 100644 index 0000000..59a9132 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/reset.mcfunction @@ -0,0 +1,44 @@ +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~0 ~0 ~31 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~24 ~0 ~31 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~0 ~0 ~63 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~24 ~0 ~63 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~0 ~0 ~95 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~24 ~0 ~95 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~0 ~0 ~127 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~24 ~0 ~127 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~0 ~0 ~159 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~24 ~0 ~159 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~0 ~0 ~191 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~24 ~0 ~191 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~0 ~0 ~223 ~23 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~24 ~0 ~223 ~47 ~31 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~0 ~32 ~31 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~24 ~32 ~31 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~0 ~32 ~63 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~24 ~32 ~63 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~0 ~32 ~95 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~24 ~32 ~95 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~0 ~32 ~127 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~24 ~32 ~127 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~0 ~32 ~159 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~24 ~32 ~159 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~0 ~32 ~191 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~24 ~32 ~191 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~0 ~32 ~223 ~23 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~24 ~32 ~223 ~47 ~63 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~0 ~64 ~31 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~0 ~24 ~64 ~31 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~0 ~64 ~63 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~32 ~24 ~64 ~63 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~0 ~64 ~95 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~64 ~24 ~64 ~95 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~0 ~64 ~127 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~96 ~24 ~64 ~127 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~0 ~64 ~159 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~128 ~24 ~64 ~159 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~0 ~64 ~191 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~160 ~24 ~64 ~191 ~47 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~0 ~64 ~223 ~23 ~95 minecraft:air +execute at @e[type=marker,tag=greedy_origin,limit=1] run fill ~192 ~24 ~64 ~223 ~47 ~95 minecraft:air +kill @e[type=marker,tag=greedy_origin] +forceload remove all diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/biomes.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/biomes.mcfunction new file mode 100644 index 0000000..30b2134 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/biomes.mcfunction @@ -0,0 +1,7 @@ +fillbiome ~0 ~-8 ~0 ~7 ~16 ~31 minecraft:swamp +fillbiome ~8 ~-8 ~0 ~15 ~16 ~31 minecraft:desert +fillbiome ~16 ~-8 ~0 ~23 ~16 ~31 minecraft:jungle +fillbiome ~24 ~-8 ~0 ~31 ~16 ~31 minecraft:snowy_taiga +fill ~0 ~0 ~0 ~31 ~0 ~31 minecraft:grass_block +fill ~0 ~1 ~0 ~31 ~2 ~4 minecraft:oak_leaves[persistent=true] +fill ~0 ~1 ~27 ~31 ~1 ~31 minecraft:water diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/checker.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/checker.mcfunction new file mode 100644 index 0000000..c709acb --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/checker.mcfunction @@ -0,0 +1,784 @@ +setblock ~2 ~0 ~2 minecraft:white_concrete +setblock ~2 ~0 ~3 minecraft:black_concrete +setblock ~2 ~0 ~4 minecraft:white_concrete +setblock ~2 ~0 ~5 minecraft:black_concrete +setblock ~2 ~0 ~6 minecraft:white_concrete +setblock ~2 ~0 ~7 minecraft:black_concrete +setblock ~2 ~0 ~8 minecraft:white_concrete +setblock ~2 ~0 ~9 minecraft:black_concrete +setblock ~2 ~0 ~10 minecraft:white_concrete +setblock ~2 ~0 ~11 minecraft:black_concrete +setblock ~2 ~0 ~12 minecraft:white_concrete +setblock ~2 ~0 ~13 minecraft:black_concrete +setblock ~2 ~0 ~14 minecraft:white_concrete +setblock ~2 ~0 ~15 minecraft:black_concrete +setblock ~2 ~0 ~16 minecraft:white_concrete +setblock ~2 ~0 ~17 minecraft:black_concrete +setblock ~2 ~0 ~18 minecraft:white_concrete +setblock ~2 ~0 ~19 minecraft:black_concrete +setblock ~2 ~0 ~20 minecraft:white_concrete +setblock ~2 ~0 ~21 minecraft:black_concrete +setblock ~2 ~0 ~22 minecraft:white_concrete +setblock ~2 ~0 ~23 minecraft:black_concrete +setblock ~2 ~0 ~24 minecraft:white_concrete +setblock ~2 ~0 ~25 minecraft:black_concrete +setblock ~2 ~0 ~26 minecraft:white_concrete +setblock ~2 ~0 ~27 minecraft:black_concrete +setblock ~2 ~0 ~28 minecraft:white_concrete +setblock ~2 ~0 ~29 minecraft:black_concrete +setblock ~3 ~0 ~2 minecraft:black_concrete +setblock ~3 ~0 ~3 minecraft:white_concrete +setblock ~3 ~0 ~4 minecraft:black_concrete +setblock ~3 ~0 ~5 minecraft:white_concrete +setblock ~3 ~0 ~6 minecraft:black_concrete +setblock ~3 ~0 ~7 minecraft:white_concrete +setblock ~3 ~0 ~8 minecraft:black_concrete +setblock ~3 ~0 ~9 minecraft:white_concrete +setblock ~3 ~0 ~10 minecraft:black_concrete +setblock ~3 ~0 ~11 minecraft:white_concrete +setblock ~3 ~0 ~12 minecraft:black_concrete +setblock ~3 ~0 ~13 minecraft:white_concrete +setblock ~3 ~0 ~14 minecraft:black_concrete +setblock ~3 ~0 ~15 minecraft:white_concrete +setblock ~3 ~0 ~16 minecraft:black_concrete +setblock ~3 ~0 ~17 minecraft:white_concrete +setblock ~3 ~0 ~18 minecraft:black_concrete +setblock ~3 ~0 ~19 minecraft:white_concrete +setblock ~3 ~0 ~20 minecraft:black_concrete +setblock ~3 ~0 ~21 minecraft:white_concrete +setblock ~3 ~0 ~22 minecraft:black_concrete +setblock ~3 ~0 ~23 minecraft:white_concrete +setblock ~3 ~0 ~24 minecraft:black_concrete +setblock ~3 ~0 ~25 minecraft:white_concrete +setblock ~3 ~0 ~26 minecraft:black_concrete +setblock ~3 ~0 ~27 minecraft:white_concrete +setblock ~3 ~0 ~28 minecraft:black_concrete +setblock ~3 ~0 ~29 minecraft:white_concrete +setblock ~4 ~0 ~2 minecraft:white_concrete +setblock ~4 ~0 ~3 minecraft:black_concrete +setblock ~4 ~0 ~4 minecraft:white_concrete +setblock ~4 ~0 ~5 minecraft:black_concrete +setblock ~4 ~0 ~6 minecraft:white_concrete +setblock ~4 ~0 ~7 minecraft:black_concrete +setblock ~4 ~0 ~8 minecraft:white_concrete +setblock ~4 ~0 ~9 minecraft:black_concrete +setblock ~4 ~0 ~10 minecraft:white_concrete +setblock ~4 ~0 ~11 minecraft:black_concrete +setblock ~4 ~0 ~12 minecraft:white_concrete +setblock ~4 ~0 ~13 minecraft:black_concrete +setblock ~4 ~0 ~14 minecraft:white_concrete +setblock ~4 ~0 ~15 minecraft:black_concrete +setblock ~4 ~0 ~16 minecraft:white_concrete +setblock ~4 ~0 ~17 minecraft:black_concrete +setblock ~4 ~0 ~18 minecraft:white_concrete +setblock ~4 ~0 ~19 minecraft:black_concrete +setblock ~4 ~0 ~20 minecraft:white_concrete +setblock ~4 ~0 ~21 minecraft:black_concrete +setblock ~4 ~0 ~22 minecraft:white_concrete +setblock ~4 ~0 ~23 minecraft:black_concrete +setblock ~4 ~0 ~24 minecraft:white_concrete +setblock ~4 ~0 ~25 minecraft:black_concrete +setblock ~4 ~0 ~26 minecraft:white_concrete +setblock ~4 ~0 ~27 minecraft:black_concrete +setblock ~4 ~0 ~28 minecraft:white_concrete +setblock ~4 ~0 ~29 minecraft:black_concrete +setblock ~5 ~0 ~2 minecraft:black_concrete +setblock ~5 ~0 ~3 minecraft:white_concrete +setblock ~5 ~0 ~4 minecraft:black_concrete +setblock ~5 ~0 ~5 minecraft:white_concrete +setblock ~5 ~0 ~6 minecraft:black_concrete +setblock ~5 ~0 ~7 minecraft:white_concrete +setblock ~5 ~0 ~8 minecraft:black_concrete +setblock ~5 ~0 ~9 minecraft:white_concrete +setblock ~5 ~0 ~10 minecraft:black_concrete +setblock ~5 ~0 ~11 minecraft:white_concrete +setblock ~5 ~0 ~12 minecraft:black_concrete +setblock ~5 ~0 ~13 minecraft:white_concrete +setblock ~5 ~0 ~14 minecraft:black_concrete +setblock ~5 ~0 ~15 minecraft:white_concrete +setblock ~5 ~0 ~16 minecraft:black_concrete +setblock ~5 ~0 ~17 minecraft:white_concrete +setblock ~5 ~0 ~18 minecraft:black_concrete +setblock ~5 ~0 ~19 minecraft:white_concrete +setblock ~5 ~0 ~20 minecraft:black_concrete +setblock ~5 ~0 ~21 minecraft:white_concrete +setblock ~5 ~0 ~22 minecraft:black_concrete +setblock ~5 ~0 ~23 minecraft:white_concrete +setblock ~5 ~0 ~24 minecraft:black_concrete +setblock ~5 ~0 ~25 minecraft:white_concrete +setblock ~5 ~0 ~26 minecraft:black_concrete +setblock ~5 ~0 ~27 minecraft:white_concrete +setblock ~5 ~0 ~28 minecraft:black_concrete +setblock ~5 ~0 ~29 minecraft:white_concrete +setblock ~6 ~0 ~2 minecraft:white_concrete +setblock ~6 ~0 ~3 minecraft:black_concrete +setblock ~6 ~0 ~4 minecraft:white_concrete +setblock ~6 ~0 ~5 minecraft:black_concrete +setblock ~6 ~0 ~6 minecraft:white_concrete +setblock ~6 ~0 ~7 minecraft:black_concrete +setblock ~6 ~0 ~8 minecraft:white_concrete +setblock ~6 ~0 ~9 minecraft:black_concrete +setblock ~6 ~0 ~10 minecraft:white_concrete +setblock ~6 ~0 ~11 minecraft:black_concrete +setblock ~6 ~0 ~12 minecraft:white_concrete +setblock ~6 ~0 ~13 minecraft:black_concrete +setblock ~6 ~0 ~14 minecraft:white_concrete +setblock ~6 ~0 ~15 minecraft:black_concrete +setblock ~6 ~0 ~16 minecraft:white_concrete +setblock ~6 ~0 ~17 minecraft:black_concrete +setblock ~6 ~0 ~18 minecraft:white_concrete +setblock ~6 ~0 ~19 minecraft:black_concrete +setblock ~6 ~0 ~20 minecraft:white_concrete +setblock ~6 ~0 ~21 minecraft:black_concrete +setblock ~6 ~0 ~22 minecraft:white_concrete +setblock ~6 ~0 ~23 minecraft:black_concrete +setblock ~6 ~0 ~24 minecraft:white_concrete +setblock ~6 ~0 ~25 minecraft:black_concrete +setblock ~6 ~0 ~26 minecraft:white_concrete +setblock ~6 ~0 ~27 minecraft:black_concrete +setblock ~6 ~0 ~28 minecraft:white_concrete +setblock ~6 ~0 ~29 minecraft:black_concrete +setblock ~7 ~0 ~2 minecraft:black_concrete +setblock ~7 ~0 ~3 minecraft:white_concrete +setblock ~7 ~0 ~4 minecraft:black_concrete +setblock ~7 ~0 ~5 minecraft:white_concrete +setblock ~7 ~0 ~6 minecraft:black_concrete +setblock ~7 ~0 ~7 minecraft:white_concrete +setblock ~7 ~0 ~8 minecraft:black_concrete +setblock ~7 ~0 ~9 minecraft:white_concrete +setblock ~7 ~0 ~10 minecraft:black_concrete +setblock ~7 ~0 ~11 minecraft:white_concrete +setblock ~7 ~0 ~12 minecraft:black_concrete +setblock ~7 ~0 ~13 minecraft:white_concrete +setblock ~7 ~0 ~14 minecraft:black_concrete +setblock ~7 ~0 ~15 minecraft:white_concrete +setblock ~7 ~0 ~16 minecraft:black_concrete +setblock ~7 ~0 ~17 minecraft:white_concrete +setblock ~7 ~0 ~18 minecraft:black_concrete +setblock ~7 ~0 ~19 minecraft:white_concrete +setblock ~7 ~0 ~20 minecraft:black_concrete +setblock ~7 ~0 ~21 minecraft:white_concrete +setblock ~7 ~0 ~22 minecraft:black_concrete +setblock ~7 ~0 ~23 minecraft:white_concrete +setblock ~7 ~0 ~24 minecraft:black_concrete +setblock ~7 ~0 ~25 minecraft:white_concrete +setblock ~7 ~0 ~26 minecraft:black_concrete +setblock ~7 ~0 ~27 minecraft:white_concrete +setblock ~7 ~0 ~28 minecraft:black_concrete +setblock ~7 ~0 ~29 minecraft:white_concrete +setblock ~8 ~0 ~2 minecraft:white_concrete +setblock ~8 ~0 ~3 minecraft:black_concrete +setblock ~8 ~0 ~4 minecraft:white_concrete +setblock ~8 ~0 ~5 minecraft:black_concrete +setblock ~8 ~0 ~6 minecraft:white_concrete +setblock ~8 ~0 ~7 minecraft:black_concrete +setblock ~8 ~0 ~8 minecraft:white_concrete +setblock ~8 ~0 ~9 minecraft:black_concrete +setblock ~8 ~0 ~10 minecraft:white_concrete +setblock ~8 ~0 ~11 minecraft:black_concrete +setblock ~8 ~0 ~12 minecraft:white_concrete +setblock ~8 ~0 ~13 minecraft:black_concrete +setblock ~8 ~0 ~14 minecraft:white_concrete +setblock ~8 ~0 ~15 minecraft:black_concrete +setblock ~8 ~0 ~16 minecraft:white_concrete +setblock ~8 ~0 ~17 minecraft:black_concrete +setblock ~8 ~0 ~18 minecraft:white_concrete +setblock ~8 ~0 ~19 minecraft:black_concrete +setblock ~8 ~0 ~20 minecraft:white_concrete +setblock ~8 ~0 ~21 minecraft:black_concrete +setblock ~8 ~0 ~22 minecraft:white_concrete +setblock ~8 ~0 ~23 minecraft:black_concrete +setblock ~8 ~0 ~24 minecraft:white_concrete +setblock ~8 ~0 ~25 minecraft:black_concrete +setblock ~8 ~0 ~26 minecraft:white_concrete +setblock ~8 ~0 ~27 minecraft:black_concrete +setblock ~8 ~0 ~28 minecraft:white_concrete +setblock ~8 ~0 ~29 minecraft:black_concrete +setblock ~9 ~0 ~2 minecraft:black_concrete +setblock ~9 ~0 ~3 minecraft:white_concrete +setblock ~9 ~0 ~4 minecraft:black_concrete +setblock ~9 ~0 ~5 minecraft:white_concrete +setblock ~9 ~0 ~6 minecraft:black_concrete +setblock ~9 ~0 ~7 minecraft:white_concrete +setblock ~9 ~0 ~8 minecraft:black_concrete +setblock ~9 ~0 ~9 minecraft:white_concrete +setblock ~9 ~0 ~10 minecraft:black_concrete +setblock ~9 ~0 ~11 minecraft:white_concrete +setblock ~9 ~0 ~12 minecraft:black_concrete +setblock ~9 ~0 ~13 minecraft:white_concrete +setblock ~9 ~0 ~14 minecraft:black_concrete +setblock ~9 ~0 ~15 minecraft:white_concrete +setblock ~9 ~0 ~16 minecraft:black_concrete +setblock ~9 ~0 ~17 minecraft:white_concrete +setblock ~9 ~0 ~18 minecraft:black_concrete +setblock ~9 ~0 ~19 minecraft:white_concrete +setblock ~9 ~0 ~20 minecraft:black_concrete +setblock ~9 ~0 ~21 minecraft:white_concrete +setblock ~9 ~0 ~22 minecraft:black_concrete +setblock ~9 ~0 ~23 minecraft:white_concrete +setblock ~9 ~0 ~24 minecraft:black_concrete +setblock ~9 ~0 ~25 minecraft:white_concrete +setblock ~9 ~0 ~26 minecraft:black_concrete +setblock ~9 ~0 ~27 minecraft:white_concrete +setblock ~9 ~0 ~28 minecraft:black_concrete +setblock ~9 ~0 ~29 minecraft:white_concrete +setblock ~10 ~0 ~2 minecraft:white_concrete +setblock ~10 ~0 ~3 minecraft:black_concrete +setblock ~10 ~0 ~4 minecraft:white_concrete +setblock ~10 ~0 ~5 minecraft:black_concrete +setblock ~10 ~0 ~6 minecraft:white_concrete +setblock ~10 ~0 ~7 minecraft:black_concrete +setblock ~10 ~0 ~8 minecraft:white_concrete +setblock ~10 ~0 ~9 minecraft:black_concrete +setblock ~10 ~0 ~10 minecraft:white_concrete +setblock ~10 ~0 ~11 minecraft:black_concrete +setblock ~10 ~0 ~12 minecraft:white_concrete +setblock ~10 ~0 ~13 minecraft:black_concrete +setblock ~10 ~0 ~14 minecraft:white_concrete +setblock ~10 ~0 ~15 minecraft:black_concrete +setblock ~10 ~0 ~16 minecraft:white_concrete +setblock ~10 ~0 ~17 minecraft:black_concrete +setblock ~10 ~0 ~18 minecraft:white_concrete +setblock ~10 ~0 ~19 minecraft:black_concrete +setblock ~10 ~0 ~20 minecraft:white_concrete +setblock ~10 ~0 ~21 minecraft:black_concrete +setblock ~10 ~0 ~22 minecraft:white_concrete +setblock ~10 ~0 ~23 minecraft:black_concrete +setblock ~10 ~0 ~24 minecraft:white_concrete +setblock ~10 ~0 ~25 minecraft:black_concrete +setblock ~10 ~0 ~26 minecraft:white_concrete +setblock ~10 ~0 ~27 minecraft:black_concrete +setblock ~10 ~0 ~28 minecraft:white_concrete +setblock ~10 ~0 ~29 minecraft:black_concrete +setblock ~11 ~0 ~2 minecraft:black_concrete +setblock ~11 ~0 ~3 minecraft:white_concrete +setblock ~11 ~0 ~4 minecraft:black_concrete +setblock ~11 ~0 ~5 minecraft:white_concrete +setblock ~11 ~0 ~6 minecraft:black_concrete +setblock ~11 ~0 ~7 minecraft:white_concrete +setblock ~11 ~0 ~8 minecraft:black_concrete +setblock ~11 ~0 ~9 minecraft:white_concrete +setblock ~11 ~0 ~10 minecraft:black_concrete +setblock ~11 ~0 ~11 minecraft:white_concrete +setblock ~11 ~0 ~12 minecraft:black_concrete +setblock ~11 ~0 ~13 minecraft:white_concrete +setblock ~11 ~0 ~14 minecraft:black_concrete +setblock ~11 ~0 ~15 minecraft:white_concrete +setblock ~11 ~0 ~16 minecraft:black_concrete +setblock ~11 ~0 ~17 minecraft:white_concrete +setblock ~11 ~0 ~18 minecraft:black_concrete +setblock ~11 ~0 ~19 minecraft:white_concrete +setblock ~11 ~0 ~20 minecraft:black_concrete +setblock ~11 ~0 ~21 minecraft:white_concrete +setblock ~11 ~0 ~22 minecraft:black_concrete +setblock ~11 ~0 ~23 minecraft:white_concrete +setblock ~11 ~0 ~24 minecraft:black_concrete +setblock ~11 ~0 ~25 minecraft:white_concrete +setblock ~11 ~0 ~26 minecraft:black_concrete +setblock ~11 ~0 ~27 minecraft:white_concrete +setblock ~11 ~0 ~28 minecraft:black_concrete +setblock ~11 ~0 ~29 minecraft:white_concrete +setblock ~12 ~0 ~2 minecraft:white_concrete +setblock ~12 ~0 ~3 minecraft:black_concrete +setblock ~12 ~0 ~4 minecraft:white_concrete +setblock ~12 ~0 ~5 minecraft:black_concrete +setblock ~12 ~0 ~6 minecraft:white_concrete +setblock ~12 ~0 ~7 minecraft:black_concrete +setblock ~12 ~0 ~8 minecraft:white_concrete +setblock ~12 ~0 ~9 minecraft:black_concrete +setblock ~12 ~0 ~10 minecraft:white_concrete +setblock ~12 ~0 ~11 minecraft:black_concrete +setblock ~12 ~0 ~12 minecraft:white_concrete +setblock ~12 ~0 ~13 minecraft:black_concrete +setblock ~12 ~0 ~14 minecraft:white_concrete +setblock ~12 ~0 ~15 minecraft:black_concrete +setblock ~12 ~0 ~16 minecraft:white_concrete +setblock ~12 ~0 ~17 minecraft:black_concrete +setblock ~12 ~0 ~18 minecraft:white_concrete +setblock ~12 ~0 ~19 minecraft:black_concrete +setblock ~12 ~0 ~20 minecraft:white_concrete +setblock ~12 ~0 ~21 minecraft:black_concrete +setblock ~12 ~0 ~22 minecraft:white_concrete +setblock ~12 ~0 ~23 minecraft:black_concrete +setblock ~12 ~0 ~24 minecraft:white_concrete +setblock ~12 ~0 ~25 minecraft:black_concrete +setblock ~12 ~0 ~26 minecraft:white_concrete +setblock ~12 ~0 ~27 minecraft:black_concrete +setblock ~12 ~0 ~28 minecraft:white_concrete +setblock ~12 ~0 ~29 minecraft:black_concrete +setblock ~13 ~0 ~2 minecraft:black_concrete +setblock ~13 ~0 ~3 minecraft:white_concrete +setblock ~13 ~0 ~4 minecraft:black_concrete +setblock ~13 ~0 ~5 minecraft:white_concrete +setblock ~13 ~0 ~6 minecraft:black_concrete +setblock ~13 ~0 ~7 minecraft:white_concrete +setblock ~13 ~0 ~8 minecraft:black_concrete +setblock ~13 ~0 ~9 minecraft:white_concrete +setblock ~13 ~0 ~10 minecraft:black_concrete +setblock ~13 ~0 ~11 minecraft:white_concrete +setblock ~13 ~0 ~12 minecraft:black_concrete +setblock ~13 ~0 ~13 minecraft:white_concrete +setblock ~13 ~0 ~14 minecraft:black_concrete +setblock ~13 ~0 ~15 minecraft:white_concrete +setblock ~13 ~0 ~16 minecraft:black_concrete +setblock ~13 ~0 ~17 minecraft:white_concrete +setblock ~13 ~0 ~18 minecraft:black_concrete +setblock ~13 ~0 ~19 minecraft:white_concrete +setblock ~13 ~0 ~20 minecraft:black_concrete +setblock ~13 ~0 ~21 minecraft:white_concrete +setblock ~13 ~0 ~22 minecraft:black_concrete +setblock ~13 ~0 ~23 minecraft:white_concrete +setblock ~13 ~0 ~24 minecraft:black_concrete +setblock ~13 ~0 ~25 minecraft:white_concrete +setblock ~13 ~0 ~26 minecraft:black_concrete +setblock ~13 ~0 ~27 minecraft:white_concrete +setblock ~13 ~0 ~28 minecraft:black_concrete +setblock ~13 ~0 ~29 minecraft:white_concrete +setblock ~14 ~0 ~2 minecraft:white_concrete +setblock ~14 ~0 ~3 minecraft:black_concrete +setblock ~14 ~0 ~4 minecraft:white_concrete +setblock ~14 ~0 ~5 minecraft:black_concrete +setblock ~14 ~0 ~6 minecraft:white_concrete +setblock ~14 ~0 ~7 minecraft:black_concrete +setblock ~14 ~0 ~8 minecraft:white_concrete +setblock ~14 ~0 ~9 minecraft:black_concrete +setblock ~14 ~0 ~10 minecraft:white_concrete +setblock ~14 ~0 ~11 minecraft:black_concrete +setblock ~14 ~0 ~12 minecraft:white_concrete +setblock ~14 ~0 ~13 minecraft:black_concrete +setblock ~14 ~0 ~14 minecraft:white_concrete +setblock ~14 ~0 ~15 minecraft:black_concrete +setblock ~14 ~0 ~16 minecraft:white_concrete +setblock ~14 ~0 ~17 minecraft:black_concrete +setblock ~14 ~0 ~18 minecraft:white_concrete +setblock ~14 ~0 ~19 minecraft:black_concrete +setblock ~14 ~0 ~20 minecraft:white_concrete +setblock ~14 ~0 ~21 minecraft:black_concrete +setblock ~14 ~0 ~22 minecraft:white_concrete +setblock ~14 ~0 ~23 minecraft:black_concrete +setblock ~14 ~0 ~24 minecraft:white_concrete +setblock ~14 ~0 ~25 minecraft:black_concrete +setblock ~14 ~0 ~26 minecraft:white_concrete +setblock ~14 ~0 ~27 minecraft:black_concrete +setblock ~14 ~0 ~28 minecraft:white_concrete +setblock ~14 ~0 ~29 minecraft:black_concrete +setblock ~15 ~0 ~2 minecraft:black_concrete +setblock ~15 ~0 ~3 minecraft:white_concrete +setblock ~15 ~0 ~4 minecraft:black_concrete +setblock ~15 ~0 ~5 minecraft:white_concrete +setblock ~15 ~0 ~6 minecraft:black_concrete +setblock ~15 ~0 ~7 minecraft:white_concrete +setblock ~15 ~0 ~8 minecraft:black_concrete +setblock ~15 ~0 ~9 minecraft:white_concrete +setblock ~15 ~0 ~10 minecraft:black_concrete +setblock ~15 ~0 ~11 minecraft:white_concrete +setblock ~15 ~0 ~12 minecraft:black_concrete +setblock ~15 ~0 ~13 minecraft:white_concrete +setblock ~15 ~0 ~14 minecraft:black_concrete +setblock ~15 ~0 ~15 minecraft:white_concrete +setblock ~15 ~0 ~16 minecraft:black_concrete +setblock ~15 ~0 ~17 minecraft:white_concrete +setblock ~15 ~0 ~18 minecraft:black_concrete +setblock ~15 ~0 ~19 minecraft:white_concrete +setblock ~15 ~0 ~20 minecraft:black_concrete +setblock ~15 ~0 ~21 minecraft:white_concrete +setblock ~15 ~0 ~22 minecraft:black_concrete +setblock ~15 ~0 ~23 minecraft:white_concrete +setblock ~15 ~0 ~24 minecraft:black_concrete +setblock ~15 ~0 ~25 minecraft:white_concrete +setblock ~15 ~0 ~26 minecraft:black_concrete +setblock ~15 ~0 ~27 minecraft:white_concrete +setblock ~15 ~0 ~28 minecraft:black_concrete +setblock ~15 ~0 ~29 minecraft:white_concrete +setblock ~16 ~0 ~2 minecraft:white_concrete +setblock ~16 ~0 ~3 minecraft:black_concrete +setblock ~16 ~0 ~4 minecraft:white_concrete +setblock ~16 ~0 ~5 minecraft:black_concrete +setblock ~16 ~0 ~6 minecraft:white_concrete +setblock ~16 ~0 ~7 minecraft:black_concrete +setblock ~16 ~0 ~8 minecraft:white_concrete +setblock ~16 ~0 ~9 minecraft:black_concrete +setblock ~16 ~0 ~10 minecraft:white_concrete +setblock ~16 ~0 ~11 minecraft:black_concrete +setblock ~16 ~0 ~12 minecraft:white_concrete +setblock ~16 ~0 ~13 minecraft:black_concrete +setblock ~16 ~0 ~14 minecraft:white_concrete +setblock ~16 ~0 ~15 minecraft:black_concrete +setblock ~16 ~0 ~16 minecraft:white_concrete +setblock ~16 ~0 ~17 minecraft:black_concrete +setblock ~16 ~0 ~18 minecraft:white_concrete +setblock ~16 ~0 ~19 minecraft:black_concrete +setblock ~16 ~0 ~20 minecraft:white_concrete +setblock ~16 ~0 ~21 minecraft:black_concrete +setblock ~16 ~0 ~22 minecraft:white_concrete +setblock ~16 ~0 ~23 minecraft:black_concrete +setblock ~16 ~0 ~24 minecraft:white_concrete +setblock ~16 ~0 ~25 minecraft:black_concrete +setblock ~16 ~0 ~26 minecraft:white_concrete +setblock ~16 ~0 ~27 minecraft:black_concrete +setblock ~16 ~0 ~28 minecraft:white_concrete +setblock ~16 ~0 ~29 minecraft:black_concrete +setblock ~17 ~0 ~2 minecraft:black_concrete +setblock ~17 ~0 ~3 minecraft:white_concrete +setblock ~17 ~0 ~4 minecraft:black_concrete +setblock ~17 ~0 ~5 minecraft:white_concrete +setblock ~17 ~0 ~6 minecraft:black_concrete +setblock ~17 ~0 ~7 minecraft:white_concrete +setblock ~17 ~0 ~8 minecraft:black_concrete +setblock ~17 ~0 ~9 minecraft:white_concrete +setblock ~17 ~0 ~10 minecraft:black_concrete +setblock ~17 ~0 ~11 minecraft:white_concrete +setblock ~17 ~0 ~12 minecraft:black_concrete +setblock ~17 ~0 ~13 minecraft:white_concrete +setblock ~17 ~0 ~14 minecraft:black_concrete +setblock ~17 ~0 ~15 minecraft:white_concrete +setblock ~17 ~0 ~16 minecraft:black_concrete +setblock ~17 ~0 ~17 minecraft:white_concrete +setblock ~17 ~0 ~18 minecraft:black_concrete +setblock ~17 ~0 ~19 minecraft:white_concrete +setblock ~17 ~0 ~20 minecraft:black_concrete +setblock ~17 ~0 ~21 minecraft:white_concrete +setblock ~17 ~0 ~22 minecraft:black_concrete +setblock ~17 ~0 ~23 minecraft:white_concrete +setblock ~17 ~0 ~24 minecraft:black_concrete +setblock ~17 ~0 ~25 minecraft:white_concrete +setblock ~17 ~0 ~26 minecraft:black_concrete +setblock ~17 ~0 ~27 minecraft:white_concrete +setblock ~17 ~0 ~28 minecraft:black_concrete +setblock ~17 ~0 ~29 minecraft:white_concrete +setblock ~18 ~0 ~2 minecraft:white_concrete +setblock ~18 ~0 ~3 minecraft:black_concrete +setblock ~18 ~0 ~4 minecraft:white_concrete +setblock ~18 ~0 ~5 minecraft:black_concrete +setblock ~18 ~0 ~6 minecraft:white_concrete +setblock ~18 ~0 ~7 minecraft:black_concrete +setblock ~18 ~0 ~8 minecraft:white_concrete +setblock ~18 ~0 ~9 minecraft:black_concrete +setblock ~18 ~0 ~10 minecraft:white_concrete +setblock ~18 ~0 ~11 minecraft:black_concrete +setblock ~18 ~0 ~12 minecraft:white_concrete +setblock ~18 ~0 ~13 minecraft:black_concrete +setblock ~18 ~0 ~14 minecraft:white_concrete +setblock ~18 ~0 ~15 minecraft:black_concrete +setblock ~18 ~0 ~16 minecraft:white_concrete +setblock ~18 ~0 ~17 minecraft:black_concrete +setblock ~18 ~0 ~18 minecraft:white_concrete +setblock ~18 ~0 ~19 minecraft:black_concrete +setblock ~18 ~0 ~20 minecraft:white_concrete +setblock ~18 ~0 ~21 minecraft:black_concrete +setblock ~18 ~0 ~22 minecraft:white_concrete +setblock ~18 ~0 ~23 minecraft:black_concrete +setblock ~18 ~0 ~24 minecraft:white_concrete +setblock ~18 ~0 ~25 minecraft:black_concrete +setblock ~18 ~0 ~26 minecraft:white_concrete +setblock ~18 ~0 ~27 minecraft:black_concrete +setblock ~18 ~0 ~28 minecraft:white_concrete +setblock ~18 ~0 ~29 minecraft:black_concrete +setblock ~19 ~0 ~2 minecraft:black_concrete +setblock ~19 ~0 ~3 minecraft:white_concrete +setblock ~19 ~0 ~4 minecraft:black_concrete +setblock ~19 ~0 ~5 minecraft:white_concrete +setblock ~19 ~0 ~6 minecraft:black_concrete +setblock ~19 ~0 ~7 minecraft:white_concrete +setblock ~19 ~0 ~8 minecraft:black_concrete +setblock ~19 ~0 ~9 minecraft:white_concrete +setblock ~19 ~0 ~10 minecraft:black_concrete +setblock ~19 ~0 ~11 minecraft:white_concrete +setblock ~19 ~0 ~12 minecraft:black_concrete +setblock ~19 ~0 ~13 minecraft:white_concrete +setblock ~19 ~0 ~14 minecraft:black_concrete +setblock ~19 ~0 ~15 minecraft:white_concrete +setblock ~19 ~0 ~16 minecraft:black_concrete +setblock ~19 ~0 ~17 minecraft:white_concrete +setblock ~19 ~0 ~18 minecraft:black_concrete +setblock ~19 ~0 ~19 minecraft:white_concrete +setblock ~19 ~0 ~20 minecraft:black_concrete +setblock ~19 ~0 ~21 minecraft:white_concrete +setblock ~19 ~0 ~22 minecraft:black_concrete +setblock ~19 ~0 ~23 minecraft:white_concrete +setblock ~19 ~0 ~24 minecraft:black_concrete +setblock ~19 ~0 ~25 minecraft:white_concrete +setblock ~19 ~0 ~26 minecraft:black_concrete +setblock ~19 ~0 ~27 minecraft:white_concrete +setblock ~19 ~0 ~28 minecraft:black_concrete +setblock ~19 ~0 ~29 minecraft:white_concrete +setblock ~20 ~0 ~2 minecraft:white_concrete +setblock ~20 ~0 ~3 minecraft:black_concrete +setblock ~20 ~0 ~4 minecraft:white_concrete +setblock ~20 ~0 ~5 minecraft:black_concrete +setblock ~20 ~0 ~6 minecraft:white_concrete +setblock ~20 ~0 ~7 minecraft:black_concrete +setblock ~20 ~0 ~8 minecraft:white_concrete +setblock ~20 ~0 ~9 minecraft:black_concrete +setblock ~20 ~0 ~10 minecraft:white_concrete +setblock ~20 ~0 ~11 minecraft:black_concrete +setblock ~20 ~0 ~12 minecraft:white_concrete +setblock ~20 ~0 ~13 minecraft:black_concrete +setblock ~20 ~0 ~14 minecraft:white_concrete +setblock ~20 ~0 ~15 minecraft:black_concrete +setblock ~20 ~0 ~16 minecraft:white_concrete +setblock ~20 ~0 ~17 minecraft:black_concrete +setblock ~20 ~0 ~18 minecraft:white_concrete +setblock ~20 ~0 ~19 minecraft:black_concrete +setblock ~20 ~0 ~20 minecraft:white_concrete +setblock ~20 ~0 ~21 minecraft:black_concrete +setblock ~20 ~0 ~22 minecraft:white_concrete +setblock ~20 ~0 ~23 minecraft:black_concrete +setblock ~20 ~0 ~24 minecraft:white_concrete +setblock ~20 ~0 ~25 minecraft:black_concrete +setblock ~20 ~0 ~26 minecraft:white_concrete +setblock ~20 ~0 ~27 minecraft:black_concrete +setblock ~20 ~0 ~28 minecraft:white_concrete +setblock ~20 ~0 ~29 minecraft:black_concrete +setblock ~21 ~0 ~2 minecraft:black_concrete +setblock ~21 ~0 ~3 minecraft:white_concrete +setblock ~21 ~0 ~4 minecraft:black_concrete +setblock ~21 ~0 ~5 minecraft:white_concrete +setblock ~21 ~0 ~6 minecraft:black_concrete +setblock ~21 ~0 ~7 minecraft:white_concrete +setblock ~21 ~0 ~8 minecraft:black_concrete +setblock ~21 ~0 ~9 minecraft:white_concrete +setblock ~21 ~0 ~10 minecraft:black_concrete +setblock ~21 ~0 ~11 minecraft:white_concrete +setblock ~21 ~0 ~12 minecraft:black_concrete +setblock ~21 ~0 ~13 minecraft:white_concrete +setblock ~21 ~0 ~14 minecraft:black_concrete +setblock ~21 ~0 ~15 minecraft:white_concrete +setblock ~21 ~0 ~16 minecraft:black_concrete +setblock ~21 ~0 ~17 minecraft:white_concrete +setblock ~21 ~0 ~18 minecraft:black_concrete +setblock ~21 ~0 ~19 minecraft:white_concrete +setblock ~21 ~0 ~20 minecraft:black_concrete +setblock ~21 ~0 ~21 minecraft:white_concrete +setblock ~21 ~0 ~22 minecraft:black_concrete +setblock ~21 ~0 ~23 minecraft:white_concrete +setblock ~21 ~0 ~24 minecraft:black_concrete +setblock ~21 ~0 ~25 minecraft:white_concrete +setblock ~21 ~0 ~26 minecraft:black_concrete +setblock ~21 ~0 ~27 minecraft:white_concrete +setblock ~21 ~0 ~28 minecraft:black_concrete +setblock ~21 ~0 ~29 minecraft:white_concrete +setblock ~22 ~0 ~2 minecraft:white_concrete +setblock ~22 ~0 ~3 minecraft:black_concrete +setblock ~22 ~0 ~4 minecraft:white_concrete +setblock ~22 ~0 ~5 minecraft:black_concrete +setblock ~22 ~0 ~6 minecraft:white_concrete +setblock ~22 ~0 ~7 minecraft:black_concrete +setblock ~22 ~0 ~8 minecraft:white_concrete +setblock ~22 ~0 ~9 minecraft:black_concrete +setblock ~22 ~0 ~10 minecraft:white_concrete +setblock ~22 ~0 ~11 minecraft:black_concrete +setblock ~22 ~0 ~12 minecraft:white_concrete +setblock ~22 ~0 ~13 minecraft:black_concrete +setblock ~22 ~0 ~14 minecraft:white_concrete +setblock ~22 ~0 ~15 minecraft:black_concrete +setblock ~22 ~0 ~16 minecraft:white_concrete +setblock ~22 ~0 ~17 minecraft:black_concrete +setblock ~22 ~0 ~18 minecraft:white_concrete +setblock ~22 ~0 ~19 minecraft:black_concrete +setblock ~22 ~0 ~20 minecraft:white_concrete +setblock ~22 ~0 ~21 minecraft:black_concrete +setblock ~22 ~0 ~22 minecraft:white_concrete +setblock ~22 ~0 ~23 minecraft:black_concrete +setblock ~22 ~0 ~24 minecraft:white_concrete +setblock ~22 ~0 ~25 minecraft:black_concrete +setblock ~22 ~0 ~26 minecraft:white_concrete +setblock ~22 ~0 ~27 minecraft:black_concrete +setblock ~22 ~0 ~28 minecraft:white_concrete +setblock ~22 ~0 ~29 minecraft:black_concrete +setblock ~23 ~0 ~2 minecraft:black_concrete +setblock ~23 ~0 ~3 minecraft:white_concrete +setblock ~23 ~0 ~4 minecraft:black_concrete +setblock ~23 ~0 ~5 minecraft:white_concrete +setblock ~23 ~0 ~6 minecraft:black_concrete +setblock ~23 ~0 ~7 minecraft:white_concrete +setblock ~23 ~0 ~8 minecraft:black_concrete +setblock ~23 ~0 ~9 minecraft:white_concrete +setblock ~23 ~0 ~10 minecraft:black_concrete +setblock ~23 ~0 ~11 minecraft:white_concrete +setblock ~23 ~0 ~12 minecraft:black_concrete +setblock ~23 ~0 ~13 minecraft:white_concrete +setblock ~23 ~0 ~14 minecraft:black_concrete +setblock ~23 ~0 ~15 minecraft:white_concrete +setblock ~23 ~0 ~16 minecraft:black_concrete +setblock ~23 ~0 ~17 minecraft:white_concrete +setblock ~23 ~0 ~18 minecraft:black_concrete +setblock ~23 ~0 ~19 minecraft:white_concrete +setblock ~23 ~0 ~20 minecraft:black_concrete +setblock ~23 ~0 ~21 minecraft:white_concrete +setblock ~23 ~0 ~22 minecraft:black_concrete +setblock ~23 ~0 ~23 minecraft:white_concrete +setblock ~23 ~0 ~24 minecraft:black_concrete +setblock ~23 ~0 ~25 minecraft:white_concrete +setblock ~23 ~0 ~26 minecraft:black_concrete +setblock ~23 ~0 ~27 minecraft:white_concrete +setblock ~23 ~0 ~28 minecraft:black_concrete +setblock ~23 ~0 ~29 minecraft:white_concrete +setblock ~24 ~0 ~2 minecraft:white_concrete +setblock ~24 ~0 ~3 minecraft:black_concrete +setblock ~24 ~0 ~4 minecraft:white_concrete +setblock ~24 ~0 ~5 minecraft:black_concrete +setblock ~24 ~0 ~6 minecraft:white_concrete +setblock ~24 ~0 ~7 minecraft:black_concrete +setblock ~24 ~0 ~8 minecraft:white_concrete +setblock ~24 ~0 ~9 minecraft:black_concrete +setblock ~24 ~0 ~10 minecraft:white_concrete +setblock ~24 ~0 ~11 minecraft:black_concrete +setblock ~24 ~0 ~12 minecraft:white_concrete +setblock ~24 ~0 ~13 minecraft:black_concrete +setblock ~24 ~0 ~14 minecraft:white_concrete +setblock ~24 ~0 ~15 minecraft:black_concrete +setblock ~24 ~0 ~16 minecraft:white_concrete +setblock ~24 ~0 ~17 minecraft:black_concrete +setblock ~24 ~0 ~18 minecraft:white_concrete +setblock ~24 ~0 ~19 minecraft:black_concrete +setblock ~24 ~0 ~20 minecraft:white_concrete +setblock ~24 ~0 ~21 minecraft:black_concrete +setblock ~24 ~0 ~22 minecraft:white_concrete +setblock ~24 ~0 ~23 minecraft:black_concrete +setblock ~24 ~0 ~24 minecraft:white_concrete +setblock ~24 ~0 ~25 minecraft:black_concrete +setblock ~24 ~0 ~26 minecraft:white_concrete +setblock ~24 ~0 ~27 minecraft:black_concrete +setblock ~24 ~0 ~28 minecraft:white_concrete +setblock ~24 ~0 ~29 minecraft:black_concrete +setblock ~25 ~0 ~2 minecraft:black_concrete +setblock ~25 ~0 ~3 minecraft:white_concrete +setblock ~25 ~0 ~4 minecraft:black_concrete +setblock ~25 ~0 ~5 minecraft:white_concrete +setblock ~25 ~0 ~6 minecraft:black_concrete +setblock ~25 ~0 ~7 minecraft:white_concrete +setblock ~25 ~0 ~8 minecraft:black_concrete +setblock ~25 ~0 ~9 minecraft:white_concrete +setblock ~25 ~0 ~10 minecraft:black_concrete +setblock ~25 ~0 ~11 minecraft:white_concrete +setblock ~25 ~0 ~12 minecraft:black_concrete +setblock ~25 ~0 ~13 minecraft:white_concrete +setblock ~25 ~0 ~14 minecraft:black_concrete +setblock ~25 ~0 ~15 minecraft:white_concrete +setblock ~25 ~0 ~16 minecraft:black_concrete +setblock ~25 ~0 ~17 minecraft:white_concrete +setblock ~25 ~0 ~18 minecraft:black_concrete +setblock ~25 ~0 ~19 minecraft:white_concrete +setblock ~25 ~0 ~20 minecraft:black_concrete +setblock ~25 ~0 ~21 minecraft:white_concrete +setblock ~25 ~0 ~22 minecraft:black_concrete +setblock ~25 ~0 ~23 minecraft:white_concrete +setblock ~25 ~0 ~24 minecraft:black_concrete +setblock ~25 ~0 ~25 minecraft:white_concrete +setblock ~25 ~0 ~26 minecraft:black_concrete +setblock ~25 ~0 ~27 minecraft:white_concrete +setblock ~25 ~0 ~28 minecraft:black_concrete +setblock ~25 ~0 ~29 minecraft:white_concrete +setblock ~26 ~0 ~2 minecraft:white_concrete +setblock ~26 ~0 ~3 minecraft:black_concrete +setblock ~26 ~0 ~4 minecraft:white_concrete +setblock ~26 ~0 ~5 minecraft:black_concrete +setblock ~26 ~0 ~6 minecraft:white_concrete +setblock ~26 ~0 ~7 minecraft:black_concrete +setblock ~26 ~0 ~8 minecraft:white_concrete +setblock ~26 ~0 ~9 minecraft:black_concrete +setblock ~26 ~0 ~10 minecraft:white_concrete +setblock ~26 ~0 ~11 minecraft:black_concrete +setblock ~26 ~0 ~12 minecraft:white_concrete +setblock ~26 ~0 ~13 minecraft:black_concrete +setblock ~26 ~0 ~14 minecraft:white_concrete +setblock ~26 ~0 ~15 minecraft:black_concrete +setblock ~26 ~0 ~16 minecraft:white_concrete +setblock ~26 ~0 ~17 minecraft:black_concrete +setblock ~26 ~0 ~18 minecraft:white_concrete +setblock ~26 ~0 ~19 minecraft:black_concrete +setblock ~26 ~0 ~20 minecraft:white_concrete +setblock ~26 ~0 ~21 minecraft:black_concrete +setblock ~26 ~0 ~22 minecraft:white_concrete +setblock ~26 ~0 ~23 minecraft:black_concrete +setblock ~26 ~0 ~24 minecraft:white_concrete +setblock ~26 ~0 ~25 minecraft:black_concrete +setblock ~26 ~0 ~26 minecraft:white_concrete +setblock ~26 ~0 ~27 minecraft:black_concrete +setblock ~26 ~0 ~28 minecraft:white_concrete +setblock ~26 ~0 ~29 minecraft:black_concrete +setblock ~27 ~0 ~2 minecraft:black_concrete +setblock ~27 ~0 ~3 minecraft:white_concrete +setblock ~27 ~0 ~4 minecraft:black_concrete +setblock ~27 ~0 ~5 minecraft:white_concrete +setblock ~27 ~0 ~6 minecraft:black_concrete +setblock ~27 ~0 ~7 minecraft:white_concrete +setblock ~27 ~0 ~8 minecraft:black_concrete +setblock ~27 ~0 ~9 minecraft:white_concrete +setblock ~27 ~0 ~10 minecraft:black_concrete +setblock ~27 ~0 ~11 minecraft:white_concrete +setblock ~27 ~0 ~12 minecraft:black_concrete +setblock ~27 ~0 ~13 minecraft:white_concrete +setblock ~27 ~0 ~14 minecraft:black_concrete +setblock ~27 ~0 ~15 minecraft:white_concrete +setblock ~27 ~0 ~16 minecraft:black_concrete +setblock ~27 ~0 ~17 minecraft:white_concrete +setblock ~27 ~0 ~18 minecraft:black_concrete +setblock ~27 ~0 ~19 minecraft:white_concrete +setblock ~27 ~0 ~20 minecraft:black_concrete +setblock ~27 ~0 ~21 minecraft:white_concrete +setblock ~27 ~0 ~22 minecraft:black_concrete +setblock ~27 ~0 ~23 minecraft:white_concrete +setblock ~27 ~0 ~24 minecraft:black_concrete +setblock ~27 ~0 ~25 minecraft:white_concrete +setblock ~27 ~0 ~26 minecraft:black_concrete +setblock ~27 ~0 ~27 minecraft:white_concrete +setblock ~27 ~0 ~28 minecraft:black_concrete +setblock ~27 ~0 ~29 minecraft:white_concrete +setblock ~28 ~0 ~2 minecraft:white_concrete +setblock ~28 ~0 ~3 minecraft:black_concrete +setblock ~28 ~0 ~4 minecraft:white_concrete +setblock ~28 ~0 ~5 minecraft:black_concrete +setblock ~28 ~0 ~6 minecraft:white_concrete +setblock ~28 ~0 ~7 minecraft:black_concrete +setblock ~28 ~0 ~8 minecraft:white_concrete +setblock ~28 ~0 ~9 minecraft:black_concrete +setblock ~28 ~0 ~10 minecraft:white_concrete +setblock ~28 ~0 ~11 minecraft:black_concrete +setblock ~28 ~0 ~12 minecraft:white_concrete +setblock ~28 ~0 ~13 minecraft:black_concrete +setblock ~28 ~0 ~14 minecraft:white_concrete +setblock ~28 ~0 ~15 minecraft:black_concrete +setblock ~28 ~0 ~16 minecraft:white_concrete +setblock ~28 ~0 ~17 minecraft:black_concrete +setblock ~28 ~0 ~18 minecraft:white_concrete +setblock ~28 ~0 ~19 minecraft:black_concrete +setblock ~28 ~0 ~20 minecraft:white_concrete +setblock ~28 ~0 ~21 minecraft:black_concrete +setblock ~28 ~0 ~22 minecraft:white_concrete +setblock ~28 ~0 ~23 minecraft:black_concrete +setblock ~28 ~0 ~24 minecraft:white_concrete +setblock ~28 ~0 ~25 minecraft:black_concrete +setblock ~28 ~0 ~26 minecraft:white_concrete +setblock ~28 ~0 ~27 minecraft:black_concrete +setblock ~28 ~0 ~28 minecraft:white_concrete +setblock ~28 ~0 ~29 minecraft:black_concrete +setblock ~29 ~0 ~2 minecraft:black_concrete +setblock ~29 ~0 ~3 minecraft:white_concrete +setblock ~29 ~0 ~4 minecraft:black_concrete +setblock ~29 ~0 ~5 minecraft:white_concrete +setblock ~29 ~0 ~6 minecraft:black_concrete +setblock ~29 ~0 ~7 minecraft:white_concrete +setblock ~29 ~0 ~8 minecraft:black_concrete +setblock ~29 ~0 ~9 minecraft:white_concrete +setblock ~29 ~0 ~10 minecraft:black_concrete +setblock ~29 ~0 ~11 minecraft:white_concrete +setblock ~29 ~0 ~12 minecraft:black_concrete +setblock ~29 ~0 ~13 minecraft:white_concrete +setblock ~29 ~0 ~14 minecraft:black_concrete +setblock ~29 ~0 ~15 minecraft:white_concrete +setblock ~29 ~0 ~16 minecraft:black_concrete +setblock ~29 ~0 ~17 minecraft:white_concrete +setblock ~29 ~0 ~18 minecraft:black_concrete +setblock ~29 ~0 ~19 minecraft:white_concrete +setblock ~29 ~0 ~20 minecraft:black_concrete +setblock ~29 ~0 ~21 minecraft:white_concrete +setblock ~29 ~0 ~22 minecraft:black_concrete +setblock ~29 ~0 ~23 minecraft:white_concrete +setblock ~29 ~0 ~24 minecraft:black_concrete +setblock ~29 ~0 ~25 minecraft:white_concrete +setblock ~29 ~0 ~26 minecraft:black_concrete +setblock ~29 ~0 ~27 minecraft:white_concrete +setblock ~29 ~0 ~28 minecraft:black_concrete +setblock ~29 ~0 ~29 minecraft:white_concrete diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/corridor.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/corridor.mcfunction new file mode 100644 index 0000000..12af823 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/corridor.mcfunction @@ -0,0 +1,4 @@ +fill ~0 ~0 ~0 ~31 ~8 ~8 minecraft:stone +fill ~1 ~1 ~1 ~30 ~4 ~7 minecraft:air +setblock ~6 ~1 ~4 minecraft:torch +setblock ~18 ~1 ~4 minecraft:torch diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/glass.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/glass.mcfunction new file mode 100644 index 0000000..8ce50c5 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/glass.mcfunction @@ -0,0 +1,13 @@ +fill ~2 ~0 ~2 ~29 ~7 ~2 minecraft:glass +fill ~2 ~0 ~6 ~29 ~7 ~6 minecraft:tinted_glass +fill ~2 ~0 ~10 ~4 ~7 ~10 minecraft:white_stained_glass +fill ~5 ~0 ~10 ~7 ~7 ~10 minecraft:red_stained_glass +fill ~8 ~0 ~10 ~10 ~7 ~10 minecraft:orange_stained_glass +fill ~11 ~0 ~10 ~13 ~7 ~10 minecraft:yellow_stained_glass +fill ~14 ~0 ~10 ~16 ~7 ~10 minecraft:lime_stained_glass +fill ~17 ~0 ~10 ~19 ~7 ~10 minecraft:cyan_stained_glass +fill ~20 ~0 ~10 ~22 ~7 ~10 minecraft:blue_stained_glass +fill ~23 ~0 ~10 ~25 ~7 ~10 minecraft:purple_stained_glass +fill ~2 ~0 ~14 ~29 ~7 ~14 minecraft:sea_lantern +fill ~2 ~0 ~18 ~29 ~3 ~24 minecraft:oak_leaves[persistent=true] +fill ~2 ~0 ~27 ~29 ~3 ~29 minecraft:ice diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/lighting.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/lighting.mcfunction new file mode 100644 index 0000000..8cf071f --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/lighting.mcfunction @@ -0,0 +1,8 @@ +fill ~0 ~0 ~0 ~31 ~7 ~31 minecraft:stone_bricks +fill ~1 ~1 ~1 ~30 ~6 ~30 minecraft:air +setblock ~1 ~1 ~1 minecraft:glowstone +setblock ~30 ~1 ~30 minecraft:redstone_lamp[lit=true] +setblock ~8 ~1 ~15 minecraft:lantern[hanging=false] +setblock ~16 ~1 ~15 minecraft:lantern[hanging=false] +setblock ~24 ~1 ~15 minecraft:lantern[hanging=false] +fill ~1 ~6 ~1 ~30 ~6 ~30 minecraft:stone_bricks diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/noise.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/noise.mcfunction new file mode 100644 index 0000000..3f05124 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/noise.mcfunction @@ -0,0 +1,784 @@ +fill ~2 ~0 ~2 ~2 ~2 ~2 minecraft:stone +fill ~2 ~0 ~3 ~2 ~1 ~3 minecraft:stone +fill ~2 ~0 ~4 ~2 ~1 ~4 minecraft:dirt +fill ~2 ~0 ~5 ~2 ~0 ~5 minecraft:oak_planks +fill ~2 ~0 ~6 ~2 ~1 ~6 minecraft:cobblestone +fill ~2 ~0 ~7 ~2 ~0 ~7 minecraft:dirt +fill ~2 ~0 ~8 ~2 ~0 ~8 minecraft:dirt +fill ~2 ~0 ~9 ~2 ~1 ~9 minecraft:cobblestone +fill ~2 ~0 ~10 ~2 ~1 ~10 minecraft:stone +fill ~2 ~0 ~11 ~2 ~1 ~11 minecraft:cobblestone +fill ~2 ~0 ~12 ~2 ~2 ~12 minecraft:oak_planks +fill ~2 ~0 ~13 ~2 ~2 ~13 minecraft:cobblestone +fill ~2 ~0 ~14 ~2 ~0 ~14 minecraft:stone +fill ~2 ~0 ~15 ~2 ~1 ~15 minecraft:dirt +fill ~2 ~0 ~16 ~2 ~2 ~16 minecraft:cobblestone +fill ~2 ~0 ~17 ~2 ~0 ~17 minecraft:stone +fill ~2 ~0 ~18 ~2 ~2 ~18 minecraft:oak_planks +fill ~2 ~0 ~19 ~2 ~1 ~19 minecraft:cobblestone +fill ~2 ~0 ~20 ~2 ~1 ~20 minecraft:stone +fill ~2 ~0 ~21 ~2 ~1 ~21 minecraft:dirt +fill ~2 ~0 ~22 ~2 ~1 ~22 minecraft:stone +fill ~2 ~0 ~23 ~2 ~2 ~23 minecraft:oak_planks +fill ~2 ~0 ~24 ~2 ~0 ~24 minecraft:dirt +fill ~2 ~0 ~25 ~2 ~1 ~25 minecraft:oak_planks +fill ~2 ~0 ~26 ~2 ~0 ~26 minecraft:cobblestone +fill ~2 ~0 ~27 ~2 ~2 ~27 minecraft:cobblestone +fill ~2 ~0 ~28 ~2 ~2 ~28 minecraft:stone +fill ~2 ~0 ~29 ~2 ~2 ~29 minecraft:cobblestone +fill ~3 ~0 ~2 ~3 ~2 ~2 minecraft:cobblestone +fill ~3 ~0 ~3 ~3 ~2 ~3 minecraft:oak_planks +fill ~3 ~0 ~4 ~3 ~1 ~4 minecraft:oak_planks +fill ~3 ~0 ~5 ~3 ~2 ~5 minecraft:cobblestone +fill ~3 ~0 ~6 ~3 ~2 ~6 minecraft:dirt +fill ~3 ~0 ~7 ~3 ~0 ~7 minecraft:oak_planks +fill ~3 ~0 ~8 ~3 ~2 ~8 minecraft:oak_planks +fill ~3 ~0 ~9 ~3 ~2 ~9 minecraft:dirt +fill ~3 ~0 ~10 ~3 ~2 ~10 minecraft:cobblestone +fill ~3 ~0 ~11 ~3 ~1 ~11 minecraft:stone +fill ~3 ~0 ~12 ~3 ~1 ~12 minecraft:cobblestone +fill ~3 ~0 ~13 ~3 ~0 ~13 minecraft:oak_planks +fill ~3 ~0 ~14 ~3 ~2 ~14 minecraft:cobblestone +fill ~3 ~0 ~15 ~3 ~1 ~15 minecraft:oak_planks +fill ~3 ~0 ~16 ~3 ~1 ~16 minecraft:dirt +fill ~3 ~0 ~17 ~3 ~2 ~17 minecraft:oak_planks +fill ~3 ~0 ~18 ~3 ~2 ~18 minecraft:dirt +fill ~3 ~0 ~19 ~3 ~2 ~19 minecraft:stone +fill ~3 ~0 ~20 ~3 ~1 ~20 minecraft:cobblestone +fill ~3 ~0 ~21 ~3 ~0 ~21 minecraft:dirt +fill ~3 ~0 ~22 ~3 ~2 ~22 minecraft:cobblestone +fill ~3 ~0 ~23 ~3 ~0 ~23 minecraft:dirt +fill ~3 ~0 ~24 ~3 ~0 ~24 minecraft:stone +fill ~3 ~0 ~25 ~3 ~0 ~25 minecraft:dirt +fill ~3 ~0 ~26 ~3 ~1 ~26 minecraft:stone +fill ~3 ~0 ~27 ~3 ~1 ~27 minecraft:oak_planks +fill ~3 ~0 ~28 ~3 ~2 ~28 minecraft:dirt +fill ~3 ~0 ~29 ~3 ~2 ~29 minecraft:oak_planks +fill ~4 ~0 ~2 ~4 ~1 ~2 minecraft:oak_planks +fill ~4 ~0 ~3 ~4 ~0 ~3 minecraft:dirt +fill ~4 ~0 ~4 ~4 ~2 ~4 minecraft:stone +fill ~4 ~0 ~5 ~4 ~0 ~5 minecraft:oak_planks +fill ~4 ~0 ~6 ~4 ~0 ~6 minecraft:dirt +fill ~4 ~0 ~7 ~4 ~2 ~7 minecraft:oak_planks +fill ~4 ~0 ~8 ~4 ~0 ~8 minecraft:dirt +fill ~4 ~0 ~9 ~4 ~0 ~9 minecraft:oak_planks +fill ~4 ~0 ~10 ~4 ~0 ~10 minecraft:oak_planks +fill ~4 ~0 ~11 ~4 ~2 ~11 minecraft:cobblestone +fill ~4 ~0 ~12 ~4 ~1 ~12 minecraft:oak_planks +fill ~4 ~0 ~13 ~4 ~2 ~13 minecraft:oak_planks +fill ~4 ~0 ~14 ~4 ~0 ~14 minecraft:oak_planks +fill ~4 ~0 ~15 ~4 ~1 ~15 minecraft:cobblestone +fill ~4 ~0 ~16 ~4 ~0 ~16 minecraft:cobblestone +fill ~4 ~0 ~17 ~4 ~2 ~17 minecraft:oak_planks +fill ~4 ~0 ~18 ~4 ~2 ~18 minecraft:dirt +fill ~4 ~0 ~19 ~4 ~1 ~19 minecraft:oak_planks +fill ~4 ~0 ~20 ~4 ~0 ~20 minecraft:cobblestone +fill ~4 ~0 ~21 ~4 ~0 ~21 minecraft:cobblestone +fill ~4 ~0 ~22 ~4 ~1 ~22 minecraft:cobblestone +fill ~4 ~0 ~23 ~4 ~2 ~23 minecraft:stone +fill ~4 ~0 ~24 ~4 ~0 ~24 minecraft:dirt +fill ~4 ~0 ~25 ~4 ~0 ~25 minecraft:oak_planks +fill ~4 ~0 ~26 ~4 ~2 ~26 minecraft:dirt +fill ~4 ~0 ~27 ~4 ~2 ~27 minecraft:dirt +fill ~4 ~0 ~28 ~4 ~0 ~28 minecraft:oak_planks +fill ~4 ~0 ~29 ~4 ~1 ~29 minecraft:cobblestone +fill ~5 ~0 ~2 ~5 ~2 ~2 minecraft:oak_planks +fill ~5 ~0 ~3 ~5 ~1 ~3 minecraft:stone +fill ~5 ~0 ~4 ~5 ~0 ~4 minecraft:oak_planks +fill ~5 ~0 ~5 ~5 ~1 ~5 minecraft:stone +fill ~5 ~0 ~6 ~5 ~2 ~6 minecraft:oak_planks +fill ~5 ~0 ~7 ~5 ~1 ~7 minecraft:stone +fill ~5 ~0 ~8 ~5 ~1 ~8 minecraft:cobblestone +fill ~5 ~0 ~9 ~5 ~1 ~9 minecraft:oak_planks +fill ~5 ~0 ~10 ~5 ~2 ~10 minecraft:dirt +fill ~5 ~0 ~11 ~5 ~1 ~11 minecraft:dirt +fill ~5 ~0 ~12 ~5 ~1 ~12 minecraft:oak_planks +fill ~5 ~0 ~13 ~5 ~1 ~13 minecraft:stone +fill ~5 ~0 ~14 ~5 ~1 ~14 minecraft:cobblestone +fill ~5 ~0 ~15 ~5 ~2 ~15 minecraft:oak_planks +fill ~5 ~0 ~16 ~5 ~2 ~16 minecraft:dirt +fill ~5 ~0 ~17 ~5 ~1 ~17 minecraft:dirt +fill ~5 ~0 ~18 ~5 ~2 ~18 minecraft:stone +fill ~5 ~0 ~19 ~5 ~1 ~19 minecraft:stone +fill ~5 ~0 ~20 ~5 ~0 ~20 minecraft:oak_planks +fill ~5 ~0 ~21 ~5 ~0 ~21 minecraft:oak_planks +fill ~5 ~0 ~22 ~5 ~0 ~22 minecraft:stone +fill ~5 ~0 ~23 ~5 ~1 ~23 minecraft:oak_planks +fill ~5 ~0 ~24 ~5 ~1 ~24 minecraft:dirt +fill ~5 ~0 ~25 ~5 ~1 ~25 minecraft:cobblestone +fill ~5 ~0 ~26 ~5 ~1 ~26 minecraft:oak_planks +fill ~5 ~0 ~27 ~5 ~1 ~27 minecraft:oak_planks +fill ~5 ~0 ~28 ~5 ~1 ~28 minecraft:stone +fill ~5 ~0 ~29 ~5 ~1 ~29 minecraft:stone +fill ~6 ~0 ~2 ~6 ~2 ~2 minecraft:stone +fill ~6 ~0 ~3 ~6 ~1 ~3 minecraft:dirt +fill ~6 ~0 ~4 ~6 ~2 ~4 minecraft:stone +fill ~6 ~0 ~5 ~6 ~2 ~5 minecraft:stone +fill ~6 ~0 ~6 ~6 ~0 ~6 minecraft:dirt +fill ~6 ~0 ~7 ~6 ~0 ~7 minecraft:stone +fill ~6 ~0 ~8 ~6 ~2 ~8 minecraft:dirt +fill ~6 ~0 ~9 ~6 ~0 ~9 minecraft:dirt +fill ~6 ~0 ~10 ~6 ~1 ~10 minecraft:stone +fill ~6 ~0 ~11 ~6 ~2 ~11 minecraft:dirt +fill ~6 ~0 ~12 ~6 ~1 ~12 minecraft:cobblestone +fill ~6 ~0 ~13 ~6 ~1 ~13 minecraft:dirt +fill ~6 ~0 ~14 ~6 ~2 ~14 minecraft:stone +fill ~6 ~0 ~15 ~6 ~0 ~15 minecraft:cobblestone +fill ~6 ~0 ~16 ~6 ~0 ~16 minecraft:stone +fill ~6 ~0 ~17 ~6 ~1 ~17 minecraft:oak_planks +fill ~6 ~0 ~18 ~6 ~1 ~18 minecraft:dirt +fill ~6 ~0 ~19 ~6 ~0 ~19 minecraft:dirt +fill ~6 ~0 ~20 ~6 ~0 ~20 minecraft:cobblestone +fill ~6 ~0 ~21 ~6 ~2 ~21 minecraft:stone +fill ~6 ~0 ~22 ~6 ~2 ~22 minecraft:stone +fill ~6 ~0 ~23 ~6 ~1 ~23 minecraft:oak_planks +fill ~6 ~0 ~24 ~6 ~2 ~24 minecraft:cobblestone +fill ~6 ~0 ~25 ~6 ~0 ~25 minecraft:cobblestone +fill ~6 ~0 ~26 ~6 ~0 ~26 minecraft:oak_planks +fill ~6 ~0 ~27 ~6 ~1 ~27 minecraft:stone +fill ~6 ~0 ~28 ~6 ~1 ~28 minecraft:cobblestone +fill ~6 ~0 ~29 ~6 ~2 ~29 minecraft:oak_planks +fill ~7 ~0 ~2 ~7 ~2 ~2 minecraft:dirt +fill ~7 ~0 ~3 ~7 ~1 ~3 minecraft:dirt +fill ~7 ~0 ~4 ~7 ~2 ~4 minecraft:cobblestone +fill ~7 ~0 ~5 ~7 ~2 ~5 minecraft:oak_planks +fill ~7 ~0 ~6 ~7 ~1 ~6 minecraft:oak_planks +fill ~7 ~0 ~7 ~7 ~2 ~7 minecraft:cobblestone +fill ~7 ~0 ~8 ~7 ~1 ~8 minecraft:dirt +fill ~7 ~0 ~9 ~7 ~0 ~9 minecraft:cobblestone +fill ~7 ~0 ~10 ~7 ~1 ~10 minecraft:dirt +fill ~7 ~0 ~11 ~7 ~1 ~11 minecraft:oak_planks +fill ~7 ~0 ~12 ~7 ~1 ~12 minecraft:stone +fill ~7 ~0 ~13 ~7 ~1 ~13 minecraft:cobblestone +fill ~7 ~0 ~14 ~7 ~0 ~14 minecraft:oak_planks +fill ~7 ~0 ~15 ~7 ~0 ~15 minecraft:cobblestone +fill ~7 ~0 ~16 ~7 ~1 ~16 minecraft:cobblestone +fill ~7 ~0 ~17 ~7 ~1 ~17 minecraft:cobblestone +fill ~7 ~0 ~18 ~7 ~2 ~18 minecraft:stone +fill ~7 ~0 ~19 ~7 ~2 ~19 minecraft:dirt +fill ~7 ~0 ~20 ~7 ~0 ~20 minecraft:dirt +fill ~7 ~0 ~21 ~7 ~2 ~21 minecraft:oak_planks +fill ~7 ~0 ~22 ~7 ~1 ~22 minecraft:dirt +fill ~7 ~0 ~23 ~7 ~2 ~23 minecraft:oak_planks +fill ~7 ~0 ~24 ~7 ~2 ~24 minecraft:oak_planks +fill ~7 ~0 ~25 ~7 ~1 ~25 minecraft:stone +fill ~7 ~0 ~26 ~7 ~0 ~26 minecraft:cobblestone +fill ~7 ~0 ~27 ~7 ~0 ~27 minecraft:oak_planks +fill ~7 ~0 ~28 ~7 ~2 ~28 minecraft:dirt +fill ~7 ~0 ~29 ~7 ~1 ~29 minecraft:cobblestone +fill ~8 ~0 ~2 ~8 ~1 ~2 minecraft:cobblestone +fill ~8 ~0 ~3 ~8 ~1 ~3 minecraft:cobblestone +fill ~8 ~0 ~4 ~8 ~1 ~4 minecraft:oak_planks +fill ~8 ~0 ~5 ~8 ~1 ~5 minecraft:cobblestone +fill ~8 ~0 ~6 ~8 ~1 ~6 minecraft:dirt +fill ~8 ~0 ~7 ~8 ~0 ~7 minecraft:dirt +fill ~8 ~0 ~8 ~8 ~1 ~8 minecraft:stone +fill ~8 ~0 ~9 ~8 ~2 ~9 minecraft:dirt +fill ~8 ~0 ~10 ~8 ~0 ~10 minecraft:dirt +fill ~8 ~0 ~11 ~8 ~2 ~11 minecraft:oak_planks +fill ~8 ~0 ~12 ~8 ~1 ~12 minecraft:cobblestone +fill ~8 ~0 ~13 ~8 ~0 ~13 minecraft:dirt +fill ~8 ~0 ~14 ~8 ~1 ~14 minecraft:dirt +fill ~8 ~0 ~15 ~8 ~1 ~15 minecraft:dirt +fill ~8 ~0 ~16 ~8 ~1 ~16 minecraft:stone +fill ~8 ~0 ~17 ~8 ~2 ~17 minecraft:dirt +fill ~8 ~0 ~18 ~8 ~1 ~18 minecraft:stone +fill ~8 ~0 ~19 ~8 ~0 ~19 minecraft:cobblestone +fill ~8 ~0 ~20 ~8 ~2 ~20 minecraft:dirt +fill ~8 ~0 ~21 ~8 ~2 ~21 minecraft:oak_planks +fill ~8 ~0 ~22 ~8 ~0 ~22 minecraft:stone +fill ~8 ~0 ~23 ~8 ~2 ~23 minecraft:cobblestone +fill ~8 ~0 ~24 ~8 ~1 ~24 minecraft:oak_planks +fill ~8 ~0 ~25 ~8 ~1 ~25 minecraft:cobblestone +fill ~8 ~0 ~26 ~8 ~0 ~26 minecraft:stone +fill ~8 ~0 ~27 ~8 ~1 ~27 minecraft:oak_planks +fill ~8 ~0 ~28 ~8 ~0 ~28 minecraft:stone +fill ~8 ~0 ~29 ~8 ~1 ~29 minecraft:oak_planks +fill ~9 ~0 ~2 ~9 ~0 ~2 minecraft:stone +fill ~9 ~0 ~3 ~9 ~0 ~3 minecraft:dirt +fill ~9 ~0 ~4 ~9 ~2 ~4 minecraft:cobblestone +fill ~9 ~0 ~5 ~9 ~0 ~5 minecraft:dirt +fill ~9 ~0 ~6 ~9 ~0 ~6 minecraft:oak_planks +fill ~9 ~0 ~7 ~9 ~2 ~7 minecraft:dirt +fill ~9 ~0 ~8 ~9 ~2 ~8 minecraft:oak_planks +fill ~9 ~0 ~9 ~9 ~1 ~9 minecraft:oak_planks +fill ~9 ~0 ~10 ~9 ~1 ~10 minecraft:oak_planks +fill ~9 ~0 ~11 ~9 ~1 ~11 minecraft:stone +fill ~9 ~0 ~12 ~9 ~2 ~12 minecraft:stone +fill ~9 ~0 ~13 ~9 ~0 ~13 minecraft:dirt +fill ~9 ~0 ~14 ~9 ~1 ~14 minecraft:stone +fill ~9 ~0 ~15 ~9 ~0 ~15 minecraft:dirt +fill ~9 ~0 ~16 ~9 ~0 ~16 minecraft:stone +fill ~9 ~0 ~17 ~9 ~0 ~17 minecraft:stone +fill ~9 ~0 ~18 ~9 ~1 ~18 minecraft:oak_planks +fill ~9 ~0 ~19 ~9 ~2 ~19 minecraft:oak_planks +fill ~9 ~0 ~20 ~9 ~1 ~20 minecraft:stone +fill ~9 ~0 ~21 ~9 ~0 ~21 minecraft:cobblestone +fill ~9 ~0 ~22 ~9 ~2 ~22 minecraft:cobblestone +fill ~9 ~0 ~23 ~9 ~2 ~23 minecraft:oak_planks +fill ~9 ~0 ~24 ~9 ~0 ~24 minecraft:dirt +fill ~9 ~0 ~25 ~9 ~1 ~25 minecraft:dirt +fill ~9 ~0 ~26 ~9 ~1 ~26 minecraft:stone +fill ~9 ~0 ~27 ~9 ~2 ~27 minecraft:dirt +fill ~9 ~0 ~28 ~9 ~2 ~28 minecraft:dirt +fill ~9 ~0 ~29 ~9 ~1 ~29 minecraft:dirt +fill ~10 ~0 ~2 ~10 ~0 ~2 minecraft:stone +fill ~10 ~0 ~3 ~10 ~0 ~3 minecraft:cobblestone +fill ~10 ~0 ~4 ~10 ~2 ~4 minecraft:cobblestone +fill ~10 ~0 ~5 ~10 ~1 ~5 minecraft:stone +fill ~10 ~0 ~6 ~10 ~1 ~6 minecraft:cobblestone +fill ~10 ~0 ~7 ~10 ~2 ~7 minecraft:oak_planks +fill ~10 ~0 ~8 ~10 ~1 ~8 minecraft:oak_planks +fill ~10 ~0 ~9 ~10 ~1 ~9 minecraft:stone +fill ~10 ~0 ~10 ~10 ~2 ~10 minecraft:stone +fill ~10 ~0 ~11 ~10 ~1 ~11 minecraft:cobblestone +fill ~10 ~0 ~12 ~10 ~2 ~12 minecraft:cobblestone +fill ~10 ~0 ~13 ~10 ~0 ~13 minecraft:stone +fill ~10 ~0 ~14 ~10 ~0 ~14 minecraft:stone +fill ~10 ~0 ~15 ~10 ~2 ~15 minecraft:cobblestone +fill ~10 ~0 ~16 ~10 ~2 ~16 minecraft:stone +fill ~10 ~0 ~17 ~10 ~0 ~17 minecraft:oak_planks +fill ~10 ~0 ~18 ~10 ~2 ~18 minecraft:oak_planks +fill ~10 ~0 ~19 ~10 ~1 ~19 minecraft:dirt +fill ~10 ~0 ~20 ~10 ~2 ~20 minecraft:oak_planks +fill ~10 ~0 ~21 ~10 ~2 ~21 minecraft:oak_planks +fill ~10 ~0 ~22 ~10 ~0 ~22 minecraft:oak_planks +fill ~10 ~0 ~23 ~10 ~1 ~23 minecraft:oak_planks +fill ~10 ~0 ~24 ~10 ~1 ~24 minecraft:cobblestone +fill ~10 ~0 ~25 ~10 ~2 ~25 minecraft:stone +fill ~10 ~0 ~26 ~10 ~0 ~26 minecraft:cobblestone +fill ~10 ~0 ~27 ~10 ~1 ~27 minecraft:oak_planks +fill ~10 ~0 ~28 ~10 ~1 ~28 minecraft:oak_planks +fill ~10 ~0 ~29 ~10 ~2 ~29 minecraft:stone +fill ~11 ~0 ~2 ~11 ~1 ~2 minecraft:stone +fill ~11 ~0 ~3 ~11 ~1 ~3 minecraft:cobblestone +fill ~11 ~0 ~4 ~11 ~1 ~4 minecraft:stone +fill ~11 ~0 ~5 ~11 ~1 ~5 minecraft:stone +fill ~11 ~0 ~6 ~11 ~2 ~6 minecraft:oak_planks +fill ~11 ~0 ~7 ~11 ~1 ~7 minecraft:stone +fill ~11 ~0 ~8 ~11 ~0 ~8 minecraft:cobblestone +fill ~11 ~0 ~9 ~11 ~2 ~9 minecraft:oak_planks +fill ~11 ~0 ~10 ~11 ~2 ~10 minecraft:oak_planks +fill ~11 ~0 ~11 ~11 ~0 ~11 minecraft:dirt +fill ~11 ~0 ~12 ~11 ~1 ~12 minecraft:dirt +fill ~11 ~0 ~13 ~11 ~1 ~13 minecraft:oak_planks +fill ~11 ~0 ~14 ~11 ~2 ~14 minecraft:oak_planks +fill ~11 ~0 ~15 ~11 ~0 ~15 minecraft:stone +fill ~11 ~0 ~16 ~11 ~2 ~16 minecraft:dirt +fill ~11 ~0 ~17 ~11 ~2 ~17 minecraft:dirt +fill ~11 ~0 ~18 ~11 ~1 ~18 minecraft:stone +fill ~11 ~0 ~19 ~11 ~2 ~19 minecraft:oak_planks +fill ~11 ~0 ~20 ~11 ~0 ~20 minecraft:dirt +fill ~11 ~0 ~21 ~11 ~0 ~21 minecraft:oak_planks +fill ~11 ~0 ~22 ~11 ~0 ~22 minecraft:dirt +fill ~11 ~0 ~23 ~11 ~1 ~23 minecraft:cobblestone +fill ~11 ~0 ~24 ~11 ~2 ~24 minecraft:cobblestone +fill ~11 ~0 ~25 ~11 ~1 ~25 minecraft:oak_planks +fill ~11 ~0 ~26 ~11 ~1 ~26 minecraft:dirt +fill ~11 ~0 ~27 ~11 ~1 ~27 minecraft:dirt +fill ~11 ~0 ~28 ~11 ~1 ~28 minecraft:dirt +fill ~11 ~0 ~29 ~11 ~2 ~29 minecraft:dirt +fill ~12 ~0 ~2 ~12 ~0 ~2 minecraft:cobblestone +fill ~12 ~0 ~3 ~12 ~1 ~3 minecraft:cobblestone +fill ~12 ~0 ~4 ~12 ~2 ~4 minecraft:cobblestone +fill ~12 ~0 ~5 ~12 ~0 ~5 minecraft:cobblestone +fill ~12 ~0 ~6 ~12 ~2 ~6 minecraft:cobblestone +fill ~12 ~0 ~7 ~12 ~2 ~7 minecraft:oak_planks +fill ~12 ~0 ~8 ~12 ~0 ~8 minecraft:oak_planks +fill ~12 ~0 ~9 ~12 ~2 ~9 minecraft:oak_planks +fill ~12 ~0 ~10 ~12 ~1 ~10 minecraft:cobblestone +fill ~12 ~0 ~11 ~12 ~2 ~11 minecraft:oak_planks +fill ~12 ~0 ~12 ~12 ~1 ~12 minecraft:cobblestone +fill ~12 ~0 ~13 ~12 ~0 ~13 minecraft:dirt +fill ~12 ~0 ~14 ~12 ~2 ~14 minecraft:oak_planks +fill ~12 ~0 ~15 ~12 ~0 ~15 minecraft:oak_planks +fill ~12 ~0 ~16 ~12 ~0 ~16 minecraft:cobblestone +fill ~12 ~0 ~17 ~12 ~2 ~17 minecraft:oak_planks +fill ~12 ~0 ~18 ~12 ~2 ~18 minecraft:oak_planks +fill ~12 ~0 ~19 ~12 ~1 ~19 minecraft:dirt +fill ~12 ~0 ~20 ~12 ~1 ~20 minecraft:stone +fill ~12 ~0 ~21 ~12 ~0 ~21 minecraft:cobblestone +fill ~12 ~0 ~22 ~12 ~0 ~22 minecraft:oak_planks +fill ~12 ~0 ~23 ~12 ~0 ~23 minecraft:oak_planks +fill ~12 ~0 ~24 ~12 ~0 ~24 minecraft:dirt +fill ~12 ~0 ~25 ~12 ~1 ~25 minecraft:dirt +fill ~12 ~0 ~26 ~12 ~0 ~26 minecraft:oak_planks +fill ~12 ~0 ~27 ~12 ~1 ~27 minecraft:cobblestone +fill ~12 ~0 ~28 ~12 ~2 ~28 minecraft:oak_planks +fill ~12 ~0 ~29 ~12 ~2 ~29 minecraft:stone +fill ~13 ~0 ~2 ~13 ~1 ~2 minecraft:oak_planks +fill ~13 ~0 ~3 ~13 ~1 ~3 minecraft:oak_planks +fill ~13 ~0 ~4 ~13 ~2 ~4 minecraft:stone +fill ~13 ~0 ~5 ~13 ~2 ~5 minecraft:stone +fill ~13 ~0 ~6 ~13 ~0 ~6 minecraft:cobblestone +fill ~13 ~0 ~7 ~13 ~0 ~7 minecraft:stone +fill ~13 ~0 ~8 ~13 ~1 ~8 minecraft:stone +fill ~13 ~0 ~9 ~13 ~2 ~9 minecraft:stone +fill ~13 ~0 ~10 ~13 ~1 ~10 minecraft:dirt +fill ~13 ~0 ~11 ~13 ~2 ~11 minecraft:cobblestone +fill ~13 ~0 ~12 ~13 ~0 ~12 minecraft:stone +fill ~13 ~0 ~13 ~13 ~1 ~13 minecraft:stone +fill ~13 ~0 ~14 ~13 ~1 ~14 minecraft:cobblestone +fill ~13 ~0 ~15 ~13 ~1 ~15 minecraft:oak_planks +fill ~13 ~0 ~16 ~13 ~0 ~16 minecraft:dirt +fill ~13 ~0 ~17 ~13 ~2 ~17 minecraft:oak_planks +fill ~13 ~0 ~18 ~13 ~2 ~18 minecraft:dirt +fill ~13 ~0 ~19 ~13 ~0 ~19 minecraft:dirt +fill ~13 ~0 ~20 ~13 ~0 ~20 minecraft:oak_planks +fill ~13 ~0 ~21 ~13 ~2 ~21 minecraft:dirt +fill ~13 ~0 ~22 ~13 ~1 ~22 minecraft:dirt +fill ~13 ~0 ~23 ~13 ~0 ~23 minecraft:oak_planks +fill ~13 ~0 ~24 ~13 ~2 ~24 minecraft:cobblestone +fill ~13 ~0 ~25 ~13 ~1 ~25 minecraft:cobblestone +fill ~13 ~0 ~26 ~13 ~2 ~26 minecraft:stone +fill ~13 ~0 ~27 ~13 ~1 ~27 minecraft:cobblestone +fill ~13 ~0 ~28 ~13 ~2 ~28 minecraft:dirt +fill ~13 ~0 ~29 ~13 ~0 ~29 minecraft:oak_planks +fill ~14 ~0 ~2 ~14 ~1 ~2 minecraft:cobblestone +fill ~14 ~0 ~3 ~14 ~2 ~3 minecraft:oak_planks +fill ~14 ~0 ~4 ~14 ~2 ~4 minecraft:cobblestone +fill ~14 ~0 ~5 ~14 ~1 ~5 minecraft:cobblestone +fill ~14 ~0 ~6 ~14 ~0 ~6 minecraft:oak_planks +fill ~14 ~0 ~7 ~14 ~1 ~7 minecraft:stone +fill ~14 ~0 ~8 ~14 ~0 ~8 minecraft:oak_planks +fill ~14 ~0 ~9 ~14 ~2 ~9 minecraft:cobblestone +fill ~14 ~0 ~10 ~14 ~2 ~10 minecraft:cobblestone +fill ~14 ~0 ~11 ~14 ~2 ~11 minecraft:cobblestone +fill ~14 ~0 ~12 ~14 ~0 ~12 minecraft:oak_planks +fill ~14 ~0 ~13 ~14 ~1 ~13 minecraft:stone +fill ~14 ~0 ~14 ~14 ~2 ~14 minecraft:stone +fill ~14 ~0 ~15 ~14 ~2 ~15 minecraft:oak_planks +fill ~14 ~0 ~16 ~14 ~1 ~16 minecraft:dirt +fill ~14 ~0 ~17 ~14 ~2 ~17 minecraft:cobblestone +fill ~14 ~0 ~18 ~14 ~0 ~18 minecraft:dirt +fill ~14 ~0 ~19 ~14 ~2 ~19 minecraft:cobblestone +fill ~14 ~0 ~20 ~14 ~2 ~20 minecraft:dirt +fill ~14 ~0 ~21 ~14 ~2 ~21 minecraft:stone +fill ~14 ~0 ~22 ~14 ~2 ~22 minecraft:stone +fill ~14 ~0 ~23 ~14 ~1 ~23 minecraft:oak_planks +fill ~14 ~0 ~24 ~14 ~0 ~24 minecraft:cobblestone +fill ~14 ~0 ~25 ~14 ~2 ~25 minecraft:dirt +fill ~14 ~0 ~26 ~14 ~0 ~26 minecraft:cobblestone +fill ~14 ~0 ~27 ~14 ~1 ~27 minecraft:oak_planks +fill ~14 ~0 ~28 ~14 ~0 ~28 minecraft:dirt +fill ~14 ~0 ~29 ~14 ~0 ~29 minecraft:cobblestone +fill ~15 ~0 ~2 ~15 ~2 ~2 minecraft:cobblestone +fill ~15 ~0 ~3 ~15 ~0 ~3 minecraft:cobblestone +fill ~15 ~0 ~4 ~15 ~1 ~4 minecraft:cobblestone +fill ~15 ~0 ~5 ~15 ~2 ~5 minecraft:cobblestone +fill ~15 ~0 ~6 ~15 ~0 ~6 minecraft:oak_planks +fill ~15 ~0 ~7 ~15 ~0 ~7 minecraft:dirt +fill ~15 ~0 ~8 ~15 ~0 ~8 minecraft:oak_planks +fill ~15 ~0 ~9 ~15 ~2 ~9 minecraft:cobblestone +fill ~15 ~0 ~10 ~15 ~0 ~10 minecraft:oak_planks +fill ~15 ~0 ~11 ~15 ~0 ~11 minecraft:cobblestone +fill ~15 ~0 ~12 ~15 ~2 ~12 minecraft:stone +fill ~15 ~0 ~13 ~15 ~1 ~13 minecraft:cobblestone +fill ~15 ~0 ~14 ~15 ~2 ~14 minecraft:cobblestone +fill ~15 ~0 ~15 ~15 ~2 ~15 minecraft:oak_planks +fill ~15 ~0 ~16 ~15 ~2 ~16 minecraft:cobblestone +fill ~15 ~0 ~17 ~15 ~0 ~17 minecraft:dirt +fill ~15 ~0 ~18 ~15 ~1 ~18 minecraft:stone +fill ~15 ~0 ~19 ~15 ~2 ~19 minecraft:cobblestone +fill ~15 ~0 ~20 ~15 ~2 ~20 minecraft:dirt +fill ~15 ~0 ~21 ~15 ~2 ~21 minecraft:stone +fill ~15 ~0 ~22 ~15 ~2 ~22 minecraft:oak_planks +fill ~15 ~0 ~23 ~15 ~2 ~23 minecraft:cobblestone +fill ~15 ~0 ~24 ~15 ~2 ~24 minecraft:oak_planks +fill ~15 ~0 ~25 ~15 ~0 ~25 minecraft:dirt +fill ~15 ~0 ~26 ~15 ~0 ~26 minecraft:stone +fill ~15 ~0 ~27 ~15 ~1 ~27 minecraft:oak_planks +fill ~15 ~0 ~28 ~15 ~0 ~28 minecraft:stone +fill ~15 ~0 ~29 ~15 ~0 ~29 minecraft:dirt +fill ~16 ~0 ~2 ~16 ~1 ~2 minecraft:oak_planks +fill ~16 ~0 ~3 ~16 ~1 ~3 minecraft:oak_planks +fill ~16 ~0 ~4 ~16 ~2 ~4 minecraft:dirt +fill ~16 ~0 ~5 ~16 ~1 ~5 minecraft:stone +fill ~16 ~0 ~6 ~16 ~1 ~6 minecraft:oak_planks +fill ~16 ~0 ~7 ~16 ~1 ~7 minecraft:stone +fill ~16 ~0 ~8 ~16 ~2 ~8 minecraft:cobblestone +fill ~16 ~0 ~9 ~16 ~0 ~9 minecraft:oak_planks +fill ~16 ~0 ~10 ~16 ~1 ~10 minecraft:dirt +fill ~16 ~0 ~11 ~16 ~1 ~11 minecraft:stone +fill ~16 ~0 ~12 ~16 ~2 ~12 minecraft:cobblestone +fill ~16 ~0 ~13 ~16 ~2 ~13 minecraft:cobblestone +fill ~16 ~0 ~14 ~16 ~0 ~14 minecraft:oak_planks +fill ~16 ~0 ~15 ~16 ~1 ~15 minecraft:dirt +fill ~16 ~0 ~16 ~16 ~0 ~16 minecraft:oak_planks +fill ~16 ~0 ~17 ~16 ~0 ~17 minecraft:dirt +fill ~16 ~0 ~18 ~16 ~2 ~18 minecraft:stone +fill ~16 ~0 ~19 ~16 ~0 ~19 minecraft:cobblestone +fill ~16 ~0 ~20 ~16 ~0 ~20 minecraft:dirt +fill ~16 ~0 ~21 ~16 ~2 ~21 minecraft:dirt +fill ~16 ~0 ~22 ~16 ~0 ~22 minecraft:dirt +fill ~16 ~0 ~23 ~16 ~2 ~23 minecraft:dirt +fill ~16 ~0 ~24 ~16 ~0 ~24 minecraft:cobblestone +fill ~16 ~0 ~25 ~16 ~0 ~25 minecraft:stone +fill ~16 ~0 ~26 ~16 ~1 ~26 minecraft:dirt +fill ~16 ~0 ~27 ~16 ~0 ~27 minecraft:cobblestone +fill ~16 ~0 ~28 ~16 ~0 ~28 minecraft:stone +fill ~16 ~0 ~29 ~16 ~2 ~29 minecraft:stone +fill ~17 ~0 ~2 ~17 ~0 ~2 minecraft:stone +fill ~17 ~0 ~3 ~17 ~1 ~3 minecraft:dirt +fill ~17 ~0 ~4 ~17 ~2 ~4 minecraft:cobblestone +fill ~17 ~0 ~5 ~17 ~0 ~5 minecraft:dirt +fill ~17 ~0 ~6 ~17 ~1 ~6 minecraft:stone +fill ~17 ~0 ~7 ~17 ~0 ~7 minecraft:oak_planks +fill ~17 ~0 ~8 ~17 ~2 ~8 minecraft:stone +fill ~17 ~0 ~9 ~17 ~2 ~9 minecraft:stone +fill ~17 ~0 ~10 ~17 ~1 ~10 minecraft:oak_planks +fill ~17 ~0 ~11 ~17 ~1 ~11 minecraft:stone +fill ~17 ~0 ~12 ~17 ~1 ~12 minecraft:dirt +fill ~17 ~0 ~13 ~17 ~2 ~13 minecraft:stone +fill ~17 ~0 ~14 ~17 ~2 ~14 minecraft:cobblestone +fill ~17 ~0 ~15 ~17 ~1 ~15 minecraft:stone +fill ~17 ~0 ~16 ~17 ~0 ~16 minecraft:oak_planks +fill ~17 ~0 ~17 ~17 ~1 ~17 minecraft:oak_planks +fill ~17 ~0 ~18 ~17 ~2 ~18 minecraft:stone +fill ~17 ~0 ~19 ~17 ~1 ~19 minecraft:oak_planks +fill ~17 ~0 ~20 ~17 ~0 ~20 minecraft:stone +fill ~17 ~0 ~21 ~17 ~1 ~21 minecraft:dirt +fill ~17 ~0 ~22 ~17 ~0 ~22 minecraft:dirt +fill ~17 ~0 ~23 ~17 ~1 ~23 minecraft:cobblestone +fill ~17 ~0 ~24 ~17 ~1 ~24 minecraft:cobblestone +fill ~17 ~0 ~25 ~17 ~1 ~25 minecraft:oak_planks +fill ~17 ~0 ~26 ~17 ~0 ~26 minecraft:stone +fill ~17 ~0 ~27 ~17 ~2 ~27 minecraft:dirt +fill ~17 ~0 ~28 ~17 ~1 ~28 minecraft:oak_planks +fill ~17 ~0 ~29 ~17 ~0 ~29 minecraft:oak_planks +fill ~18 ~0 ~2 ~18 ~1 ~2 minecraft:oak_planks +fill ~18 ~0 ~3 ~18 ~1 ~3 minecraft:oak_planks +fill ~18 ~0 ~4 ~18 ~2 ~4 minecraft:stone +fill ~18 ~0 ~5 ~18 ~1 ~5 minecraft:oak_planks +fill ~18 ~0 ~6 ~18 ~1 ~6 minecraft:cobblestone +fill ~18 ~0 ~7 ~18 ~1 ~7 minecraft:dirt +fill ~18 ~0 ~8 ~18 ~2 ~8 minecraft:oak_planks +fill ~18 ~0 ~9 ~18 ~0 ~9 minecraft:stone +fill ~18 ~0 ~10 ~18 ~0 ~10 minecraft:stone +fill ~18 ~0 ~11 ~18 ~1 ~11 minecraft:stone +fill ~18 ~0 ~12 ~18 ~2 ~12 minecraft:cobblestone +fill ~18 ~0 ~13 ~18 ~0 ~13 minecraft:stone +fill ~18 ~0 ~14 ~18 ~2 ~14 minecraft:cobblestone +fill ~18 ~0 ~15 ~18 ~2 ~15 minecraft:stone +fill ~18 ~0 ~16 ~18 ~1 ~16 minecraft:cobblestone +fill ~18 ~0 ~17 ~18 ~2 ~17 minecraft:oak_planks +fill ~18 ~0 ~18 ~18 ~2 ~18 minecraft:stone +fill ~18 ~0 ~19 ~18 ~1 ~19 minecraft:cobblestone +fill ~18 ~0 ~20 ~18 ~1 ~20 minecraft:stone +fill ~18 ~0 ~21 ~18 ~2 ~21 minecraft:dirt +fill ~18 ~0 ~22 ~18 ~0 ~22 minecraft:oak_planks +fill ~18 ~0 ~23 ~18 ~0 ~23 minecraft:stone +fill ~18 ~0 ~24 ~18 ~1 ~24 minecraft:cobblestone +fill ~18 ~0 ~25 ~18 ~0 ~25 minecraft:cobblestone +fill ~18 ~0 ~26 ~18 ~2 ~26 minecraft:dirt +fill ~18 ~0 ~27 ~18 ~1 ~27 minecraft:stone +fill ~18 ~0 ~28 ~18 ~2 ~28 minecraft:cobblestone +fill ~18 ~0 ~29 ~18 ~0 ~29 minecraft:dirt +fill ~19 ~0 ~2 ~19 ~1 ~2 minecraft:cobblestone +fill ~19 ~0 ~3 ~19 ~1 ~3 minecraft:cobblestone +fill ~19 ~0 ~4 ~19 ~0 ~4 minecraft:dirt +fill ~19 ~0 ~5 ~19 ~0 ~5 minecraft:oak_planks +fill ~19 ~0 ~6 ~19 ~0 ~6 minecraft:dirt +fill ~19 ~0 ~7 ~19 ~2 ~7 minecraft:stone +fill ~19 ~0 ~8 ~19 ~0 ~8 minecraft:dirt +fill ~19 ~0 ~9 ~19 ~1 ~9 minecraft:oak_planks +fill ~19 ~0 ~10 ~19 ~1 ~10 minecraft:cobblestone +fill ~19 ~0 ~11 ~19 ~0 ~11 minecraft:cobblestone +fill ~19 ~0 ~12 ~19 ~1 ~12 minecraft:cobblestone +fill ~19 ~0 ~13 ~19 ~2 ~13 minecraft:stone +fill ~19 ~0 ~14 ~19 ~0 ~14 minecraft:dirt +fill ~19 ~0 ~15 ~19 ~0 ~15 minecraft:stone +fill ~19 ~0 ~16 ~19 ~2 ~16 minecraft:stone +fill ~19 ~0 ~17 ~19 ~1 ~17 minecraft:oak_planks +fill ~19 ~0 ~18 ~19 ~2 ~18 minecraft:oak_planks +fill ~19 ~0 ~19 ~19 ~1 ~19 minecraft:oak_planks +fill ~19 ~0 ~20 ~19 ~1 ~20 minecraft:cobblestone +fill ~19 ~0 ~21 ~19 ~0 ~21 minecraft:stone +fill ~19 ~0 ~22 ~19 ~1 ~22 minecraft:oak_planks +fill ~19 ~0 ~23 ~19 ~0 ~23 minecraft:cobblestone +fill ~19 ~0 ~24 ~19 ~2 ~24 minecraft:oak_planks +fill ~19 ~0 ~25 ~19 ~2 ~25 minecraft:cobblestone +fill ~19 ~0 ~26 ~19 ~0 ~26 minecraft:dirt +fill ~19 ~0 ~27 ~19 ~1 ~27 minecraft:stone +fill ~19 ~0 ~28 ~19 ~0 ~28 minecraft:dirt +fill ~19 ~0 ~29 ~19 ~1 ~29 minecraft:dirt +fill ~20 ~0 ~2 ~20 ~0 ~2 minecraft:cobblestone +fill ~20 ~0 ~3 ~20 ~1 ~3 minecraft:cobblestone +fill ~20 ~0 ~4 ~20 ~0 ~4 minecraft:stone +fill ~20 ~0 ~5 ~20 ~1 ~5 minecraft:oak_planks +fill ~20 ~0 ~6 ~20 ~0 ~6 minecraft:dirt +fill ~20 ~0 ~7 ~20 ~1 ~7 minecraft:dirt +fill ~20 ~0 ~8 ~20 ~2 ~8 minecraft:cobblestone +fill ~20 ~0 ~9 ~20 ~0 ~9 minecraft:oak_planks +fill ~20 ~0 ~10 ~20 ~2 ~10 minecraft:stone +fill ~20 ~0 ~11 ~20 ~1 ~11 minecraft:stone +fill ~20 ~0 ~12 ~20 ~1 ~12 minecraft:stone +fill ~20 ~0 ~13 ~20 ~1 ~13 minecraft:oak_planks +fill ~20 ~0 ~14 ~20 ~2 ~14 minecraft:oak_planks +fill ~20 ~0 ~15 ~20 ~2 ~15 minecraft:oak_planks +fill ~20 ~0 ~16 ~20 ~1 ~16 minecraft:stone +fill ~20 ~0 ~17 ~20 ~1 ~17 minecraft:stone +fill ~20 ~0 ~18 ~20 ~1 ~18 minecraft:dirt +fill ~20 ~0 ~19 ~20 ~2 ~19 minecraft:oak_planks +fill ~20 ~0 ~20 ~20 ~2 ~20 minecraft:cobblestone +fill ~20 ~0 ~21 ~20 ~0 ~21 minecraft:oak_planks +fill ~20 ~0 ~22 ~20 ~0 ~22 minecraft:dirt +fill ~20 ~0 ~23 ~20 ~1 ~23 minecraft:oak_planks +fill ~20 ~0 ~24 ~20 ~2 ~24 minecraft:stone +fill ~20 ~0 ~25 ~20 ~1 ~25 minecraft:cobblestone +fill ~20 ~0 ~26 ~20 ~2 ~26 minecraft:cobblestone +fill ~20 ~0 ~27 ~20 ~0 ~27 minecraft:cobblestone +fill ~20 ~0 ~28 ~20 ~0 ~28 minecraft:stone +fill ~20 ~0 ~29 ~20 ~2 ~29 minecraft:stone +fill ~21 ~0 ~2 ~21 ~2 ~2 minecraft:dirt +fill ~21 ~0 ~3 ~21 ~1 ~3 minecraft:cobblestone +fill ~21 ~0 ~4 ~21 ~2 ~4 minecraft:dirt +fill ~21 ~0 ~5 ~21 ~0 ~5 minecraft:stone +fill ~21 ~0 ~6 ~21 ~0 ~6 minecraft:cobblestone +fill ~21 ~0 ~7 ~21 ~0 ~7 minecraft:dirt +fill ~21 ~0 ~8 ~21 ~2 ~8 minecraft:dirt +fill ~21 ~0 ~9 ~21 ~2 ~9 minecraft:stone +fill ~21 ~0 ~10 ~21 ~0 ~10 minecraft:oak_planks +fill ~21 ~0 ~11 ~21 ~1 ~11 minecraft:oak_planks +fill ~21 ~0 ~12 ~21 ~2 ~12 minecraft:cobblestone +fill ~21 ~0 ~13 ~21 ~2 ~13 minecraft:cobblestone +fill ~21 ~0 ~14 ~21 ~0 ~14 minecraft:oak_planks +fill ~21 ~0 ~15 ~21 ~0 ~15 minecraft:oak_planks +fill ~21 ~0 ~16 ~21 ~1 ~16 minecraft:cobblestone +fill ~21 ~0 ~17 ~21 ~1 ~17 minecraft:stone +fill ~21 ~0 ~18 ~21 ~1 ~18 minecraft:stone +fill ~21 ~0 ~19 ~21 ~1 ~19 minecraft:oak_planks +fill ~21 ~0 ~20 ~21 ~1 ~20 minecraft:stone +fill ~21 ~0 ~21 ~21 ~0 ~21 minecraft:cobblestone +fill ~21 ~0 ~22 ~21 ~1 ~22 minecraft:stone +fill ~21 ~0 ~23 ~21 ~2 ~23 minecraft:stone +fill ~21 ~0 ~24 ~21 ~2 ~24 minecraft:oak_planks +fill ~21 ~0 ~25 ~21 ~1 ~25 minecraft:stone +fill ~21 ~0 ~26 ~21 ~1 ~26 minecraft:dirt +fill ~21 ~0 ~27 ~21 ~1 ~27 minecraft:oak_planks +fill ~21 ~0 ~28 ~21 ~2 ~28 minecraft:dirt +fill ~21 ~0 ~29 ~21 ~0 ~29 minecraft:oak_planks +fill ~22 ~0 ~2 ~22 ~0 ~2 minecraft:cobblestone +fill ~22 ~0 ~3 ~22 ~2 ~3 minecraft:stone +fill ~22 ~0 ~4 ~22 ~2 ~4 minecraft:dirt +fill ~22 ~0 ~5 ~22 ~0 ~5 minecraft:dirt +fill ~22 ~0 ~6 ~22 ~2 ~6 minecraft:oak_planks +fill ~22 ~0 ~7 ~22 ~1 ~7 minecraft:dirt +fill ~22 ~0 ~8 ~22 ~1 ~8 minecraft:cobblestone +fill ~22 ~0 ~9 ~22 ~1 ~9 minecraft:oak_planks +fill ~22 ~0 ~10 ~22 ~1 ~10 minecraft:cobblestone +fill ~22 ~0 ~11 ~22 ~2 ~11 minecraft:stone +fill ~22 ~0 ~12 ~22 ~2 ~12 minecraft:cobblestone +fill ~22 ~0 ~13 ~22 ~0 ~13 minecraft:cobblestone +fill ~22 ~0 ~14 ~22 ~0 ~14 minecraft:oak_planks +fill ~22 ~0 ~15 ~22 ~1 ~15 minecraft:cobblestone +fill ~22 ~0 ~16 ~22 ~2 ~16 minecraft:dirt +fill ~22 ~0 ~17 ~22 ~1 ~17 minecraft:stone +fill ~22 ~0 ~18 ~22 ~2 ~18 minecraft:dirt +fill ~22 ~0 ~19 ~22 ~1 ~19 minecraft:cobblestone +fill ~22 ~0 ~20 ~22 ~2 ~20 minecraft:oak_planks +fill ~22 ~0 ~21 ~22 ~0 ~21 minecraft:stone +fill ~22 ~0 ~22 ~22 ~1 ~22 minecraft:oak_planks +fill ~22 ~0 ~23 ~22 ~2 ~23 minecraft:cobblestone +fill ~22 ~0 ~24 ~22 ~0 ~24 minecraft:stone +fill ~22 ~0 ~25 ~22 ~2 ~25 minecraft:oak_planks +fill ~22 ~0 ~26 ~22 ~2 ~26 minecraft:cobblestone +fill ~22 ~0 ~27 ~22 ~0 ~27 minecraft:cobblestone +fill ~22 ~0 ~28 ~22 ~1 ~28 minecraft:dirt +fill ~22 ~0 ~29 ~22 ~0 ~29 minecraft:cobblestone +fill ~23 ~0 ~2 ~23 ~1 ~2 minecraft:dirt +fill ~23 ~0 ~3 ~23 ~0 ~3 minecraft:dirt +fill ~23 ~0 ~4 ~23 ~0 ~4 minecraft:stone +fill ~23 ~0 ~5 ~23 ~1 ~5 minecraft:stone +fill ~23 ~0 ~6 ~23 ~2 ~6 minecraft:stone +fill ~23 ~0 ~7 ~23 ~2 ~7 minecraft:cobblestone +fill ~23 ~0 ~8 ~23 ~2 ~8 minecraft:dirt +fill ~23 ~0 ~9 ~23 ~2 ~9 minecraft:oak_planks +fill ~23 ~0 ~10 ~23 ~0 ~10 minecraft:dirt +fill ~23 ~0 ~11 ~23 ~0 ~11 minecraft:dirt +fill ~23 ~0 ~12 ~23 ~2 ~12 minecraft:oak_planks +fill ~23 ~0 ~13 ~23 ~0 ~13 minecraft:oak_planks +fill ~23 ~0 ~14 ~23 ~1 ~14 minecraft:dirt +fill ~23 ~0 ~15 ~23 ~1 ~15 minecraft:cobblestone +fill ~23 ~0 ~16 ~23 ~2 ~16 minecraft:oak_planks +fill ~23 ~0 ~17 ~23 ~0 ~17 minecraft:dirt +fill ~23 ~0 ~18 ~23 ~1 ~18 minecraft:oak_planks +fill ~23 ~0 ~19 ~23 ~0 ~19 minecraft:cobblestone +fill ~23 ~0 ~20 ~23 ~2 ~20 minecraft:oak_planks +fill ~23 ~0 ~21 ~23 ~1 ~21 minecraft:cobblestone +fill ~23 ~0 ~22 ~23 ~1 ~22 minecraft:oak_planks +fill ~23 ~0 ~23 ~23 ~0 ~23 minecraft:dirt +fill ~23 ~0 ~24 ~23 ~2 ~24 minecraft:dirt +fill ~23 ~0 ~25 ~23 ~1 ~25 minecraft:stone +fill ~23 ~0 ~26 ~23 ~2 ~26 minecraft:oak_planks +fill ~23 ~0 ~27 ~23 ~1 ~27 minecraft:stone +fill ~23 ~0 ~28 ~23 ~2 ~28 minecraft:stone +fill ~23 ~0 ~29 ~23 ~1 ~29 minecraft:stone +fill ~24 ~0 ~2 ~24 ~0 ~2 minecraft:cobblestone +fill ~24 ~0 ~3 ~24 ~1 ~3 minecraft:dirt +fill ~24 ~0 ~4 ~24 ~1 ~4 minecraft:stone +fill ~24 ~0 ~5 ~24 ~0 ~5 minecraft:oak_planks +fill ~24 ~0 ~6 ~24 ~1 ~6 minecraft:stone +fill ~24 ~0 ~7 ~24 ~1 ~7 minecraft:stone +fill ~24 ~0 ~8 ~24 ~1 ~8 minecraft:cobblestone +fill ~24 ~0 ~9 ~24 ~0 ~9 minecraft:oak_planks +fill ~24 ~0 ~10 ~24 ~0 ~10 minecraft:cobblestone +fill ~24 ~0 ~11 ~24 ~0 ~11 minecraft:stone +fill ~24 ~0 ~12 ~24 ~1 ~12 minecraft:stone +fill ~24 ~0 ~13 ~24 ~2 ~13 minecraft:cobblestone +fill ~24 ~0 ~14 ~24 ~0 ~14 minecraft:dirt +fill ~24 ~0 ~15 ~24 ~0 ~15 minecraft:cobblestone +fill ~24 ~0 ~16 ~24 ~1 ~16 minecraft:dirt +fill ~24 ~0 ~17 ~24 ~2 ~17 minecraft:oak_planks +fill ~24 ~0 ~18 ~24 ~1 ~18 minecraft:stone +fill ~24 ~0 ~19 ~24 ~0 ~19 minecraft:stone +fill ~24 ~0 ~20 ~24 ~1 ~20 minecraft:dirt +fill ~24 ~0 ~21 ~24 ~0 ~21 minecraft:oak_planks +fill ~24 ~0 ~22 ~24 ~0 ~22 minecraft:cobblestone +fill ~24 ~0 ~23 ~24 ~0 ~23 minecraft:cobblestone +fill ~24 ~0 ~24 ~24 ~0 ~24 minecraft:stone +fill ~24 ~0 ~25 ~24 ~0 ~25 minecraft:oak_planks +fill ~24 ~0 ~26 ~24 ~2 ~26 minecraft:oak_planks +fill ~24 ~0 ~27 ~24 ~0 ~27 minecraft:stone +fill ~24 ~0 ~28 ~24 ~1 ~28 minecraft:stone +fill ~24 ~0 ~29 ~24 ~2 ~29 minecraft:dirt +fill ~25 ~0 ~2 ~25 ~2 ~2 minecraft:dirt +fill ~25 ~0 ~3 ~25 ~1 ~3 minecraft:oak_planks +fill ~25 ~0 ~4 ~25 ~0 ~4 minecraft:cobblestone +fill ~25 ~0 ~5 ~25 ~0 ~5 minecraft:oak_planks +fill ~25 ~0 ~6 ~25 ~0 ~6 minecraft:stone +fill ~25 ~0 ~7 ~25 ~2 ~7 minecraft:cobblestone +fill ~25 ~0 ~8 ~25 ~0 ~8 minecraft:stone +fill ~25 ~0 ~9 ~25 ~1 ~9 minecraft:oak_planks +fill ~25 ~0 ~10 ~25 ~0 ~10 minecraft:oak_planks +fill ~25 ~0 ~11 ~25 ~1 ~11 minecraft:cobblestone +fill ~25 ~0 ~12 ~25 ~2 ~12 minecraft:stone +fill ~25 ~0 ~13 ~25 ~1 ~13 minecraft:stone +fill ~25 ~0 ~14 ~25 ~1 ~14 minecraft:dirt +fill ~25 ~0 ~15 ~25 ~2 ~15 minecraft:stone +fill ~25 ~0 ~16 ~25 ~2 ~16 minecraft:cobblestone +fill ~25 ~0 ~17 ~25 ~0 ~17 minecraft:stone +fill ~25 ~0 ~18 ~25 ~1 ~18 minecraft:cobblestone +fill ~25 ~0 ~19 ~25 ~2 ~19 minecraft:dirt +fill ~25 ~0 ~20 ~25 ~2 ~20 minecraft:oak_planks +fill ~25 ~0 ~21 ~25 ~2 ~21 minecraft:oak_planks +fill ~25 ~0 ~22 ~25 ~2 ~22 minecraft:dirt +fill ~25 ~0 ~23 ~25 ~0 ~23 minecraft:stone +fill ~25 ~0 ~24 ~25 ~2 ~24 minecraft:oak_planks +fill ~25 ~0 ~25 ~25 ~0 ~25 minecraft:cobblestone +fill ~25 ~0 ~26 ~25 ~0 ~26 minecraft:stone +fill ~25 ~0 ~27 ~25 ~0 ~27 minecraft:stone +fill ~25 ~0 ~28 ~25 ~1 ~28 minecraft:cobblestone +fill ~25 ~0 ~29 ~25 ~2 ~29 minecraft:oak_planks +fill ~26 ~0 ~2 ~26 ~2 ~2 minecraft:oak_planks +fill ~26 ~0 ~3 ~26 ~1 ~3 minecraft:stone +fill ~26 ~0 ~4 ~26 ~2 ~4 minecraft:dirt +fill ~26 ~0 ~5 ~26 ~1 ~5 minecraft:cobblestone +fill ~26 ~0 ~6 ~26 ~0 ~6 minecraft:cobblestone +fill ~26 ~0 ~7 ~26 ~1 ~7 minecraft:stone +fill ~26 ~0 ~8 ~26 ~1 ~8 minecraft:oak_planks +fill ~26 ~0 ~9 ~26 ~1 ~9 minecraft:oak_planks +fill ~26 ~0 ~10 ~26 ~1 ~10 minecraft:cobblestone +fill ~26 ~0 ~11 ~26 ~0 ~11 minecraft:oak_planks +fill ~26 ~0 ~12 ~26 ~2 ~12 minecraft:oak_planks +fill ~26 ~0 ~13 ~26 ~1 ~13 minecraft:cobblestone +fill ~26 ~0 ~14 ~26 ~0 ~14 minecraft:oak_planks +fill ~26 ~0 ~15 ~26 ~0 ~15 minecraft:oak_planks +fill ~26 ~0 ~16 ~26 ~2 ~16 minecraft:dirt +fill ~26 ~0 ~17 ~26 ~2 ~17 minecraft:cobblestone +fill ~26 ~0 ~18 ~26 ~1 ~18 minecraft:stone +fill ~26 ~0 ~19 ~26 ~0 ~19 minecraft:cobblestone +fill ~26 ~0 ~20 ~26 ~2 ~20 minecraft:cobblestone +fill ~26 ~0 ~21 ~26 ~1 ~21 minecraft:oak_planks +fill ~26 ~0 ~22 ~26 ~2 ~22 minecraft:oak_planks +fill ~26 ~0 ~23 ~26 ~0 ~23 minecraft:oak_planks +fill ~26 ~0 ~24 ~26 ~1 ~24 minecraft:oak_planks +fill ~26 ~0 ~25 ~26 ~0 ~25 minecraft:cobblestone +fill ~26 ~0 ~26 ~26 ~2 ~26 minecraft:oak_planks +fill ~26 ~0 ~27 ~26 ~1 ~27 minecraft:stone +fill ~26 ~0 ~28 ~26 ~0 ~28 minecraft:oak_planks +fill ~26 ~0 ~29 ~26 ~1 ~29 minecraft:dirt +fill ~27 ~0 ~2 ~27 ~0 ~2 minecraft:dirt +fill ~27 ~0 ~3 ~27 ~2 ~3 minecraft:oak_planks +fill ~27 ~0 ~4 ~27 ~0 ~4 minecraft:dirt +fill ~27 ~0 ~5 ~27 ~0 ~5 minecraft:dirt +fill ~27 ~0 ~6 ~27 ~2 ~6 minecraft:cobblestone +fill ~27 ~0 ~7 ~27 ~1 ~7 minecraft:oak_planks +fill ~27 ~0 ~8 ~27 ~2 ~8 minecraft:stone +fill ~27 ~0 ~9 ~27 ~2 ~9 minecraft:dirt +fill ~27 ~0 ~10 ~27 ~2 ~10 minecraft:oak_planks +fill ~27 ~0 ~11 ~27 ~1 ~11 minecraft:cobblestone +fill ~27 ~0 ~12 ~27 ~1 ~12 minecraft:stone +fill ~27 ~0 ~13 ~27 ~2 ~13 minecraft:dirt +fill ~27 ~0 ~14 ~27 ~2 ~14 minecraft:cobblestone +fill ~27 ~0 ~15 ~27 ~1 ~15 minecraft:cobblestone +fill ~27 ~0 ~16 ~27 ~2 ~16 minecraft:cobblestone +fill ~27 ~0 ~17 ~27 ~0 ~17 minecraft:stone +fill ~27 ~0 ~18 ~27 ~0 ~18 minecraft:dirt +fill ~27 ~0 ~19 ~27 ~1 ~19 minecraft:oak_planks +fill ~27 ~0 ~20 ~27 ~2 ~20 minecraft:stone +fill ~27 ~0 ~21 ~27 ~1 ~21 minecraft:cobblestone +fill ~27 ~0 ~22 ~27 ~2 ~22 minecraft:oak_planks +fill ~27 ~0 ~23 ~27 ~0 ~23 minecraft:cobblestone +fill ~27 ~0 ~24 ~27 ~2 ~24 minecraft:oak_planks +fill ~27 ~0 ~25 ~27 ~0 ~25 minecraft:stone +fill ~27 ~0 ~26 ~27 ~0 ~26 minecraft:stone +fill ~27 ~0 ~27 ~27 ~1 ~27 minecraft:dirt +fill ~27 ~0 ~28 ~27 ~2 ~28 minecraft:oak_planks +fill ~27 ~0 ~29 ~27 ~0 ~29 minecraft:cobblestone +fill ~28 ~0 ~2 ~28 ~2 ~2 minecraft:cobblestone +fill ~28 ~0 ~3 ~28 ~2 ~3 minecraft:stone +fill ~28 ~0 ~4 ~28 ~2 ~4 minecraft:cobblestone +fill ~28 ~0 ~5 ~28 ~1 ~5 minecraft:dirt +fill ~28 ~0 ~6 ~28 ~2 ~6 minecraft:dirt +fill ~28 ~0 ~7 ~28 ~1 ~7 minecraft:dirt +fill ~28 ~0 ~8 ~28 ~0 ~8 minecraft:dirt +fill ~28 ~0 ~9 ~28 ~0 ~9 minecraft:dirt +fill ~28 ~0 ~10 ~28 ~1 ~10 minecraft:stone +fill ~28 ~0 ~11 ~28 ~1 ~11 minecraft:cobblestone +fill ~28 ~0 ~12 ~28 ~1 ~12 minecraft:dirt +fill ~28 ~0 ~13 ~28 ~2 ~13 minecraft:stone +fill ~28 ~0 ~14 ~28 ~0 ~14 minecraft:cobblestone +fill ~28 ~0 ~15 ~28 ~1 ~15 minecraft:oak_planks +fill ~28 ~0 ~16 ~28 ~2 ~16 minecraft:oak_planks +fill ~28 ~0 ~17 ~28 ~1 ~17 minecraft:stone +fill ~28 ~0 ~18 ~28 ~0 ~18 minecraft:cobblestone +fill ~28 ~0 ~19 ~28 ~2 ~19 minecraft:stone +fill ~28 ~0 ~20 ~28 ~1 ~20 minecraft:oak_planks +fill ~28 ~0 ~21 ~28 ~2 ~21 minecraft:cobblestone +fill ~28 ~0 ~22 ~28 ~0 ~22 minecraft:dirt +fill ~28 ~0 ~23 ~28 ~0 ~23 minecraft:oak_planks +fill ~28 ~0 ~24 ~28 ~2 ~24 minecraft:stone +fill ~28 ~0 ~25 ~28 ~0 ~25 minecraft:dirt +fill ~28 ~0 ~26 ~28 ~1 ~26 minecraft:dirt +fill ~28 ~0 ~27 ~28 ~0 ~27 minecraft:cobblestone +fill ~28 ~0 ~28 ~28 ~2 ~28 minecraft:dirt +fill ~28 ~0 ~29 ~28 ~1 ~29 minecraft:cobblestone +fill ~29 ~0 ~2 ~29 ~0 ~2 minecraft:cobblestone +fill ~29 ~0 ~3 ~29 ~0 ~3 minecraft:cobblestone +fill ~29 ~0 ~4 ~29 ~0 ~4 minecraft:cobblestone +fill ~29 ~0 ~5 ~29 ~2 ~5 minecraft:stone +fill ~29 ~0 ~6 ~29 ~2 ~6 minecraft:dirt +fill ~29 ~0 ~7 ~29 ~2 ~7 minecraft:dirt +fill ~29 ~0 ~8 ~29 ~0 ~8 minecraft:cobblestone +fill ~29 ~0 ~9 ~29 ~2 ~9 minecraft:stone +fill ~29 ~0 ~10 ~29 ~0 ~10 minecraft:stone +fill ~29 ~0 ~11 ~29 ~0 ~11 minecraft:cobblestone +fill ~29 ~0 ~12 ~29 ~2 ~12 minecraft:dirt +fill ~29 ~0 ~13 ~29 ~2 ~13 minecraft:oak_planks +fill ~29 ~0 ~14 ~29 ~2 ~14 minecraft:stone +fill ~29 ~0 ~15 ~29 ~1 ~15 minecraft:cobblestone +fill ~29 ~0 ~16 ~29 ~2 ~16 minecraft:cobblestone +fill ~29 ~0 ~17 ~29 ~1 ~17 minecraft:dirt +fill ~29 ~0 ~18 ~29 ~2 ~18 minecraft:oak_planks +fill ~29 ~0 ~19 ~29 ~1 ~19 minecraft:oak_planks +fill ~29 ~0 ~20 ~29 ~0 ~20 minecraft:stone +fill ~29 ~0 ~21 ~29 ~0 ~21 minecraft:oak_planks +fill ~29 ~0 ~22 ~29 ~1 ~22 minecraft:oak_planks +fill ~29 ~0 ~23 ~29 ~1 ~23 minecraft:dirt +fill ~29 ~0 ~24 ~29 ~1 ~24 minecraft:dirt +fill ~29 ~0 ~25 ~29 ~1 ~25 minecraft:cobblestone +fill ~29 ~0 ~26 ~29 ~2 ~26 minecraft:cobblestone +fill ~29 ~0 ~27 ~29 ~1 ~27 minecraft:dirt +fill ~29 ~0 ~28 ~29 ~1 ~28 minecraft:stone +fill ~29 ~0 ~29 ~29 ~1 ~29 minecraft:dirt diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/orientation.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/orientation.mcfunction new file mode 100644 index 0000000..68b4cf7 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/orientation.mcfunction @@ -0,0 +1,40 @@ +setblock ~2 ~0 ~2 minecraft:oak_stairs[facing=north,half=bottom] +setblock ~4 ~0 ~2 minecraft:oak_stairs[facing=south,half=bottom] +setblock ~6 ~0 ~2 minecraft:oak_stairs[facing=east,half=bottom] +setblock ~8 ~0 ~2 minecraft:oak_stairs[facing=west,half=bottom] +setblock ~2 ~0 ~4 minecraft:oak_stairs[facing=north,half=top] +setblock ~4 ~0 ~4 minecraft:oak_stairs[facing=south,half=top] +setblock ~6 ~0 ~4 minecraft:oak_stairs[facing=east,half=top] +setblock ~8 ~0 ~4 minecraft:oak_stairs[facing=west,half=top] +setblock ~2 ~0 ~6 minecraft:oak_slab[type=bottom] +setblock ~4 ~0 ~6 minecraft:oak_slab[type=top] +setblock ~6 ~0 ~6 minecraft:oak_slab[type=double] +setblock ~2 ~0 ~8 minecraft:oak_log[axis=x] +setblock ~10 ~0 ~8 minecraft:stripped_birch_log[axis=x] +setblock ~4 ~0 ~8 minecraft:oak_log[axis=y] +setblock ~12 ~0 ~8 minecraft:stripped_birch_log[axis=y] +setblock ~6 ~0 ~8 minecraft:oak_log[axis=z] +setblock ~14 ~0 ~8 minecraft:stripped_birch_log[axis=z] +setblock ~2 ~0 ~10 minecraft:white_glazed_terracotta[facing=north] +setblock ~10 ~0 ~10 minecraft:carved_pumpkin[facing=north] +setblock ~18 ~0 ~10 minecraft:furnace[facing=north] +setblock ~4 ~0 ~10 minecraft:white_glazed_terracotta[facing=south] +setblock ~12 ~0 ~10 minecraft:carved_pumpkin[facing=south] +setblock ~20 ~0 ~10 minecraft:furnace[facing=south] +setblock ~6 ~0 ~10 minecraft:white_glazed_terracotta[facing=east] +setblock ~14 ~0 ~10 minecraft:carved_pumpkin[facing=east] +setblock ~22 ~0 ~10 minecraft:furnace[facing=east] +setblock ~8 ~0 ~10 minecraft:white_glazed_terracotta[facing=west] +setblock ~16 ~0 ~10 minecraft:carved_pumpkin[facing=west] +setblock ~24 ~0 ~10 minecraft:furnace[facing=west] +setblock ~2 ~0 ~12 minecraft:piston[facing=up] +setblock ~10 ~0 ~12 minecraft:barrel[facing=up] +setblock ~4 ~0 ~12 minecraft:piston[facing=down] +setblock ~12 ~0 ~12 minecraft:barrel[facing=down] +setblock ~6 ~0 ~12 minecraft:piston[facing=north] +setblock ~14 ~0 ~12 minecraft:barrel[facing=north] +setblock ~8 ~0 ~12 minecraft:piston[facing=east] +setblock ~16 ~0 ~12 minecraft:barrel[facing=east] +fill ~2 ~0 ~14 ~12 ~0 ~16 minecraft:grass_block +fill ~14 ~0 ~14 ~20 ~0 ~16 minecraft:mycelium +fill ~22 ~0 ~14 ~29 ~0 ~16 minecraft:snow_block diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/pillars.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/pillars.mcfunction new file mode 100644 index 0000000..ce3f0ff --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/pillars.mcfunction @@ -0,0 +1,197 @@ +fill ~2 ~0 ~2 ~2 ~5 ~2 minecraft:stone +fill ~2 ~0 ~4 ~2 ~5 ~4 minecraft:stone +fill ~2 ~0 ~6 ~2 ~1 ~6 minecraft:stone +fill ~2 ~0 ~8 ~2 ~0 ~8 minecraft:stone +fill ~2 ~0 ~10 ~2 ~4 ~10 minecraft:stone +fill ~2 ~0 ~12 ~2 ~3 ~12 minecraft:stone +fill ~2 ~0 ~14 ~2 ~0 ~14 minecraft:stone +fill ~2 ~0 ~16 ~2 ~4 ~16 minecraft:stone +fill ~2 ~0 ~18 ~2 ~4 ~18 minecraft:stone +fill ~2 ~0 ~20 ~2 ~5 ~20 minecraft:smooth_stone +fill ~2 ~0 ~22 ~2 ~3 ~22 minecraft:stone +fill ~2 ~0 ~24 ~2 ~4 ~24 minecraft:stone +fill ~2 ~0 ~26 ~2 ~0 ~26 minecraft:smooth_stone +fill ~2 ~0 ~28 ~2 ~1 ~28 minecraft:stone +fill ~4 ~0 ~2 ~4 ~2 ~2 minecraft:stone +fill ~4 ~0 ~4 ~4 ~1 ~4 minecraft:smooth_stone +fill ~4 ~0 ~6 ~4 ~2 ~6 minecraft:stone +fill ~4 ~0 ~8 ~4 ~3 ~8 minecraft:stone +fill ~4 ~0 ~10 ~4 ~2 ~10 minecraft:stone +fill ~4 ~0 ~12 ~4 ~0 ~12 minecraft:smooth_stone +fill ~4 ~0 ~14 ~4 ~4 ~14 minecraft:stone +fill ~4 ~0 ~16 ~4 ~3 ~16 minecraft:stone +fill ~4 ~0 ~18 ~4 ~2 ~18 minecraft:smooth_stone +fill ~4 ~0 ~20 ~4 ~4 ~20 minecraft:smooth_stone +fill ~4 ~0 ~22 ~4 ~2 ~22 minecraft:stone +fill ~4 ~0 ~24 ~4 ~5 ~24 minecraft:stone +fill ~4 ~0 ~26 ~4 ~5 ~26 minecraft:stone +fill ~4 ~0 ~28 ~4 ~2 ~28 minecraft:smooth_stone +fill ~6 ~0 ~2 ~6 ~1 ~2 minecraft:smooth_stone +fill ~6 ~0 ~4 ~6 ~3 ~4 minecraft:stone +fill ~6 ~0 ~6 ~6 ~5 ~6 minecraft:smooth_stone +fill ~6 ~0 ~8 ~6 ~1 ~8 minecraft:stone +fill ~6 ~0 ~10 ~6 ~1 ~10 minecraft:stone +fill ~6 ~0 ~12 ~6 ~5 ~12 minecraft:smooth_stone +fill ~6 ~0 ~14 ~6 ~5 ~14 minecraft:stone +fill ~6 ~0 ~16 ~6 ~5 ~16 minecraft:stone +fill ~6 ~0 ~18 ~6 ~5 ~18 minecraft:stone +fill ~6 ~0 ~20 ~6 ~3 ~20 minecraft:stone +fill ~6 ~0 ~22 ~6 ~5 ~22 minecraft:stone +fill ~6 ~0 ~24 ~6 ~1 ~24 minecraft:stone +fill ~6 ~0 ~26 ~6 ~0 ~26 minecraft:stone +fill ~6 ~0 ~28 ~6 ~0 ~28 minecraft:smooth_stone +fill ~8 ~0 ~2 ~8 ~3 ~2 minecraft:stone +fill ~8 ~0 ~4 ~8 ~1 ~4 minecraft:smooth_stone +fill ~8 ~0 ~6 ~8 ~4 ~6 minecraft:smooth_stone +fill ~8 ~0 ~8 ~8 ~2 ~8 minecraft:stone +fill ~8 ~0 ~10 ~8 ~3 ~10 minecraft:stone +fill ~8 ~0 ~12 ~8 ~5 ~12 minecraft:stone +fill ~8 ~0 ~14 ~8 ~2 ~14 minecraft:stone +fill ~8 ~0 ~16 ~8 ~5 ~16 minecraft:stone +fill ~8 ~0 ~18 ~8 ~2 ~18 minecraft:smooth_stone +fill ~8 ~0 ~20 ~8 ~3 ~20 minecraft:smooth_stone +fill ~8 ~0 ~22 ~8 ~3 ~22 minecraft:stone +fill ~8 ~0 ~24 ~8 ~1 ~24 minecraft:stone +fill ~8 ~0 ~26 ~8 ~0 ~26 minecraft:smooth_stone +fill ~8 ~0 ~28 ~8 ~0 ~28 minecraft:stone +fill ~10 ~0 ~2 ~10 ~1 ~2 minecraft:smooth_stone +fill ~10 ~0 ~4 ~10 ~3 ~4 minecraft:stone +fill ~10 ~0 ~6 ~10 ~3 ~6 minecraft:stone +fill ~10 ~0 ~8 ~10 ~3 ~8 minecraft:stone +fill ~10 ~0 ~10 ~10 ~4 ~10 minecraft:smooth_stone +fill ~10 ~0 ~12 ~10 ~0 ~12 minecraft:stone +fill ~10 ~0 ~14 ~10 ~0 ~14 minecraft:stone +fill ~10 ~0 ~16 ~10 ~4 ~16 minecraft:smooth_stone +fill ~10 ~0 ~18 ~10 ~5 ~18 minecraft:stone +fill ~10 ~0 ~20 ~10 ~2 ~20 minecraft:stone +fill ~10 ~0 ~22 ~10 ~3 ~22 minecraft:stone +fill ~10 ~0 ~24 ~10 ~5 ~24 minecraft:smooth_stone +fill ~10 ~0 ~26 ~10 ~2 ~26 minecraft:smooth_stone +fill ~10 ~0 ~28 ~10 ~1 ~28 minecraft:stone +fill ~12 ~0 ~2 ~12 ~0 ~2 minecraft:smooth_stone +fill ~12 ~0 ~4 ~12 ~2 ~4 minecraft:smooth_stone +fill ~12 ~0 ~6 ~12 ~4 ~6 minecraft:stone +fill ~12 ~0 ~8 ~12 ~1 ~8 minecraft:stone +fill ~12 ~0 ~10 ~12 ~1 ~10 minecraft:stone +fill ~12 ~0 ~12 ~12 ~4 ~12 minecraft:smooth_stone +fill ~12 ~0 ~14 ~12 ~4 ~14 minecraft:stone +fill ~12 ~0 ~16 ~12 ~0 ~16 minecraft:stone +fill ~12 ~0 ~18 ~12 ~2 ~18 minecraft:smooth_stone +fill ~12 ~0 ~20 ~12 ~2 ~20 minecraft:stone +fill ~12 ~0 ~22 ~12 ~1 ~22 minecraft:smooth_stone +fill ~12 ~0 ~24 ~12 ~0 ~24 minecraft:stone +fill ~12 ~0 ~26 ~12 ~3 ~26 minecraft:smooth_stone +fill ~12 ~0 ~28 ~12 ~4 ~28 minecraft:smooth_stone +fill ~14 ~0 ~2 ~14 ~1 ~2 minecraft:stone +fill ~14 ~0 ~4 ~14 ~4 ~4 minecraft:stone +fill ~14 ~0 ~6 ~14 ~4 ~6 minecraft:smooth_stone +fill ~14 ~0 ~8 ~14 ~3 ~8 minecraft:smooth_stone +fill ~14 ~0 ~10 ~14 ~4 ~10 minecraft:smooth_stone +fill ~14 ~0 ~12 ~14 ~5 ~12 minecraft:stone +fill ~14 ~0 ~14 ~14 ~2 ~14 minecraft:stone +fill ~14 ~0 ~16 ~14 ~5 ~16 minecraft:stone +fill ~14 ~0 ~18 ~14 ~3 ~18 minecraft:smooth_stone +fill ~14 ~0 ~20 ~14 ~3 ~20 minecraft:stone +fill ~14 ~0 ~22 ~14 ~1 ~22 minecraft:stone +fill ~14 ~0 ~24 ~14 ~0 ~24 minecraft:stone +fill ~14 ~0 ~26 ~14 ~1 ~26 minecraft:stone +fill ~14 ~0 ~28 ~14 ~0 ~28 minecraft:stone +fill ~16 ~0 ~2 ~16 ~5 ~2 minecraft:stone +fill ~16 ~0 ~4 ~16 ~0 ~4 minecraft:smooth_stone +fill ~16 ~0 ~6 ~16 ~2 ~6 minecraft:stone +fill ~16 ~0 ~8 ~16 ~1 ~8 minecraft:stone +fill ~16 ~0 ~10 ~16 ~3 ~10 minecraft:stone +fill ~16 ~0 ~12 ~16 ~1 ~12 minecraft:smooth_stone +fill ~16 ~0 ~14 ~16 ~4 ~14 minecraft:stone +fill ~16 ~0 ~16 ~16 ~1 ~16 minecraft:smooth_stone +fill ~16 ~0 ~18 ~16 ~3 ~18 minecraft:stone +fill ~16 ~0 ~20 ~16 ~0 ~20 minecraft:stone +fill ~16 ~0 ~22 ~16 ~2 ~22 minecraft:stone +fill ~16 ~0 ~24 ~16 ~3 ~24 minecraft:smooth_stone +fill ~16 ~0 ~26 ~16 ~0 ~26 minecraft:stone +fill ~16 ~0 ~28 ~16 ~5 ~28 minecraft:stone +fill ~18 ~0 ~2 ~18 ~3 ~2 minecraft:smooth_stone +fill ~18 ~0 ~4 ~18 ~0 ~4 minecraft:stone +fill ~18 ~0 ~6 ~18 ~1 ~6 minecraft:stone +fill ~18 ~0 ~8 ~18 ~1 ~8 minecraft:stone +fill ~18 ~0 ~10 ~18 ~2 ~10 minecraft:stone +fill ~18 ~0 ~12 ~18 ~0 ~12 minecraft:stone +fill ~18 ~0 ~14 ~18 ~4 ~14 minecraft:stone +fill ~18 ~0 ~16 ~18 ~5 ~16 minecraft:smooth_stone +fill ~18 ~0 ~18 ~18 ~0 ~18 minecraft:smooth_stone +fill ~18 ~0 ~20 ~18 ~1 ~20 minecraft:stone +fill ~18 ~0 ~22 ~18 ~3 ~22 minecraft:stone +fill ~18 ~0 ~24 ~18 ~3 ~24 minecraft:smooth_stone +fill ~18 ~0 ~26 ~18 ~1 ~26 minecraft:stone +fill ~18 ~0 ~28 ~18 ~3 ~28 minecraft:stone +fill ~20 ~0 ~2 ~20 ~3 ~2 minecraft:stone +fill ~20 ~0 ~4 ~20 ~5 ~4 minecraft:smooth_stone +fill ~20 ~0 ~6 ~20 ~4 ~6 minecraft:stone +fill ~20 ~0 ~8 ~20 ~3 ~8 minecraft:stone +fill ~20 ~0 ~10 ~20 ~2 ~10 minecraft:stone +fill ~20 ~0 ~12 ~20 ~0 ~12 minecraft:stone +fill ~20 ~0 ~14 ~20 ~4 ~14 minecraft:stone +fill ~20 ~0 ~16 ~20 ~2 ~16 minecraft:stone +fill ~20 ~0 ~18 ~20 ~4 ~18 minecraft:stone +fill ~20 ~0 ~20 ~20 ~4 ~20 minecraft:stone +fill ~20 ~0 ~22 ~20 ~4 ~22 minecraft:stone +fill ~20 ~0 ~24 ~20 ~1 ~24 minecraft:stone +fill ~20 ~0 ~26 ~20 ~0 ~26 minecraft:stone +fill ~20 ~0 ~28 ~20 ~1 ~28 minecraft:stone +fill ~22 ~0 ~2 ~22 ~4 ~2 minecraft:stone +fill ~22 ~0 ~4 ~22 ~4 ~4 minecraft:stone +fill ~22 ~0 ~6 ~22 ~0 ~6 minecraft:stone +fill ~22 ~0 ~8 ~22 ~4 ~8 minecraft:stone +fill ~22 ~0 ~10 ~22 ~2 ~10 minecraft:smooth_stone +fill ~22 ~0 ~12 ~22 ~1 ~12 minecraft:stone +fill ~22 ~0 ~14 ~22 ~2 ~14 minecraft:stone +fill ~22 ~0 ~16 ~22 ~3 ~16 minecraft:stone +fill ~22 ~0 ~18 ~22 ~5 ~18 minecraft:stone +fill ~22 ~0 ~20 ~22 ~2 ~20 minecraft:smooth_stone +fill ~22 ~0 ~22 ~22 ~0 ~22 minecraft:stone +fill ~22 ~0 ~24 ~22 ~4 ~24 minecraft:smooth_stone +fill ~22 ~0 ~26 ~22 ~0 ~26 minecraft:stone +fill ~22 ~0 ~28 ~22 ~1 ~28 minecraft:stone +fill ~24 ~0 ~2 ~24 ~1 ~2 minecraft:smooth_stone +fill ~24 ~0 ~4 ~24 ~0 ~4 minecraft:smooth_stone +fill ~24 ~0 ~6 ~24 ~2 ~6 minecraft:stone +fill ~24 ~0 ~8 ~24 ~3 ~8 minecraft:smooth_stone +fill ~24 ~0 ~10 ~24 ~5 ~10 minecraft:stone +fill ~24 ~0 ~12 ~24 ~5 ~12 minecraft:stone +fill ~24 ~0 ~14 ~24 ~5 ~14 minecraft:smooth_stone +fill ~24 ~0 ~16 ~24 ~2 ~16 minecraft:smooth_stone +fill ~24 ~0 ~18 ~24 ~0 ~18 minecraft:smooth_stone +fill ~24 ~0 ~20 ~24 ~1 ~20 minecraft:stone +fill ~24 ~0 ~22 ~24 ~0 ~22 minecraft:smooth_stone +fill ~24 ~0 ~24 ~24 ~1 ~24 minecraft:stone +fill ~24 ~0 ~26 ~24 ~4 ~26 minecraft:stone +fill ~24 ~0 ~28 ~24 ~2 ~28 minecraft:stone +fill ~26 ~0 ~2 ~26 ~5 ~2 minecraft:smooth_stone +fill ~26 ~0 ~4 ~26 ~4 ~4 minecraft:stone +fill ~26 ~0 ~6 ~26 ~0 ~6 minecraft:stone +fill ~26 ~0 ~8 ~26 ~3 ~8 minecraft:smooth_stone +fill ~26 ~0 ~10 ~26 ~0 ~10 minecraft:stone +fill ~26 ~0 ~12 ~26 ~1 ~12 minecraft:stone +fill ~26 ~0 ~14 ~26 ~2 ~14 minecraft:stone +fill ~26 ~0 ~16 ~26 ~3 ~16 minecraft:stone +fill ~26 ~0 ~18 ~26 ~3 ~18 minecraft:stone +fill ~26 ~0 ~20 ~26 ~0 ~20 minecraft:stone +fill ~26 ~0 ~22 ~26 ~5 ~22 minecraft:smooth_stone +fill ~26 ~0 ~24 ~26 ~4 ~24 minecraft:stone +fill ~26 ~0 ~26 ~26 ~2 ~26 minecraft:stone +fill ~26 ~0 ~28 ~26 ~1 ~28 minecraft:stone +fill ~28 ~0 ~2 ~28 ~0 ~2 minecraft:stone +fill ~28 ~0 ~4 ~28 ~0 ~4 minecraft:smooth_stone +fill ~28 ~0 ~6 ~28 ~1 ~6 minecraft:stone +fill ~28 ~0 ~8 ~28 ~5 ~8 minecraft:stone +fill ~28 ~0 ~10 ~28 ~4 ~10 minecraft:smooth_stone +fill ~28 ~0 ~12 ~28 ~3 ~12 minecraft:smooth_stone +fill ~28 ~0 ~14 ~28 ~5 ~14 minecraft:stone +fill ~28 ~0 ~16 ~28 ~1 ~16 minecraft:smooth_stone +fill ~28 ~0 ~18 ~28 ~1 ~18 minecraft:smooth_stone +fill ~28 ~0 ~20 ~28 ~0 ~20 minecraft:stone +fill ~28 ~0 ~22 ~28 ~2 ~22 minecraft:smooth_stone +fill ~28 ~0 ~24 ~28 ~3 ~24 minecraft:smooth_stone +fill ~28 ~0 ~26 ~28 ~5 ~26 minecraft:smooth_stone +fill ~28 ~0 ~28 ~28 ~2 ~28 minecraft:stone +fill ~0 ~0 ~0 ~31 ~0 ~31 minecraft:smooth_stone keep diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/pyramid.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/pyramid.mcfunction new file mode 100644 index 0000000..a179b44 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/pyramid.mcfunction @@ -0,0 +1,8 @@ +fill ~0 ~0 ~0 ~31 ~0 ~31 minecraft:grass_block +fill ~2 ~1 ~2 ~29 ~1 ~29 minecraft:stone +fill ~4 ~2 ~4 ~27 ~2 ~27 minecraft:grass_block +fill ~6 ~3 ~6 ~25 ~3 ~25 minecraft:stone +fill ~8 ~4 ~8 ~23 ~4 ~23 minecraft:grass_block +fill ~10 ~5 ~10 ~21 ~5 ~21 minecraft:stone +fill ~12 ~6 ~12 ~19 ~6 ~19 minecraft:grass_block +fill ~14 ~7 ~14 ~17 ~7 ~17 minecraft:stone diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/roof.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/roof.mcfunction new file mode 100644 index 0000000..e932b49 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/roof.mcfunction @@ -0,0 +1 @@ +fill ~0 ~12 ~0 ~31 ~12 ~31 minecraft:stone diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/slab_block.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/slab_block.mcfunction new file mode 100644 index 0000000..fbe7bbb --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/slab_block.mcfunction @@ -0,0 +1,2 @@ +fill ~0 ~0 ~0 ~31 ~3 ~31 minecraft:cobblestone +fill ~0 ~4 ~0 ~31 ~4 ~31 minecraft:mossy_cobblestone diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/walls.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/walls.mcfunction new file mode 100644 index 0000000..960a7e2 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/walls.mcfunction @@ -0,0 +1,184 @@ +fill ~2 ~0 ~2 ~29 ~13 ~2 minecraft:stone_bricks +setblock ~2 ~0 ~12 minecraft:stone +setblock ~2 ~1 ~12 minecraft:andesite +setblock ~2 ~2 ~12 minecraft:stone +setblock ~2 ~3 ~12 minecraft:andesite +setblock ~2 ~4 ~12 minecraft:stone +setblock ~2 ~5 ~12 minecraft:andesite +setblock ~2 ~6 ~12 minecraft:stone +setblock ~2 ~7 ~12 minecraft:andesite +setblock ~2 ~8 ~12 minecraft:stone +setblock ~2 ~9 ~12 minecraft:andesite +setblock ~2 ~10 ~12 minecraft:stone +setblock ~2 ~11 ~12 minecraft:andesite +setblock ~2 ~12 ~12 minecraft:stone +setblock ~2 ~13 ~12 minecraft:andesite +setblock ~3 ~0 ~12 minecraft:andesite +setblock ~3 ~1 ~12 minecraft:stone +setblock ~3 ~2 ~12 minecraft:andesite +setblock ~3 ~3 ~12 minecraft:stone +setblock ~3 ~4 ~12 minecraft:andesite +setblock ~3 ~5 ~12 minecraft:stone +setblock ~3 ~6 ~12 minecraft:andesite +setblock ~3 ~7 ~12 minecraft:stone +setblock ~3 ~8 ~12 minecraft:andesite +setblock ~3 ~9 ~12 minecraft:stone +setblock ~3 ~10 ~12 minecraft:andesite +setblock ~3 ~11 ~12 minecraft:stone +setblock ~3 ~12 ~12 minecraft:andesite +setblock ~3 ~13 ~12 minecraft:stone +setblock ~4 ~0 ~12 minecraft:stone +setblock ~4 ~1 ~12 minecraft:andesite +setblock ~4 ~2 ~12 minecraft:stone +setblock ~4 ~3 ~12 minecraft:andesite +setblock ~4 ~4 ~12 minecraft:stone +setblock ~4 ~5 ~12 minecraft:andesite +setblock ~4 ~6 ~12 minecraft:stone +setblock ~4 ~7 ~12 minecraft:andesite +setblock ~4 ~8 ~12 minecraft:stone +setblock ~4 ~9 ~12 minecraft:andesite +setblock ~4 ~10 ~12 minecraft:stone +setblock ~4 ~11 ~12 minecraft:andesite +setblock ~4 ~12 ~12 minecraft:stone +setblock ~4 ~13 ~12 minecraft:andesite +setblock ~5 ~0 ~12 minecraft:andesite +setblock ~5 ~1 ~12 minecraft:stone +setblock ~5 ~2 ~12 minecraft:andesite +setblock ~5 ~3 ~12 minecraft:stone +setblock ~5 ~4 ~12 minecraft:andesite +setblock ~5 ~5 ~12 minecraft:stone +setblock ~5 ~6 ~12 minecraft:andesite +setblock ~5 ~7 ~12 minecraft:stone +setblock ~5 ~8 ~12 minecraft:andesite +setblock ~5 ~9 ~12 minecraft:stone +setblock ~5 ~10 ~12 minecraft:andesite +setblock ~5 ~11 ~12 minecraft:stone +setblock ~5 ~12 ~12 minecraft:andesite +setblock ~5 ~13 ~12 minecraft:stone +setblock ~6 ~0 ~12 minecraft:stone +setblock ~6 ~1 ~12 minecraft:andesite +setblock ~6 ~2 ~12 minecraft:stone +setblock ~6 ~3 ~12 minecraft:andesite +setblock ~6 ~4 ~12 minecraft:stone +setblock ~6 ~5 ~12 minecraft:andesite +setblock ~6 ~6 ~12 minecraft:stone +setblock ~6 ~7 ~12 minecraft:andesite +setblock ~6 ~8 ~12 minecraft:stone +setblock ~6 ~9 ~12 minecraft:andesite +setblock ~6 ~10 ~12 minecraft:stone +setblock ~6 ~11 ~12 minecraft:andesite +setblock ~6 ~12 ~12 minecraft:stone +setblock ~6 ~13 ~12 minecraft:andesite +setblock ~7 ~0 ~12 minecraft:andesite +setblock ~7 ~1 ~12 minecraft:stone +setblock ~7 ~2 ~12 minecraft:andesite +setblock ~7 ~3 ~12 minecraft:stone +setblock ~7 ~4 ~12 minecraft:andesite +setblock ~7 ~5 ~12 minecraft:stone +setblock ~7 ~6 ~12 minecraft:andesite +setblock ~7 ~7 ~12 minecraft:stone +setblock ~7 ~8 ~12 minecraft:andesite +setblock ~7 ~9 ~12 minecraft:stone +setblock ~7 ~10 ~12 minecraft:andesite +setblock ~7 ~11 ~12 minecraft:stone +setblock ~7 ~12 ~12 minecraft:andesite +setblock ~7 ~13 ~12 minecraft:stone +setblock ~8 ~0 ~12 minecraft:stone +setblock ~8 ~1 ~12 minecraft:andesite +setblock ~8 ~2 ~12 minecraft:stone +setblock ~8 ~3 ~12 minecraft:andesite +setblock ~8 ~4 ~12 minecraft:stone +setblock ~8 ~5 ~12 minecraft:andesite +setblock ~8 ~6 ~12 minecraft:stone +setblock ~8 ~7 ~12 minecraft:andesite +setblock ~8 ~8 ~12 minecraft:stone +setblock ~8 ~9 ~12 minecraft:andesite +setblock ~8 ~10 ~12 minecraft:stone +setblock ~8 ~11 ~12 minecraft:andesite +setblock ~8 ~12 ~12 minecraft:stone +setblock ~8 ~13 ~12 minecraft:andesite +setblock ~9 ~0 ~12 minecraft:andesite +setblock ~9 ~1 ~12 minecraft:stone +setblock ~9 ~2 ~12 minecraft:andesite +setblock ~9 ~3 ~12 minecraft:stone +setblock ~9 ~4 ~12 minecraft:andesite +setblock ~9 ~5 ~12 minecraft:stone +setblock ~9 ~6 ~12 minecraft:andesite +setblock ~9 ~7 ~12 minecraft:stone +setblock ~9 ~8 ~12 minecraft:andesite +setblock ~9 ~9 ~12 minecraft:stone +setblock ~9 ~10 ~12 minecraft:andesite +setblock ~9 ~11 ~12 minecraft:stone +setblock ~9 ~12 ~12 minecraft:andesite +setblock ~9 ~13 ~12 minecraft:stone +setblock ~10 ~0 ~12 minecraft:stone +setblock ~10 ~1 ~12 minecraft:andesite +setblock ~10 ~2 ~12 minecraft:stone +setblock ~10 ~3 ~12 minecraft:andesite +setblock ~10 ~4 ~12 minecraft:stone +setblock ~10 ~5 ~12 minecraft:andesite +setblock ~10 ~6 ~12 minecraft:stone +setblock ~10 ~7 ~12 minecraft:andesite +setblock ~10 ~8 ~12 minecraft:stone +setblock ~10 ~9 ~12 minecraft:andesite +setblock ~10 ~10 ~12 minecraft:stone +setblock ~10 ~11 ~12 minecraft:andesite +setblock ~10 ~12 ~12 minecraft:stone +setblock ~10 ~13 ~12 minecraft:andesite +setblock ~11 ~0 ~12 minecraft:andesite +setblock ~11 ~1 ~12 minecraft:stone +setblock ~11 ~2 ~12 minecraft:andesite +setblock ~11 ~3 ~12 minecraft:stone +setblock ~11 ~4 ~12 minecraft:andesite +setblock ~11 ~5 ~12 minecraft:stone +setblock ~11 ~6 ~12 minecraft:andesite +setblock ~11 ~7 ~12 minecraft:stone +setblock ~11 ~8 ~12 minecraft:andesite +setblock ~11 ~9 ~12 minecraft:stone +setblock ~11 ~10 ~12 minecraft:andesite +setblock ~11 ~11 ~12 minecraft:stone +setblock ~11 ~12 ~12 minecraft:andesite +setblock ~11 ~13 ~12 minecraft:stone +setblock ~12 ~0 ~12 minecraft:stone +setblock ~12 ~1 ~12 minecraft:andesite +setblock ~12 ~2 ~12 minecraft:stone +setblock ~12 ~3 ~12 minecraft:andesite +setblock ~12 ~4 ~12 minecraft:stone +setblock ~12 ~5 ~12 minecraft:andesite +setblock ~12 ~6 ~12 minecraft:stone +setblock ~12 ~7 ~12 minecraft:andesite +setblock ~12 ~8 ~12 minecraft:stone +setblock ~12 ~9 ~12 minecraft:andesite +setblock ~12 ~10 ~12 minecraft:stone +setblock ~12 ~11 ~12 minecraft:andesite +setblock ~12 ~12 ~12 minecraft:stone +setblock ~12 ~13 ~12 minecraft:andesite +setblock ~13 ~0 ~12 minecraft:andesite +setblock ~13 ~1 ~12 minecraft:stone +setblock ~13 ~2 ~12 minecraft:andesite +setblock ~13 ~3 ~12 minecraft:stone +setblock ~13 ~4 ~12 minecraft:andesite +setblock ~13 ~5 ~12 minecraft:stone +setblock ~13 ~6 ~12 minecraft:andesite +setblock ~13 ~7 ~12 minecraft:stone +setblock ~13 ~8 ~12 minecraft:andesite +setblock ~13 ~9 ~12 minecraft:stone +setblock ~13 ~10 ~12 minecraft:andesite +setblock ~13 ~11 ~12 minecraft:stone +setblock ~13 ~12 ~12 minecraft:andesite +setblock ~13 ~13 ~12 minecraft:stone +fill ~14 ~0 ~12 ~29 ~13 ~12 minecraft:polished_andesite +fill ~2 ~0 ~22 ~29 ~0 ~22 minecraft:bricks +fill ~2 ~1 ~22 ~29 ~1 ~22 minecraft:sandstone +fill ~2 ~2 ~22 ~29 ~2 ~22 minecraft:deepslate_bricks +fill ~2 ~3 ~22 ~29 ~3 ~22 minecraft:bricks +fill ~2 ~4 ~22 ~29 ~4 ~22 minecraft:sandstone +fill ~2 ~5 ~22 ~29 ~5 ~22 minecraft:deepslate_bricks +fill ~2 ~6 ~22 ~29 ~6 ~22 minecraft:bricks +fill ~2 ~7 ~22 ~29 ~7 ~22 minecraft:sandstone +fill ~2 ~8 ~22 ~29 ~8 ~22 minecraft:deepslate_bricks +fill ~2 ~9 ~22 ~29 ~9 ~22 minecraft:bricks +fill ~2 ~10 ~22 ~29 ~10 ~22 minecraft:sandstone +fill ~2 ~11 ~22 ~29 ~11 ~22 minecraft:deepslate_bricks +fill ~2 ~12 ~22 ~29 ~12 ~22 minecraft:bricks +fill ~2 ~13 ~22 ~29 ~13 ~22 minecraft:sandstone diff --git a/testing/greedy_test_pack/data/greedy_test/function/scene/water.mcfunction b/testing/greedy_test_pack/data/greedy_test/function/scene/water.mcfunction new file mode 100644 index 0000000..55fb972 --- /dev/null +++ b/testing/greedy_test_pack/data/greedy_test/function/scene/water.mcfunction @@ -0,0 +1,21 @@ +fill ~2 ~0 ~2 ~25 ~3 ~25 minecraft:stone_bricks +fill ~3 ~1 ~3 ~24 ~2 ~24 minecraft:water +fill ~26 ~0 ~2 ~26 ~5 ~8 minecraft:stone_bricks +setblock ~26 ~6 ~2 minecraft:water +fill ~27 ~0 ~2 ~31 ~0 ~8 minecraft:stone +setblock ~4 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~4 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~6 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~6 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~8 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~8 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~10 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~10 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~12 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~12 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~14 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~14 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~16 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~16 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] +setblock ~18 ~4 ~28 minecraft:oak_slab[type=bottom,waterlogged=true] +setblock ~18 ~4 ~30 minecraft:oak_stairs[facing=east,waterlogged=true] diff --git a/testing/greedy_test_pack/pack.mcmeta b/testing/greedy_test_pack/pack.mcmeta new file mode 100644 index 0000000..81574ae --- /dev/null +++ b/testing/greedy_test_pack/pack.mcmeta @@ -0,0 +1,15 @@ +{ + "pack": { + "description": "Greedy Meshing test scenes", + "pack_format": 48, + "supported_formats": { + "min_inclusive": 48, + "max_inclusive": 81 + }, + "min_format": 48, + "max_format": [ + 121, + 0 + ] + } +} \ No newline at end of file From ef0f2551accde074f918b662e72e14db5ca0112f Mon Sep 17 00:00:00 2001 From: SierraNevada <111426360+programmer1o1@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:33:56 +0800 Subject: [PATCH 3/3] Parse Flat Lighting config with Gson and reload only on change isFlatLighting() matched the raw text with replace/contains, which broke on tabs or newlines in the JSON. It now parses the file with Gson and re-reads it only when its modified time changes, checked at most once a second. Flat Lighting defaults cardinalLighting to true and only writes its config after the option is toggled, so a missing, unreadable or key-less file still means "not flat". Also imports Files instead of using the fully qualified name. --- .../client/GreedyRuntimeState.java | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/client/java/hi/sierra/greedy_meshing/client/GreedyRuntimeState.java b/src/client/java/hi/sierra/greedy_meshing/client/GreedyRuntimeState.java index ac5a3ed..262bc35 100644 --- a/src/client/java/hi/sierra/greedy_meshing/client/GreedyRuntimeState.java +++ b/src/client/java/hi/sierra/greedy_meshing/client/GreedyRuntimeState.java @@ -5,7 +5,12 @@ import net.minecraft.core.BlockPos; import hi.sierra.greedy_meshing.GreedyConfig; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; + import java.lang.reflect.Method; +import java.nio.file.Files; +import java.nio.file.Path; import java.util.Locale; public final class GreedyRuntimeState { @@ -27,8 +32,14 @@ private GreedyRuntimeState() { private static final boolean FLAT_LIGHTING_LOADED = FabricLoader.getInstance().isModLoaded("flat-lighting"); private static volatile boolean flatLighting; private static volatile long flatLightingCheckNanos; + private static volatile long flatLightingModified = Long.MIN_VALUE; - /** True when Flat Lighting is installed and its cardinal lighting is off (reads its config only, re-read at most once a second). */ + /** + * True when Flat Lighting is installed and its cardinal lighting is off (reads its config only). + * The file is stat'ed at most once a second and only re-parsed when it changed. Flat Lighting + * defaults cardinalLighting to true and only writes the file once the option is toggled, so a + * missing, unreadable or key-less file means "not flat". + */ public static boolean isFlatLighting() { if (!FLAT_LIGHTING_LOADED) { return false; @@ -36,10 +47,16 @@ public static boolean isFlatLighting() { long now = System.nanoTime(); if (now - flatLightingCheckNanos > 1_000_000_000L) { flatLightingCheckNanos = now; + Path file = FabricLoader.getInstance().getConfigDir().resolve("flat-lighting.json"); try { - flatLighting = java.nio.file.Files.readString(FabricLoader.getInstance().getConfigDir().resolve("flat-lighting.json")) - .replace(" ", "").contains("\"cardinalLighting\":false"); + long modified = Files.getLastModifiedTime(file).toMillis(); + if (modified != flatLightingModified) { + flatLightingModified = modified; + JsonObject json = JsonParser.parseString(Files.readString(file)).getAsJsonObject(); + flatLighting = json.has("cardinalLighting") && !json.get("cardinalLighting").getAsBoolean(); + } } catch (Exception e) { + flatLightingModified = Long.MIN_VALUE; flatLighting = false; } }