Commit Graph

3685 Commits

Author SHA1 Message Date
Ludovic Marie 9c20cc7bb2 Fill dungeon chests and spawners and keep block entities across same-block updates
A monster room's chest took its loot table and seed from the level random in vanilla, and its spawner got the chosen mob's spawn data, but the worldgen world ignored both, so the random sequence and the block entities diverged. A block entity also now survives a set of the same kind of block (a waterlogging chest in a ruined portal), as in a vanilla proto chunk. The chunk harness stops reporting default block entities and vault reward tables as differences.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 08:09:01 +02:00
Ludovic Marie 1ec6f0f928 Match vanilla save omissions and refuse old DataVersions
The vanilla differential run showed Horizon writing fields vanilla leaves out: empty scoreboard parts, recipe book settings at their default, an empty warden anger list. These are now omitted, and mobs loaded without saved equipment no longer receive the default bow. Opening a world whose level.dat is older than 26.3 now fails with a message naming tools/upgrade_world.py, which runs vanilla's own forceUpgrade on a copy. The roundtrip harness lists the timing-dependent differences it tolerates, and horizon-ctl waits up to five minutes for the control socket on a loaded machine.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 08:05:35 +02:00
Ludovic Marie cedae6609d Route inventory clicks, drags, double clicks, hotkeys and drops through the menu engine
On the player inventory, crafting table, chest family, hopper, dispenser and furnace screens, holding a stack and dragging across slots now splits it (left even, right one each), a quick second click gathers matching stacks, number keys and F swap with the hotbar or off hand, and Q or Ctrl+Q throws one or the whole stack, all through the same engine the click harness checks against vanilla. Other screens keep their own click handling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 08:02:24 +02:00
Ludovic Marie d4410c3500 Merge branch 'main' into worktree-agent-aa7e89ef91d408a4e 2026-10-10 07:33:35 +02:00
Ludovic Marie 0e0e94111f Add LAN discovery listing
The multiplayer screen listens on the vanilla multicast group 224.0.2.60:4445 and lists LAN worlds announced with the [MOTD]/[AD] format, letting the player join them directly.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:33:35 +02:00
Ludovic Marie 145d54c542 Use Section::unpack and per-section biomes in the LAN chunk encoder
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:33:13 +02:00
Ludovic Marie 762ad298e6 Finish the pending menu and storage work
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:33:13 +02:00
Ludovic Marie 40802dd9af Merge worktree-agent-abc3c79c07e209fba 2026-10-10 07:33:10 +02:00
Ludovic Marie 2e96a8372e Merge worktree-agent-a45c92d353e101334 2026-10-10 07:33:10 +02:00
Ludovic Marie e71f091362 Merge worktree-agent-a1352eba6412466b8 2026-10-10 07:33:10 +02:00
Ludovic Marie b3b6e95835 Run inventory and crafting table shift-clicks through the menu engine
Shift-clicking an inventory, hotbar, armour or crafting grid slot now follows InventoryMenu and CraftingMenu quickMoveStack, including moving into the crafting grid, armour and off-hand slots and the repeat-until-unchanged loop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:31:26 +02:00
Ludovic Marie 0351c4d6c4 Run container shift-clicks through the verified menu engine
Shift-clicking in chests, barrels, shulker boxes, hoppers, droppers, dispensers and furnaces now builds the vanilla menu from the open container and the player inventory, applies quickMoveStack with the repeat-until-unchanged loop of doClick, and writes the slots back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:30:49 +02:00
Ludovic Marie 3318a04819 Add the crafter to the menu engine and click harness
The crafter menu follows CrafterMenu: slots refuse items while their disabled flag is set, and the result slot is non-interactive. Random disabled flags are part of the harness cases.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:30:07 +02:00
Ludovic Marie 5041496f08 Add the brewing stand to the menu engine and click harness
The brewing stand menu follows BrewingStandMenu: single-item potion slots, the ingredient and fuel slots with their quick move rules, checked against vanilla with potion bottles, ingredients and fuels in the random contents.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:29:00 +02:00
Ludovic Marie afb92f7c84 Fix the chunk oracle's enabled features so jigsaw final states parse
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:25:59 +02:00
Ludovic Marie 14f2057ccb Merge main into the mobs work
Merged local main into the mobs branch. Conflicts were in the mob event
enum (kept both LeashBreak and CureZombieVillager), the LAN and leads
module lists (kept all), horse NBT (chests are written for llamas,
donkeys and mules, with llama data kept), and chunk saving, which now
goes through mob_tree_nbt (main's passenger trees) with write_leash
applied inside it so leashes are still saved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:25:16 +02:00
Ludovic Marie 4a0d9ea01d Fix clippy findings in the menu, transformer and wiring code
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:16:12 +02:00
Ludovic Marie 7f23d4549b Merge main into interaction and inventory work
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:15:07 +02:00
Ludovic Marie f6e519097d Format the interaction work
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:14:42 +02:00
Ludovic Marie f49faf685c Use cauldron interactions in play
Right clicking a cauldron with a bucket, bottle, water potion, dyed armour, banner or dyed shulker box now applies the verified cauldron rules to the held stack, inventory and block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:14:26 +02:00
Ludovic Marie 7bd28cc6f1 Port the cauldron item interactions and test them against vanilla
Using a bucket, bottle, water potion, dyed armour, patterned banner or dyed shulker box on an empty, water, lava or powder snow cauldron follows CauldronInteractions, including the creative-mode stack rules of ItemUtils.createFilledResult and the underwater refusal for lava and powder snow. A harness runs every item against every cauldron state in vanilla's own useItemOn and compares the result, block writes, sounds, drops and inventory.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:13:50 +02:00
Ludovic Marie 988ebbf54c Merge branch 'main' into worktree-agent-afae8fa7e3c2bed72 2026-10-10 07:09:59 +02:00
Ludovic Marie f5fa9b5026 Add night vision and torch flicker to the lightmap and rebuild the health HUD
The lightmap now brightens with night vision and conduit water vision and flickers its block light like vanilla's extractor. The hearts, armour and food rows follow Hud.extractPlayerHealth: absorption rows, hardcore sprites, poison and wither tints, the regeneration hop, low-health shaking, the damage blink and hunger jitter, driven by vanilla's java.util.Random.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:09:59 +02:00
Ludovic Marie 353d849126 Match vanilla weather colours and dimension sky defaults
The environment differential harness now passes for every dimension, biome, time and weather level. Weather colour multipliers are floored to 8-bit channels as vanilla does. A biome without its own fog or sky colour falls back to its dimension's, which fixes the End's dark purple fog, and the missing cloud colour is transparent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:09:59 +02:00
Ludovic Marie 5ec93bf9e7 Use the block transformers for axes, hoes, shovels and honeycomb in play
Stripping, scraping, wax removal, tilling and path making now come from the data pack's transformers instead of hard coded block lists, so every copper variant, rooted dirt loot and the face restrictions behave like vanilla, and honeycomb waxes copper blocks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:09:48 +02:00
Ludovic Marie d900b2a8e6 Read the axe, hoe and shovel block transformers from the data pack
A new block transformer module evaluates the data pack's rule based state providers the way BlockTransformer.transformBlock does (matching blocks and tags, all-of, copy properties) and derives the waxed twin of a copper block from the wax-off transforms. A harness compares every transformer, block state, face and block above with vanilla's own providers and with HoneycombItem.getWaxed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:08:27 +02:00
Ludovic Marie 6405716829 Format block update fixture
Run cargo fmt over the block update fixture after merging main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:02:16 +02:00
Ludovic Marie 89630c80fe Port AbstractContainerMenu clicks and test them against vanilla menus
A pure menu engine now implements every click type (pickup, quick move, swap, clone, throw, the three quick craft drags, pickup all) for the player inventory, crafting table, chests, hopper, dispenser, shulker box and the furnaces, with armour, fuel, output and crafting result slot rules, the crafting result recompute and remainders, and Inventory.add. The new menu click harness runs thousands of randomized click sequences through vanilla's real menu classes and this engine and compares every slot, the carried stack, data slots and drops.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:01:09 +02:00
Ludovic Marie 3772ed871f Merge main into the mobs branch
Brings the llamas, breezes, sniffers, happy ghasts and copper golems on top of the raids, scoreboards, warden, sculk, creaking and golem-construction work already on main. Sniffer eggs now schedule their first hatch stage when placed, boosted on moss.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:58:50 +02:00
Ludovic Marie 3ce74d1351 Merge main into the game loop and input work
Brings the options, timer and mouse parity port on top of everything that landed on main (raids, scoreboards, warden, subtitles and more), keeping both sides in game.rs, clock.rs and settings.rs. The subtitle option test now expects vanilla's behaviour of keeping the default when notificationDisplayTime is out of range.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:58:30 +02:00
Ludovic Marie 302d96eeb1 Fix clippy findings in item models and pack mirroring
Rewrote a negated float comparison in the compass wobble check, merged two identical branches in the pack overlay mirroring, and replaced the empty item model test stub with small unit tests so the workspace passes clippy and tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:58:17 +02:00
Ludovic Marie ad4ae23b94 Merge branch 'main' into worktree-agent-aa7f8206a004fc51a 2026-10-10 06:40:42 +02:00
Ludovic Marie b77056d49d Merge branch 'main' into worktree-agent-abc3c79c07e209fba 2026-10-10 06:37:57 +02:00
Ludovic Marie aa810a8802 WIP: block update harness fixes
Work in progress on the block update differential harness fixtures and redstone/piston update fixes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:37:52 +02:00
Ludovic Marie ab0e243689 Merge main into worktree-agent-a3f604d3c8055fe6e 2026-10-10 06:24:04 +02:00
Ludovic Marie a5a1da739a Merge branch 'main' into worktree-agent-a45c92d353e101334 2026-10-10 06:20:08 +02:00
Ludovic Marie abb21704dd Add stopwatch command and execute if stopwatch
Adds the stopwatches store saved in data/minecraft/stopwatches.dat, the /stopwatch create, query, restart and remove commands, and the execute if stopwatch condition, with the parse tree and parse fixture updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:20:08 +02:00
Ludovic Marie f140ccc8ef Merge main into worktree-agent-ab89288e40e0a400d 2026-10-10 06:18:37 +02:00
Ludovic Marie fa3acf58b8 Add pack overlays and filter blocks (WIP)
Resource packs now honour pack.mcmeta overlay directories and filter block patterns when layering files over the vanilla resources.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:04:52 +02:00
Ludovic Marie a7e63b5c18 WIP: environment render parity harness
Work in progress on the environment rendering differential harness: a Rust fixture example, a vanilla oracle and the driver script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:02:13 +02:00
Ludovic Marie d34432cbfb WIP save changes
Work in progress on save syncing before merging main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:01:59 +02:00
Ludovic Marie 2209950220 WIP: paletted containers and mesher changes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:01:10 +02:00
Ludovic Marie 9acb2492a4 Merge main into agent branch 2026-10-10 06:01:00 +02:00
Ludovic Marie bce2872386 Tidy LAN level event forwarding
Forward level events to LAN players without redundant integer casts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:00:26 +02:00
Ludovic Marie 08a7ee9673 Merge main into save work
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:52:47 +02:00
Ludovic Marie 13b9dad522 Merge main into interaction and inventory work 2026-10-10 03:52:33 +02:00
Ludovic Marie 3d8bdf6b39 WIP: block update differential harness
Adds the vanilla updateShape/neighborChanged oracle, the Rust fixture example and the Python driver, plus a handle_neighbor_changed entry point on Behaviours.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:50:38 +02:00
Ludovic Marie 7fa9a83542 Add typed block entity NBT and save roundtrip harness (WIP)
Work in progress on typed block entity load/save and the save differential harness.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:50:14 +02:00
Ludovic Marie 872d13f431 Merge branch 'main' into worktree-agent-afae8fa7e3c2bed72 2026-10-10 03:49:37 +02:00
Ludovic Marie bec61f672a Merge branch 'main' into worktree-agent-a1352eba6412466b8 2026-10-10 03:49:13 +02:00