Commit Graph

560 Commits

Author SHA1 Message Date
Ludovic Marie 7c8afc8a34 Merge branch 'parity-base' into parity/server-leftovers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 05:44:19 +02:00
Ludovic Marie 0a2601c33a Send recipes, advancements and command replies to players as vanilla does
- ClientboundUpdateRecipesPacket at join: the recipe property sets and the
  stonecutter's recipes, from the data pack (lan/recipes.rs).
- On a player's first tick the minecraft:tick criteria are met: the recipes
  their advancements grant go out in ClientboundRecipeBookAddPacket, then
  ClientboundUpdateAdvancementsPacket with what the player may see
  (lan/advancements.rs).
- Command replies reach remote players as the components vanilla sends:
  Text keeps the Component it was built from (literal, translatable,
  siblings, style), sendFailure wraps the message as vanilla does, and the
  NBT wraps the elements of mixed lists.

The dedicated-server harness drops its known gaps: it compares these
packets (sorted where vanilla's hash maps order them per run) and the
replies to three failing commands, keeps only the first set_time among the
joining packets and turns random ticks off in the generated world.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 05:43:51 +02:00
Ludovic Marie 765f53b2ba Merge branch 'parity-base' into parity/platform-maths 2026-10-13 05:15:09 +02:00
Ludovic Marie e70c38e578 Send the command tree in vanilla's registration order
The LAN and dedicated servers built the tree from the data generator's
commands report, which sorts each node's children. lan/command_order.rs,
generated from vanilla's Commands(CommandSelection.ALL) by
tools/generate_lan_command_order.py, gives the registration order, and the
dedicated-server harness now compares the tree in order (the game rules,
registered in an identity-hashed order, aside).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:59:34 +02:00
Ludovic Marie 2756b55b5b Merge branch 'parity/old-saves' into parity-base 2026-10-13 04:37:51 +02:00
Ludovic Marie ed1ea50c8e Merge parity-base into parity/platform-maths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:31:39 +02:00
Ludovic Marie 7322bba2b5 dedicated_server: read the game time as the console prints it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:51:40 +02:00
Ludovic Marie 71e677ed6a dedicated_server: settle the generated world in game ticks, without random ticks
The world was saved 20 wall-clock seconds after force-loading the area, so
on a busy machine chunks were still generating or their fluids flowing,
and random ticks changed blocks while the client was being sent its
chunks: which chunks differed varied from run to run. Wait until every
force-loaded chunk is loaded and 600 game ticks have passed, with
random_tick_speed 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:40:50 +02:00
Ludovic Marie 2db50eeca1 Merge branch 'parity-base' into parity/old-saves 2026-10-13 03:27:26 +02:00
Ludovic Marie 8c818c6f84 1.8.9 world: real maps by right click, objectives its scoreboard knows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 03:17:12 +02:00
Ludovic Marie 991df3d23c Merge remote-tracking branch 'origin/parity/old-saves' into parity/old-saves-flat 2026-10-13 03:13:32 +02:00
Ludovic Marie ab9109c787 Route world generation's and mob AI's Math calls through jmath
Beardifier, density pow/log, Marsaglia's Gaussian, dripstone, ores, fancy
trunks, icebergs, end spikes, strongholds, note pitches, sculk charge
particles, the warden's and brains' weighted shuffles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:06:48 +02:00
Ludovic Marie 811e4ff6de Merge parity-base into parity/warden-sculk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:03:24 +02:00
Ludovic Marie 085cca6aa4 Merge branch 'parity/rendering-gaps' into parity-base 2026-10-13 03:02:44 +02:00
Ludovic Marie 8dc1859369 Merge branch 'parity-base' into parity/spawn-gear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:02:28 +02:00
Ludovic Marie b8ee0b27b3 Datafix harness: pre-1.17 worlds in worlds-pre-1.17, which other worktrees' harnesses do not read 2026-10-13 02:54:04 +02:00
Ludovic Marie 1705653912 Datafix harness: worlds saved before 1.17 stay in the branch's own .local until integrated 2026-10-13 02:53:54 +02:00
Ludovic Marie 360ddcbdba Merge branch 'parity/villager-social' into parity-base 2026-10-13 02:53:42 +02:00
Ludovic Marie b7aa3b0d07 1.10.2 world: no thrown potions or 1.8 zombie villagers (vanilla fixes cannot handle them)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:44:39 +02:00
Ludovic Marie c46ac98b1a Port the fixes of 1.9 to 1.12 (keys 100 to 820) and read names and arrays like DataFixerUpper
Entity, block entity and item schemas below 1.11 (CamelCase ids, Equipment, Riding,
numeric item ids), their read hooks, and the fixes: equipment, item ids, potions, spawn
eggs, spawners, minecarts, UUIDs, health, saddles, paintings, riding, signs and books,
the 1.10 splits, id namespacing, banners, shulkers, totems. 1.11.2 passes the bands
1343 and 1631.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:33:59 +02:00
Ludovic Marie 43155d7822 Sample world for 1.11.2, and 1.8.9 to 1.10.2 in the version list
datafix_scene_12.py builds one scene for 1.8 to 1.12 from per-era tables (blocks, entity ids and merged types, riding, equipment, potions, items probed on the server, achievements by command instead of advancements).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:32:43 +02:00
Ludovic Marie eec52f9055 The recipe book draws as vanilla's widgets do; test_recipe_book_render_parity
horizon_client::recipe_book_screen lays out RecipeBookComponent's drawing
(background, search EditBox, tab buttons, the filter CycleButton, the page
of RecipeButtons with its number and arrows, the alternatives overlay,
tooltips) and GhostSlots as vanilla's GUI calls with their poses, and the
game paints them. The new harness builds vanilla's widgets for 600 random
states (VanillaRecipeBookScreenOracle) and compares every call: 600/600.

Ingredients keep their HolderSet order (tags in TagLoader order), which is
how the overlay and ghost slots cycle; the book centres over the menu on
narrow screens as widthTooNarrow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:22:55 +02:00
Ludovic Marie d9054baf44 The loom's result preview draws vanilla's banner flag picture in picture
GuiBannerResultRenderer's flag model and pattern layers, lit with
Lighting.Entry.ITEMS_FLAT and clipped to the 20x40 rectangle, through the
GUI item pipeline. The block entity render harness gains loom result cases
(the oracle submits vanilla's renderToTexture under the PiP pose): 407/407.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:03:08 +02:00
Ludovic Marie 1efc825a75 Merge parity/old-saves into parity/old-saves-flat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:00:29 +02:00
Ludovic Marie 39cacbdf83 Rich 1.12.2 sample world and a flat one for the DataFixer harness
tools/datafix_scene_12.py builds it in 1.12 command syntax: the whole block id/data space, block entities, items, entities, player, scoreboard, advancements, maps and statistics (real ones from a bot, plus a few hand-written fixtures).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 01:59:37 +02:00
Ludovic Marie acdbb3d27a End gateways tick their beam in game: client beamAnimationTick beside the server copy's portalTick
The anim harness now runs vanilla's TheEndGatewayBlockEntity on a client and
a server stand-in (triggerCooldown every 2400 ticks and on entry, block event
1) and compares the beam render state; 40 cases match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:55:46 +02:00
Ludovic Marie 955f2be4ae Flattening fixes: numeric block names normalised by the chunk rewrite, unknown entities stay untyped, spawn egg default; band harness also upgrades the old saved data
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 01:26:43 +02:00
Ludovic Marie 42cdea74be LAN discovery as vanilla's list keeps it; test_lan_parity against LanServerPinger and LanServerDetection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:11:55 +02:00
Ludovic Marie de3a285cb3 Headless Horizon client joining a vanilla dedicated server, checked by the harness
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:07:19 +02:00
Ludovic Marie 7fdbdcb3cb Warden footsteps and hearing, kills in the probe, and the ghastling's fly stroll
- Warden.nextStep: a step every 0.55 walked; mob steps raise a step
  game event, which the mob AI probe delivers to wardens through the
  listener the game uses (warden::listen).
- Warden.tick runs the vibration ticker before super.tick.
- The probe applies melee hits on mobs, reads a warden's target from its
  brain, and plays the player's death sound for a lethal hit; warden_player
  and warden_cow stop before the killing blow.
- getViewVector(0) uses the head's previous yaw, and AirAndWaterRandomPos
  the float quarter turn: tempted ghastlings stroll as vanilla's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:06:33 +02:00
Ludovic Marie 6f84b9ae94 Harness names differing chunks; spawner update tags without keepPacked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:02:14 +02:00
Ludovic Marie 5f5b6119d2 Spawner update tags in chunk packets; harness lists recipes and advancements as known gaps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:57:10 +02:00
Ludovic Marie 67caf1d2ab Datafix scene: boss bar, scoreboard, team and a trip to the nether and the end for worlds before 1.17 2026-10-13 00:54:43 +02:00
Ludovic Marie 4d62899a10 Harness: force-load the spawn area so both servers serve full chunks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:52:35 +02:00
Ludovic Marie c8370d8e29 Merge branch 'parity/old-saves-flat' (1.12.2 to 1.13.2 fixes) 2026-10-13 00:48:14 +02:00
Ludovic Marie 951b43daac Datafix worlds: world type variants for the level.dat generator settings 2026-10-13 00:46:45 +02:00
Ludovic Marie 7878013342 Merge parity-base into parity/spawn-gear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:37:27 +02:00
Ludovic Marie 26462a168b Datafix worlds: 1.15.2 and 1.16.1; scene entries by save format 2026-10-13 00:36:05 +02:00
Ludovic Marie b5a6b6a99e Port LegacyStructureFileFix (1493) and run the file fixes of the range in the band harness
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 00:35:54 +02:00
Ludovic Marie 52a419ac31 Match villager births and footsteps on bed edges
The parent's half of VillagerMakeLove.tryToGiveBirth (eating, the child's
bed and type, resting) runs in its own tick, before it ages; the partner's
follows as an event. A baby's NearestBedSensor keeps its bed when the
reused path heads elsewhere, as vanilla checks for a POI there. Footsteps
come from the block under the feet (Entity.mainSupportingBlockPos), not
the column below the centre. The oracle faces newborns' heads with their
bodies (LivingEntity draws the head yaw from Math.random), and the breeding
scenarios leave one free bed per section (PoiManager hands them out in hash
order).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:35:40 +02:00
Ludovic Marie 7ede56b596 Dedicated server: vanilla console lines, player chat, /list, legacy ping, chunk tracking, heightmaps and light layers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:32:29 +02:00
Ludovic Marie 0e2fc82f4e Datafix: thrown potion item field; legacy scene additions for 1.13.2 to 1.15 2026-10-13 00:32:00 +02:00
Ludovic Marie 748a80fedd Port the DataFixers of 1.12.2 to 1.13.2 (keys 1450 to 1624): the flattening, renames, stats, leaves
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 00:31:05 +02:00
Ludovic Marie e0a025c5bd Compare villager gossip and breeding with vanilla
Gossip and gifts between villagers (TradeWithVillager) move into the
library so the mob_ai probe runs them as the game does; both villagers now
lock their gaze on each other, as lockGazeAndWalkToEachOther does. The
probe reads the oracle's villager flags, prints villager data (food,
inventory, gossip, reputation) and adds babies as they are born. The
oracle seeds TriggerGate's shuffles too, which were left to the clock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:27:35 +02:00
Ludovic Marie 8d16a937c5 Dedicated server: load the spawn area; vanilla-codec client harness
VanillaProtocolClient joins a server with vanilla's own codecs;
test_dedicated_server_parity.py compares a vanilla and a Horizon dedicated
server serving the same world.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:18:01 +02:00
Ludovic Marie ad2758fc9c Merge parity-base into parity/villager-social
Keeps both sides' oracle scenarios: the creaking hearts, hurts, leads and
animal flags of parity-base on this branch's entity list, with a heart's
creakings adopted under their creation seed. Restores the villager meeting,
birth and golem-check events the unfinished WIP had begun to replace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:08:10 +02:00
Ludovic Marie d229326779 Datafix harness: --band TARGET checks the fixes up to a DataVersion on legacy-layout worlds; fixes sorted by key 2026-10-13 00:06:19 +02:00
Ludovic Marie 93ac585c74 Datafix worlds: list 1.12.2, 1.13.2 and 1.14.4 2026-10-13 00:02:25 +02:00
Ludovic Marie 19896fb6f1 Support saves from 1.16.5 (DataVersion 2571 on): replaceitem for pre-1.17 scenes 2026-10-12 23:59:20 +02:00
Ludovic Marie af7ad70438 Merge parity-base into parity/warden-sculk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 23:53:02 +02:00