Adds a differential harness that instantiates every vanilla entity type on a detached server level and compares default attributes, standing dimensions and baby dimensions with Horizon's mob table. Baby donkeys and mules now use the vanilla half-size hitbox instead of 0.7 scale.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The sequence loot function folds over an Option accumulator, which clippy flags as a manual try_fold. The fold is intentional, so allow the lint there.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merges local main into this branch. The only conflict was in the illager
animation: this branch's anim_pose (with the passenger sitting pose) is kept,
and main's change that leaves the illusioner's hat visible is applied to it.
fmt, clippy with -D warnings and the full workspace tests pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings main's sync_level()/save_game() split and the world ticks inside
`if running {}` into the typed block entity NBT, save roundtrip harness and
session.lock work. The only textual conflict was in recipe_book.rs, where
the player file writer keeps main's toBeDisplayed list alongside the
recipes list. fmt, clippy -D warnings and the whole workspace test suite
pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
After merging the overnight feature branches, the only remaining problem was a clippy lint in the illusioner mob code, where a manual modulo check had to become is_multiple_of. With that change, formatting, clippy with warnings denied and the full workspace test suite all pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds differential harnesses for random/scheduled ticks and redstone circuits on top of the block update oracle, and makes the oracle report pending block events as the deduplicated set vanilla keeps. The harness found that detector rails never sensed anything, so they now check for minecarts on place, tick and entity contact, and the client reports the player and minecarts to pressure plates, tripwires and detector rails each tick.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Finishes the in-progress merge of main into this worktree's branch, keeping both sides: main's sync_level()/save_game() split and the world ticks inside the running block alongside this branch's item model baking, new mob brains and command parsing work. cargo fmt, clippy with warnings denied and the full workspace tests all pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Work in progress on commands, functions and scoreboard handling carried over from the interrupted run.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The illusioner is an illager spellcaster with a bow. It casts a mirror spell that makes it invisible for a minute while four mirror images wobble around it and reshuffle when it is hurt, and, on Hard-ish local difficulty, a blindness spell on a new target. It shoots arrows like a skeleton, flees from creakings, joins raids and illager target rules, scares villagers and traders, and shows its hat and bow arm pose as in vanilla. Other illagers no longer draw the hidden hat layer.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merge local main into the options, timer and mouse branch. The only conflict was the module list in horizon-client's lib.rs, where this branch adds keymapping and main adds lan; both modules are kept. main's sync_level()/save_game() split and the world ticks inside `if running {}` merged cleanly. cargo fmt, clippy with -D warnings and the whole workspace test suite pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>