Commit Graph

15 Commits

Author SHA1 Message Date
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 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 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 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 3e2cdcae33 Make horses, donkeys and mules rideable
Horses get random health, speed and jump strength, coat colours with
markings, grazing, rearing and AbstractEquineModel's animation. Feeding
heals, grows foals and builds temper; riding an untamed horse ends with
it tamed or bucking the rider off. Saddles, horse armour and donkey
chests fit with a click, a saddled mount follows its rider with the
charged jump bar, its health replaces the food bar, and offspring
inherit their parents' stats (a horse and a donkey have a mule).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 07:19:19 +02:00
Ludovic Marie d6d9ecc4ab Give piglins, brutes, hoglins and zoglins their behaviour
Piglins leave gold-wearing players alone, pick up and admire gold, barter
gold ingots for a roll of the bartering table, fight with crossbows or
golden swords, hunt baby hoglins, flee zombified piglins and get angry
when their chests are opened or their gold mined. Brutes always attack.
Hoglins headbutt their targets into the air, babies flee, and both turn
into zombified piglins and zoglins after 15 seconds out of the Nether.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:58:11 +02:00
Ludovic Marie 35dacf6e24 Give pillagers crossbows and vindicators axes
Pillagers charge their crossbows, keep their range and fire; vindicators
hunt with iron axes (Johnny attacks everything). IllagerModel's crossed
arms, crossbow hold and charge, and weapon swings are ported, and a calm
vindicator hides its axe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:49:17 +02:00
Ludovic Marie 459db087d6 Make zombified piglins neutral
They no longer attack on sight: once hit they stay angry for 20 to 39
seconds, move faster, growl and rally the others nearby. They spawn with
golden swords.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:35:50 +02:00
Ludovic Marie c44174d261 Make cats tamable
Cats get their variants, collars and the feline model's sitting,
crouching, sprinting and lying poses. Wild cats flee players unless
tempted with fish, which may tame them; tame cats sit on command, follow
their owner, lie on beds, sit on chests and lit furnaces, stalk rabbits
and have tame kittens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:18:40 +02:00
Ludovic Marie 3e556f51ef Make wolves tamable
Wolves get their biome variants, the tame and angry textures, the collar
layer and WolfModel's sitting, begging and shaking poses. Bones tame them;
tame wolves sit on command, follow and teleport to their owner, defend it
and join its fights, heal on meat, take collar dyes and breed into tame
pups. Mob particle bursts (hearts, smoke, splashes) now show.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 06:10:08 +02:00
Ludovic Marie 6060e0dfda Give witches, endermen and slimes their vanilla AI
Wire the paused witch, enderman and cube-mob modules: witches drink and
throw potions, endermen teleport, stare-aggro and carry blocks, slimes and
magma cubes hop with their size, squish and split. Slime sizes save, the
outer slime layer renders, and mob-applied effects use the player's effect
list (so they show and tick like potions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 05:53:04 +02:00
Ludovic Marie f63cac5f5e Add tadpoles, frog variants and saved mob ages
Frogspawn hatches into 2-5 tadpoles that swim, flop on land, wag their
tails and grow into frogs after 24000 ticks. Frogs take the warm, cold or
temperate variant from the biome. AgeableMob ages (babies, breeding
cooldowns) are now saved and loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 04:31:16 +02:00
Ludovic Marie df14adbfba Format the workspace with rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 00:28:32 +02:00
Ludovic Marie 62d99a4212 WIP snapshot: unfinished mobs parity work (paused mid-task, may not build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 21:40:00 +02:00
Ludovic Marie 2f74209da1 Port vanilla mob AI framework: goals, A* pathfinding, controls, projectiles
Mobs now run vanilla's tick order with a GoalSelector/target selector
(priorities, MOVE/LOOK/JUMP/TARGET flags), PathNavigation over the
walk/swim/fly/amphibious node evaluators, Move/Look/Jump/BodyRotation
controls and LivingEntity travel in air, water and lava. Path types,
spawn surfaces and keyframe animations come from a new exporter
(VanillaMobDataExporter -> mob-data.json). Farm animals, zombies,
skeletons, creepers and spiders get their vanilla goals; projectiles
(arrows, snowballs, eggs, ender pearls, fireballs) share one system;
natural spawning follows NaturalSpawner with category caps.

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