Commit Graph

4750 Commits

Author SHA1 Message Date
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 50084d03d4 Ignore sections above the noise height and NBT integer widths in the chunk harness
The Nether roof and End sky sections are all air in vanilla and Horizon keeps none, and structure templates keep their stored integer width while vanilla re-saves block entities with its own, so neither is a generation difference.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 07:00:31 +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 2ed4a4b06f WIP: chunk oracle tweak
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 06:00:58 +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 c9ad9869d9 Start the menu click oracle and tweak the interaction lab
Work in progress on the vanilla menu oracle adapter used by the upcoming menu click parity harness.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:49:56 +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
Ludovic Marie 62fe8a4465 Add item model definitions, baking and parity harness (WIP)
Work in progress on vanilla's item model pipeline in horizon-assets: definition parsing, resolution, generated model baking, special renderers and a differential harness against a Java oracle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:49:13 +02:00
Ludovic Marie 6837f486a5 Merge branch 'main' into worktree-agent-aa7f8206a004fc51a 2026-10-10 03:48:18 +02:00
Ludovic Marie a0e9605390 WIP: paletted containers and mesher changes
Work in progress before merging main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:48:16 +02:00
Ludovic Marie c45ca06d8e Merge branch 'main' into worktree-agent-aadb889c2eebe6c5b 2026-10-10 03:47:55 +02:00
Ludovic Marie 1d6b7b5a0c WIP: chunk parity structure fixes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:47:54 +02:00
Ludovic Marie 2c9045649f WIP passengers, mob gear enchantments, held blocks
Work in progress on riders, enchanted spawn gear and held block rendering.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:47:46 +02:00
Ludovic Marie 3eabcc6bd5 Add LAN containers, menu and host actions
Remote players can now open and click containers, and the host gets a LAN menu and action hooks, building on the first LAN server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:47:15 +02:00
Ludovic Marie e82bba3855 Build snow, iron and copper golems from blocks
A carved pumpkin or jack o'lantern placed on two snow blocks, on an iron T, or on a copper block now brings a golem to life: the pattern blocks vanish with break particles and a snow or iron golem appears; on copper the block turns into the matching copper chest facing the way the pumpkin did.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:46:40 +02:00
Ludovic Marie e0541ece83 Verify entity model animation against vanilla and fix what differed
A new Java oracle bakes every vanilla model layer, builds the model's own render state and runs the real setupAnim; tools/test_entity_model_parity.py replays the same states through Horizon's animation code and compares every part pose, visibility and the baked polygon sums (about 3700 cases over 125 layers). Fixes the harness found: model sine and cosine now use vanilla's quantised table, the creeper's swapped leg bindings, humanoid arm poses in vanilla order (held items no longer tilt mob arms, bows pose both arms last, crossbow charge, riding, crouching), swing weapon down, piglin ears and dancing, illager hats, arms and bow pose, zombified piglin ears, baby donkey head and legs, hoglin baby head, ravager neck, vex charging arms, feline sitting and lying poses including babies, camel and zombie/skeleton horse baby models, and new ports of the goat, polar bear, panda, llama, turtle, strider, snow golem, silverfish, endermite, parrot, bee, bat, armadillo, axolotl, frog, rabbit and fox models. Hidden parts are now an explicit flag instead of a zero scale, and skipDraw is supported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:44:46 +02:00
Ludovic Marie 5a5bdf6a9b Merge branch 'main' into worktree-agent-a45c92d353e101334 2026-10-10 03:43:23 +02:00
Ludovic Marie 6bde74957a Add the command parse differential harness
A Java oracle builds vanilla's real Brigadier command tree with the loaded registries and data-pack tags, exports the tree, and parses a corpus of command strings. The corpus is generated by walking that tree with valid and invalid samples for every argument type plus hand-written edge cases. A Rust example parses the same corpus with Horizon's dispatcher and the Python driver compares success, exact error text and cursor, and end-of-input completion suggestions, with tree-diff and mismatch summary helpers. Currently 79 percent of 39685 inputs match at permission level 4. Entity selector errors now rewind to the start of the input like vanilla.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 03:43:22 +02:00
Ludovic Marie 513004936d Keep container names and saddle components, order and search the recipe book like vanilla
Containers now remember a custom name: it is read and saved as CustomName, taken from the item when placed (including by dispensers), shown as the screen title of chests, furnaces, the brewing stand, hoppers, dispensers and the crafter, and given back to the dropped item when the block is broken. Saddles on pigs, striders and horses are kept as full item stacks instead of a flag, so their components survive taming, the horse menu, dispensers, saving and death drops. The recipe book lists dye, transmute (shulker box, bundle, map cloning) and tipped arrow recipes, searches the tooltip lines and ids of a collection's results the way the vanilla search tree does, and squeezes new recipes' tabs and buttons once, saving the pending recipes as toBeDisplayed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 14:17:24 +02:00
Ludovic Marie 708f70cbbd Merge main into the LAN branch 2026-10-09 14:13:45 +02:00
Ludovic Marie b99de58761 Open worlds to LAN
A world can now be opened to the local network from World Options in the pause menu (LAN on or off, port, command access, forcing the game mode, plus the default and personal game mode, cheats and difficulty), or with horizon-ctl lan open. The hosted world runs a server inside the game that speaks the vanilla 26.3 protocol: server list status, offline-mode login, the configuration phase with the synchronized registries and tags (sent as known-pack references to vanilla clients and in full to clients that know no packs), then the play state with chunks and light, time, weather, the player list, the host and other guests as visible players, mobs and dropped items, block changes, chat and keep-alives. Network I/O runs on its own threads and a world that is not open pays one check per tick. A vanilla 26.3 client and a second Horizon client were verified joining and seeing each other and the terrain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 14:12:31 +02:00
Ludovic Marie c1b96fe7ff Add happy ghasts
Happy ghast: an adult floats about, drifts toward a player holding snowballs or a harness, stays within 32 to 64 blocks of where it is, heals slowly (a point a second in rain) and takes a harness by interaction (shears take it off again, and it drops with the ghast); a harnessed adult can be ridden and flown with the movement keys, look direction and jump, and the rider lands on top when getting off. Ghastlings are smaller, follow players and adults, panic fast and grow up in 24000 ticks or faster with snowballs; a dried ghast block now hatches one. Harness and body models, tentacle animation, sounds and saving of the harness are in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 14:07:15 +02:00
Ludovic Marie 7cfb90538e WIP: options, timer, mouse (to be squashed) 2026-10-09 14:06:43 +02:00
Ludovic Marie 4b3858bb21 Merge main into the warden and sculk work 2026-10-09 14:05:35 +02:00
Ludovic Marie 69c7fd925e Port every crafting recipe type and test recipes against vanilla
The crafting module now matches shapeless recipes with a full bipartite assignment, shrinks shaped patterns like ShapedRecipePattern, keeps result components (suspicious stew effects), and implements the transmute, dye, imbue (tipped arrow), book cloning, firework rocket/star/fade, decorated pot, repair item, map extending, banner duplicate and shield decoration recipes with vanilla's matching and assembly. Crafting remainders now follow Item.craftRemainder only and are placed on the grid by recipe, so cloned books and duplicated banners stay. Stacks gain dyed colour, firework explosion, pot decorations, bundle contents, stew effects and map post-processing components, and their NBT now matches the codecs (defaults omitted, templates without count 1). A banner whose first layer was a rhombus was mistaken for the raid banner; that is fixed.

tools/test_recipe_parity.py drives vanilla's RecipeManager (new VanillaRecipeOracle) and the Rust recipe_fixture over 50k generated crafting, cooking, stonecutting and smithing cases and compares matches, results and remainders as canonical NBT; all match.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 14:04:56 +02:00
Ludovic Marie 90023be7c2 Add a whole-chunk differential harness against vanilla generation
The new oracle drives vanilla's own chunk stages (structure starts and references, biomes, terrain with surface and carvers, then biome decoration with every placed feature and structure piece) through real WorldGenRegion instances, and the chunk_dump example runs the same stages in the same order in Horizon. The Python runner compares every block state, quart biome and block entity over terrain sites and structure sites found by scanning each seed, in the overworld, Nether and End, with phases that stop before features or run structure pieces only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 14:02:16 +02:00