Commit Graph

4750 Commits

Author SHA1 Message Date
Ludovic Marie 99b01f0cc0 Add the warden_spawn_tracker command and a dying warden's silence
The command clears the player's warden warning level or sets it from 0 to 4. A mob's death is now heard with the facts of the mob that died, so a dying warden stays silent to sensors.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:57:54 +02:00
Ludovic Marie 4652e983c5 Merge main into the scoreboard and command work
# Conflicts:
#	crates/horizon-client/src/game.rs
#	crates/horizon-client/src/game/commands.rs
#	crates/horizon-client/src/game/creatures.rs
#	crates/horizon-client/src/lib.rs
2026-10-09 13:57:10 +02:00
Ludovic Marie 661d2da89c Add sniffers
Sniffer: wanders, scents and sniffs, walks to diggable ground it has not explored, digs for a few seconds and drops a torchflower seed or pitcher pod, then stands up happy, with a cooldown of eight minutes before it sniffs again; follows torchflower seeds, panics fast, lays a sniffer egg instead of bearing young when bred, and keeps its explored positions in its save. Sniffer eggs now schedule their hatching when placed (faster on moss), crack twice and hatch a snifflet that takes 48000 ticks to grow up; the keyframe animations, the snifflet model and the lower digging body, dust and sounds are in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:57:07 +02:00
Ludovic Marie 88efc73ac1 Mesh biome tints through the zoomed biome and honour lighting options
The section mesher blended biome colours over quart cells at the section's
mid-height. It now follows ClientLevel.calculateBlockTint: each tinted block
averages the colours of the biomes BiomeManager picks (the eight-corner
zoom with the client's hashed seed) over the biomeBlendRadius square at the
block's own height, computed lazily per layer and column. The ao and
cutoutLeaves options are honoured too: flat lighting, skipped faces between
opaque leaves and a vertex layer flag that makes the terrain shader ignore
leaf alpha.

The section mesh parity gate gained biome-blend scenes (random zoom seeds,
radii 0 to 7, all 67 biomes, real Biome colour resolvers through a
BiomeManager in the Java oracle) and option scenes; all 1.0M quads of the 112
scenes match the client.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:52:25 +02:00
Ludovic Marie b39bf4c879 Add /place template
Place a saved structure template at a position with rotation, mirroring, integrity, seed and strict mode. Templates come from the world's generated structures first, then the vanilla template files. Block entities and saved entities are placed along with the blocks, and the template ids are offered as suggestions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:48:40 +02:00
Ludovic Marie 682927cb69 Hear game events from players and mobs, light the darkness effect and persist the warden warning
Players and mobs now report footsteps, swimming, landings, splashes, damage, deaths, eating, drinking, container use, shots and landed projectiles, blasts, lightning and primed TNT to the vibration system, with sneaking and wool respected. The darkness effect fades in and out over 22 ticks, closes the fog in to 15 blocks, dims the lightmap with its pulse and hides the sun, moon and stars. Active sculk sensors shed redstone dust, charge and shriek level events show their particles, and the player's warning level is saved with the player data.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:43:56 +02:00
Ludovic Marie 1952d5b927 Add world and entity commands, loot, world border and force loading
New commands: /recipe, /damage (with at, by and from), /rotate (angles or facing), /swing, /playsound and /stopsound (per sound source, with the minimum volume rule), /particle (dust, block and the other particle options), /attribute (get, base set, reset and modifiers on the player; max health, speed and attack damage on mobs), /ride, /spreadplayers (with teams and a height limit), /forceload (force loaded chunks stay generated and simulated), /fillbiome (with a replace filter and biome tags), /worldborder (set, add, center, damage, warning and get, with the shrink and grow animation, the wall that stops the player and border damage, saved in world_border.dat) and /loot (replace, insert, give and spawn from loot tables, killed mobs, mined blocks and fishing). The sound engine learned to play a sound on a chosen sound source and to stop playing sounds by event or source.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:40:02 +02:00
Ludovic Marie 02d1507d39 Infect and cure zombie villagers
Villagers killed by a zombie, husk, drowned, zombie villager or zombified piglin rise as zombie villagers on Normal (half the time) and Hard (always), keeping their type, profession, level, trades, experience, gossip, equipment and baby state. Splash and lingering potions now give their timed effects to nearby mobs, so a weakness potion followed by a golden apple starts a cure of 3600 to 6000 ticks, sped up by nearby iron bars and beds; the zombie villager shakes, plays the cure sound and swaps weakness for strength. When the clock runs out it becomes a villager again with nausea, the curing player gains major and minor positive gossip (so trades get cheaper), the cured_zombie_villager advancement triggers, and the conversion sounds play. ConversionTime, ConversionPlayer, VillagerData, Offers, Gossips and Xp are saved, curing zombie villagers never despawn, and zombie villagers now draw their level badge and baby textures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:35:15 +02:00
Ludovic Marie f1179cf141 Merge main into the loom and recipe book work
# Conflicts:
#	crates/horizon-client/src/containers.rs
#	crates/horizon-client/src/game.rs
#	crates/horizon-client/src/game/creatures.rs
#	crates/horizon-client/src/item_data.rs
#	crates/horizon-client/src/lib.rs
#	crates/horizon-client/src/save.rs
2026-10-09 13:32:57 +02:00
Ludovic Marie 239755edd8 Show the recipe unlocked toast
Unlocking recipes through advancement rewards now shows the "New Recipe(s) Unlocked!" toast with the recipe's result item and "Check your recipe book" underneath, one toast for a burst of unlocks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:29:47 +02:00
Ludovic Marie 84dbcacd22 Add double chests, shulker box and shift-click container menus
Double chests now open as one 54-slot Large Chest (right half first, as in vanilla) with the 222-pixel screen and the inventory moved down, and both halves update their comparators and saves. Shulker boxes use their own texture and "Shulker Box" title, ender chests and barrels show their names, and the hopper minecart is titled as such.

Shift-click now moves stacks between the player inventory and chests, barrels, shulker boxes (which refuse other shulker boxes), ender chests, hoppers, dispensers and droppers the way the vanilla menus do, and in furnaces it sends smeltable items to the input, fuel to the fuel slot and takes results to the inventory.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:27:13 +02:00
Ludovic Marie c048369be8 Complete /execute and add functions, bossbars, items and tick
/execute now has every vanilla subcommand: store (result or success into scores, boss bars and entity, block or storage data with a type and scale), positioned over a heightmap, summon, on (owner, vehicle, controller, passengers, target, attacker), and the if/unless conditions score (all comparisons and matches), blocks, biome, predicate, function, data, items and slots on top of block, entity, loaded and dimension, with the vanilla pass, fail and count messages. Data packs in the world's datapacks folder (folders and zips) provide functions with comments, line continuation and $ macros, function tags including minecraft:load and minecraft:tick, and predicates; /function (with arguments or "with" sources), /return (value, fail and run), /schedule, /reload and /datapack list, enable and disable work against them. Also added: /bossbar with a boss bar overlay and saving, /item replace, fill and override over player, mob, armor stand, item frame and container slots, /random and /teammsg, and /tick rate, freeze, step and sprint on the game clock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:26:35 +02:00
Ludovic Marie a77c929d81 Add breezes and wind charges
Breeze: chooses the nearest player or iron golem (or whoever hurt it), long jumps behind its target after inhaling, shoots a wind charge, slides to new spots and shoots again when stuck, with the vanilla timers, poses, keyframe animations, wind and eyes layers, sounds and block dust at its feet; arrows and other projectiles bounce off it. Wind charges: the item a player throws (half a second between throws), the charge a breeze shoots, and their burst, which does no damage but knocks players, mobs, projectiles and primed TNT away, cancels the thrower's fall, opens wooden doors, trapdoors and gates, presses buttons, flips levers, rings bells and snuffs candles; gust particles for the burst.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:24:12 +02:00
Ludovic Marie cdd5feb50c Add the horse inventory screen
Sneak-using a tamed adult horse, donkey, mule, skeleton or zombie horse, or pressing the inventory key while riding one, now opens its inventory: the saddle slot, the horse armour slot (horses only), the 5x3 chest of a donkey or mule with a chest, the mount drawn turning toward the cursor, and the player inventory below. Slots only take what the mount can wear (a saddle, or horse armour for horses), shift-click routes items the way the vanilla menu does, and the equip sounds play when the mount is saddled or armoured. The menu closes when the mount dies or is more than four blocks away.

The chest contents are saved with the mob (Items) and drop with the chest when the mount dies. The translation table also gains the entity, recipe book, banner pattern and toggle slot texts used by the new screens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:22:33 +02:00
Ludovic Marie 2b618b1dfe Let witches heal raiders and name the ominous banner
During a raid a witch looks for the other raiders, throws them
Regeneration, or Healing once they are almost dead, and the potion cloud
heals every raider it reaches. The ominous banner shows its own name and
uncommon rarity in tooltips.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:19:05 +02:00
Ludovic Marie 7bbc85efa0 Add villager gossip, breeding and golem defence
Villagers remember players through gossip (major and minor, positive and
negative, and trading) that fades by the day and spreads when villagers
meet, saved with each villager. Hitting a villager earns a minor negative
mark, killing one in front of others a major one, and each trade a small
positive one; the reputation changes the prices, as does Hero of the
Village. Villagers that meet swap gossip, pass surplus food to hungry
neighbours (farmers to anyone) and wares to the profession that wants them,
pick up food and seeds from the ground into an eight-slot inventory, and
willing pairs (twelve food points, awake, adult) make a baby after about
fourteen seconds when a free bed is within 48 blocks. Frightened villagers
and gossiping groups that slept lately call for an iron golem, and golems
defend a village against a player whom a villager nearby holds at minus
100. Bottles from structure loot keep their amplifier.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:19:05 +02:00
Ludovic Marie 44adeb0d3c Add bad omen, raid omen and raids
Drinking an ominous bottle gives Bad Omen; inside a village it turns into
Raid Omen, and when that runs out a raid starts, or grows, around the
village points villagers have claimed (the raid_trigger statistic and the
voluntary exile trigger fire on the first omen). Raids are saved in
data/minecraft/raids.dat and send waves of pillagers, vindicators, evokers,
witches and ravagers (ravagers carrying pillagers, evokers or vindicators)
by difficulty and omen level, from a ring that closes in as the countdown
runs down, with the raid horn and a red notched boss bar that shows the
raiders left, Victory or Defeat. Raiders walk to the village, move between
beds, take back a dropped captain banner, celebrate a lost village, are
enchanted with Quick Charge or Sharpness at high omen levels and are
dropped from the raid when idle or far away. Killing one makes the player a
hero; a won raid grants Hero of the Village and the hero_of_the_village
trigger. Villagers hide in their beds during a wave, ring the bell before
one, celebrate a victory with fireworks, and toss gifts to a hero. /raid
start, stop, check, spawnleader, setomen, glow and sound are available.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:18:59 +02:00
Ludovic Marie af791c55b7 Add pillager patrols and the ominous banner
Every ten minutes or so, in daylight and a fifth of the time, a patrol of
pillagers spawns 24 to 48 blocks from a player who is not near a village,
once the world is five days old and outside mushroom fields. The leader
wears the ominous banner and heads for a distant target in ten block hops
with its companions following; patrols hold their ground, shout to nearby
raiders and attack together once something comes close. Natural spawns lead
a patrol one time in seventeen. A fallen banner always drops, and a captain
pillager drops an ominous bottle that gives Bad Omen when drunk. Patrol
state, the banner's patterns and the bottle's amplifier are saved as vanilla
NBT.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:18:56 +02:00
Ludovic Marie 2ad11eb68d Add the creaking and the creaking heart
A creaking heart in a pale oak trunk now follows its logs: placed or updated between two logs on its axis it wakes at night (12600 to 23400 in the overworld) or goes dormant by day, and stays uprooted without them. An awake heart with a player within 32 blocks spawns a linked creaking within 16 blocks, keeps its UUID in the saved block entity, reports the distance to it as a comparator signal, and lets it go when the day comes, it strays more than 34 blocks or a player stands inside it. The creaking freezes while any player looks at it, wakes when one looks from within 12 blocks, then hunts the nearest visible player and hits every 40 ticks. Bound to a heart it takes no damage; hits only make it sway and, when a player did it, make the heart send trail particles and sometimes spread resin clumps over nearby logs. Breaking the heart makes its creaking twitch to death, and removing the block any other way tears it down in a burst of crumbling pale oak. It has the vanilla model, animations (walk, attack, invulnerable, death), glowing eyes, sounds and NBT home_pos, and the trail particle exists now.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:15:05 +02:00
Ludovic Marie 6b80f9c1aa Add the recipe book
The inventory, crafting table, furnace, blast furnace and smoker screens get the green recipe book button, which opens the book beside the menu and moves the menu over. The book has the search tab and one tab per category (hidden until it holds a recipe), a search box matching recipe names (or @namespace), the craftable-only toggle, pages of 20 recipe buttons that cycle through the recipes of a group, right-click for the alternatives overlay, and tooltips. Clicking a recipe moves the items from the inventory into the grid (shift fills the biggest stack, clicking again adds one more set), and when items are missing the grid is cleared and the recipe is shown as a ghost over the slots.

Which recipes appear comes from the advancement rewards already unlocked; the open and craftable-only settings of each book and the unlocked recipes are saved in the player's recipeBook compound. Recipes now keep their category and group from the data pack.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:08:12 +02:00
Ludovic Marie ccec07fde1 Add llamas, trader llamas, leads and the wandering trader's spawner
Llamas and trader llamas: random coat and strength, tamed by riding with a maximum temper of 30, fed wheat and hay, given a chest and a carpet (shears take the carpet off), spitting at whoever hurt them or wolves close by, hunting zombies and illagers when they belong to a trader, forming caravans behind a leashed llama, and saved with their variant, strength, chest, carpet and lead. Leads: put on and taken off mobs, tied to fence knots, with the elastic pull, the snap past twelve blocks and following their holder, drawn as a rope and saved by holder. The wandering trader gets its own goals (drinking invisibility at night, fleeing monsters, walking to its wander target, staying home, standing still while trading, leaving after two days) and a spawner that brings two leashed trader llamas. Llama spit now moves before it drags and falls, and camels spawn on sand.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:07:29 +02:00
Ludovic Marie d5d87f23a2 Add /data, /tag and NBT summoning
/data now supports get, merge, modify and remove on entities, block entities and command storage, with NBT paths (children, indices, [] and [{...}] matches, root matches), scaling for numeric reads, the append, prepend, insert, set and merge modifiers, and from, string and value sources. Command storage is saved per namespace in data/<namespace>/command_storage.dat. /tag adds, removes and lists entity tags, which selectors' tag=, nbt= and advancements= options now check. /summon accepts a full NBT compound (custom name, tags, health, NoAI, Invulnerable, item contents and so on), and armor stands, item frames, paintings, boats and minecarts can now be selected, teleported and killed like other entities.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:01:12 +02:00
Ludovic Marie ed89f533e2 Add the vibration system, sculk block entities and the warden
Game events now reach sculk sensors, calibrated sensors, shriekers and wardens through the vibration system: frequencies, listener ranges, travel time, wool occlusion, sneaking and dampening rules, and the nearest-first selection. Sensors power redstone and comparators and resonate amethyst, shriekers warn players and summon a warden at the fourth warning, catalysts take the experience of nearby deaths and spread sculk, and the warden has its anger, brain, sonic boom, animations and layers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 13:00:26 +02:00
Ludovic Marie 3de8b358ec Dispense items like vanilla dispensers and droppers
Dispensers now follow DispenserBlock's behaviour table: arrows, eggs, snowballs, experience bottles, thrown potions, firework rockets (flying straight until they hit something) and fire charges are shot out with the vanilla power and spread; buckets place or pick up water, lava, powder snow and mobs through the new Behaviours bucket calls; flint and steel, bone meal, TNT, shears (sheep, mooshrooms, bogged, beehives), brushes on armadillos, honeycomb waxing, respawn anchors, glass bottles (water, honey), water potions on mud, boats, minecarts, armor stands, shulker boxes, carved pumpkins (which now build snow and iron golems for players too), wither skulls, spawn eggs and worn equipment on players, armor stands and mobs that may pick up loot. Every dispense plays the vanilla click, fail or launch sound and the smoke puff, and droppers keep the plain drop or container insert. Experience bottles can also be thrown by the player.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:56:20 +02:00
Ludovic Marie f9eaae5a46 Add the crafter
The crafter block now works: right-clicking opens its menu with the 3x3 grid, the recipe result preview and the powered arrow, and clicking an empty slot disables or re-enables it (with the button click sound and the lighter disabled slot art), while shift-click moves stacks between the grid and the inventory. When powered, it crafts after four ticks using the grid's recipe, plays the craft or fail sound, shows the crafting state for six ticks, pushes the result and any remainders into the container in front (or shoots them out with white smoke), uses up one of each ingredient and fires the crafters-crafting-crafters advancement.

Its comparator signal counts filled and disabled slots, hoppers fill its smallest stacks first and skip disabled slots, and its items, disabled slots, powered flag and animation ticks are saved with the chunk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:48:23 +02:00
Ludovic Marie 2872884cb9 Add subtitles
The Show Subtitles accessibility option and the notification display time slider now exist and persist in options.txt. Every sound event with a subtitle key in sounds.json that the audio engine plays, even with no audio device, feeds a closed-caption overlay at the bottom right: repeated sounds refresh the same row, rows are only shown while the source is in range, an arrow points left or right when the sound is outside the view, and the text fades from white to grey over three seconds (stretched by the display-time multiplier, with looping sounds staying bright for half a second longer).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:46:54 +02:00
Ludovic Marie ef6f41b12c Add scoreboards and teams
Scoreboards now work like vanilla: objectives with every criteria kind (dummy, trigger, health, food, xp, level, armor, deathCount, kill counts, per-colour team kills and any statistic such as minecraft.mined:minecraft.stone), the full /scoreboard command (objectives add, remove, list, modify and setdisplay; players set, add, remove, reset, get, list, enable, operation and display name or number format), /trigger, and /team with colour, prefix, suffix, friendly fire, invisibility, nametag, death message and collision options. Scores, teams and display slots are saved as vanilla NBT in data/minecraft/scoreboard.dat. The sidebar draws with the objective title, team colour slots, number formats and the vanilla layout, and target selectors accept scores={...}, team= and tag=.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:42:27 +02:00
Ludovic Marie 19336564d2 Add the loom and banner patterns
The loom now opens its menu: a banner, a dye and an optional pattern item go in, the 32 plain patterns (or the one the pattern item provides) show in a scrolling 4x4 grid with hover names, picking one previews the result banner and the result slot gives a banner with one more layer, using up one banner and one dye. Banners with six layers show the error state and give nothing. Shift-click routes banners, dyes and pattern items to the right slots.

Banner layers are stored in the banner_patterns item component, in a new banner block entity (saved to chunks), and carry over when a banner is placed or dropped. Placed banners draw all their pattern layers, banner and shield icons are drawn as the vanilla 3D models with their patterns, a held banner is shown in the first-person hand, and tooltips list the layers. Banner duplication and shield decoration crafting recipes work, and crafting now returns item remainders such as buckets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:40:31 +02:00
Ludovic Marie 9967697de2 Add sculk sensor, shrieker and catalyst block behaviour
Sculk sensors cycle through active, cooldown and inactive (30 ticks, 10 for the calibrated one), power the block below them and click; the shrieker ends its 90 tick shriek and asks to respond; the catalyst blooms for 8 ticks. The level SculkSpreader moves charge cursors across sculk, veins and plain blocks, growing sensors and shriekers, merging cursors and reporting charge particles.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:35:52 +02:00
Ludovic Marie fb954f7d7f Load saved light and test it against vanilla
Chunks saved with isLightOn now read their SkyLight and BlockLight arrays back like vanilla instead of being relit: a missing sky layer repeats the bottom layer of the section above it, and a missing block layer is dark. Such chunks skip the light job, mesh as soon as their neighbours are lit, and only relight when a freshly generated neighbour arrives. tools/test_light_parity.py builds a scene of slabs, stairs, snow, trapdoors, lanterns, leaves and lava in a vanilla world, edits it, and requires every saved light value and every incremental relight to match Horizon's engine.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 12:29:51 +02:00
Ludovic Marie e988862e92 Update the parity audit to 73%
Entities and physics move to 0.75 now that the dragon, vehicles,
decorative entities and most mobs are in; the gap lists and next steps
follow the code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:32:24 +02:00
Ludovic Marie f36b317569 Add local difficulty and mob armour
Chunks gain inhabited time while a player is near (saved as
InhabitedTime), giving vanilla's local difficulty. Zombies, husks,
zombie villagers and skeletons spawn with armour sets by it, piglins with
golden pieces; worn armour protects them, is drawn with the humanoid
armour layers, drops 8.5% of the time and is saved. Zombie, drowned and
zombified piglin weapon odds now follow 26.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:31:25 +02:00
Ludovic Marie 78165ecdf6 Give villagers a daily schedule
Villagers claim a free bed and a bell, work at their job site by day
(work sounds, and up to two restocks a day with demand catch-up), meet
at the bell in the evening and sleep in their bed at night, lying as
vanilla draws sleepers. They wake at dawn, when hurt or when the bed
goes. Memories, restock counts and the last restock are saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:21:51 +02:00
Ludovic Marie 2b664b4c4e Let villagers take jobs and trade
Villagers claim the nearest free job site within 48 blocks and take its
profession, lose a fresh profession when the site goes, flee zombies and
raiders, and shake their heads when they have nothing to sell.
Right-clicking a villager or wandering trader opens its trades; offers,
experience, level, profession and job site are saved as vanilla NBT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:04:32 +02:00
Ludovic Marie 07e36a90d3 Add allays and keep what mobs hold
Allay: given an item it keeps the player as its friend, flies to matching drops within 32 blocks, carries up to a stack and throws it to the player (or a liked note block) one item a tick within 3 blocks, pausing pickups for three seconds after each throw; it dances by a playing jukebox, duplicates when given an amethyst shard mid-dance, heals over time, cannot be hurt by its player, and hands its item back to an empty hand; animation and NBT. Mobs now save and load what they hold (equipment mainhand and offhand), and models whose root holds another part named root (allay, vex, frog, baby axolotl) no longer apply that offset twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:50:43 +02:00
Ludovic Marie 90506e5326 Add camels
Camel: always tame, saddled and ridden like a horse (the rider at the hump, lower while it sits), dashing forward on the jump bar with a 55-tick cooldown and faster while sprinting, sitting down and standing up now and then (no moving meanwhile, up at once in water or when panicking), eating cactus, the keyframe animations (walk, sit, sit pose, stand up, idle, dash) and its NBT. Mobs whose health is above zero no longer keep a death clock from a save, and a dead wither stops healing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:30:52 +02:00
Ludovic Marie bb06b17303 Add parched
Parched: the desert skeleton with 16 health, a 70-tick bow interval and arrows of weakness for 30 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:17:37 +02:00
Ludovic Marie 52ed65a0d7 Add the wither
Building a T of soul sand or soul soil under three wither skeleton skulls (upright along X or Z) summons the wither: eleven seconds of invulnerable charging that heal it and end in a power 7 blast, then flight toward its target while the centre head fires skulls on a ranged-attack clock and the side heads pick their own targets, blocks around it broken when hurt, regeneration, immunity to arrows below half health and to the undead, a purple boss bar with boss music, the nether star drop, its animation, texture and scale. Wither skulls fly like fireballs (blue ones keep their speed), hit for 8 with withering and explode. Block items such as heads aimed at a block are now placed instead of equipped. Vexes no longer drop their swords.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 10:14:38 +02:00
Ludovic Marie ecfb487c6b Add ravagers
Ravager: melee charges speeding up while hunting, trampling leaves it runs into, the 10-tick bite with its head lunge, stunned for two seconds by a raised shield half the time (else flinging the defender), then a roar that hurts everything but illagers within 4 blocks and flings it away, and its NBT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:52:35 +02:00
Ludovic Marie d938bcad6e Add evokers, vexes and evoker fangs
Evoker: the spellcaster goals with their warm-ups and intervals (summoning three vexes for 30 to 120 seconds, fangs in a ring when the target is close or a line of sixteen toward it, turning blue sheep red), fleeing players, the spellcasting arm pose. Vex: flying through blocks around its bound origin, charging its target with an iron sword, copying its evoker's target, wasting away after its life. Evoker fangs rise from the floor after their delay and bite for 6. Guardian beams are only drawn for guardians.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:47:10 +02:00
Ludovic Marie d111a20108 Add shulkers and shulker bullets
Shulker: attached to a block face (re-attaching or teleporting when it is lost), idle peeks, opening to fire a homing bullet every one to five and a half seconds at a player within 20 blocks, arrows bouncing off the closed shell, a chance to teleport below half health, dyed shells, the lid and head animation and the rotation onto its face, and its NBT. ShulkerBullet steps toward its target along axes and levitates what it hits for 10 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:35:55 +02:00
Ludovic Marie 984c7bea59 Add guardians and elder guardians
Guardian: the swimming move control with its wobble, water travel, stroll and targeting of players, squid and axolotls, the laser charging 80 ticks (60 for the elder) before indirect magic plus a bite, spikes hurting melee attackers while still, flopping on land, the tail, spikes and eye animation, the rendered beam, and the spawn rules. The elder curses players within 50 blocks with mining fatigue every minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:25:22 +02:00
Ludovic Marie d9445f0d06 Spawn structure mobs and apply structure spawn overrides
Structure pieces now spawn their entities: the swamp hut's witch and black cat, the monument's three elder guardians, end city sentry shulkers and the elytra item frame, mansion evokers, vindicators and allays, ocean ruin drowned, and mineshaft chest minecarts with their loot rolled in. Chunks keep their structure references (saved as structures.References), so structures_at answers advancement location predicates, and natural spawning uses structure spawn_overrides (guardians in monuments, witches in huts, fortress mobs on nether bricks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:14:24 +02:00
Ludovic Marie 382eb0b74b Generate structure entities and add /locate structure
Structure templates now place their saved entities (StructureTemplate.placeEntities: moved, turned and mirrored with the template, finalized for jigsaw pieces, ignored for mansions and end cities), carried in the proto chunk and spawned with the chunk: villages get their villagers and animals. /locate structure (an id or a #tag) searches ring and random-spread placements like ChunkGenerator.findNearestMapStructure; seed 42 matches vanilla for villages, monuments, swamp huts, igloos, strongholds and outposts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:01:55 +02:00
Ludovic Marie 3c9d804ebb Draw worn armor on the player and shift-click armor on
HumanoidArmorLayer for the player's model (in third person and the inventory), the armour parts posed like the body. Shift-clicking armour or an off-hand item in the inventory puts it in its empty slot (InventoryMenu.quickMoveStack), and shift-clicking an armour slot takes it back. The GUI clip handles rectangles with corners in any order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:44:16 +02:00
Ludovic Marie 9c16c364d6 Add third-person views and the inventory player
F5 cycles first person, third person behind and in front (Camera.setup with getMaxZoom pulling the camera in front of blocks); the hand and crosshair show only in first person. The local player renders as a PlayerModel kept in step each tick (body turning, walk animation, swing, crouching and riding poses), in the world and in the inventory's player box following the cursor. Players now use the player skin instead of the zombie texture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:37:47 +02:00
Ludovic Marie e311b78562 Draw the shield in slots
ShieldSpecialRenderer's plate and handle under item/shield's gui display transform, instead of the missing-icon square.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:22:49 +02:00
Ludovic Marie a6af85a3cb Add the Advancements screen and /advancement
The Advancements screen: one tab per displayed root, the tree laid out by a port of TreeNodePosition in AdvancementTree.addAll order, visibility from AdvancementVisibilityEvaluator, connection lines, frames, the progress tooltip with its split title bar, dragging, scrolling and the L key. /advancement grant|revoke with only/from/until/through/everything and criteria, with vanilla's messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:18:48 +02:00
Ludovic Marie 6a2c53697d Fix recipe unlock and slot conditions in advancements
recipe_unlocked matches the criterion's recipes key, so unlocking one
recipe no longer completes every recipe advancement; inventory_changed
honours the occupied, full and empty slot counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:04:19 +02:00
Ludovic Marie e10af7eb20 Add advancements
The advancement tree loads from the data packs; criteria are tested
with vanilla's entity, item, block and location predicates and loot
conditions, and triggered by inventory changes, location (every second),
kills, deaths, eating, filling buckets, placing blocks, sleeping,
dimension changes, breeding, taming, riding and totems. Completed
advancements grant their rewards (experience, loot, recipes), show the
advancement toast and are announced in chat; progress is saved to
players/advancements/<uuid>.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 08:00:48 +02:00