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>
This commit is contained in:
Ludovic Marie
2026-10-09 13:07:29 +02:00
parent e988862e92
commit ccec07fde1
23 changed files with 2372 additions and 20 deletions
@@ -103,6 +103,7 @@ pub fn spawn_rules_ok(
| S::Horse
| S::Donkey
| S::Llama
| S::Camel
| S::Wolf
| S::Cat
| S::Fox
@@ -116,6 +117,7 @@ pub fn spawn_rules_ok(
| S::Bee => {
let tag = match species {
S::Mooshroom => "minecraft:mooshrooms_spawnable_on",
S::Camel => "minecraft:camels_spawnable_on",
S::Wolf => "minecraft:wolves_spawnable_on",
S::Fox => "minecraft:foxes_spawnable_on",
S::Rabbit => "minecraft:rabbits_spawnable_on",
@@ -353,6 +355,7 @@ pub fn finalize(m: &mut Mob, biome: &BiomeFacts, difficulty: &LocalDifficulty) {
S::Horse | S::Donkey | S::Mule | S::SkeletonHorse | S::ZombieHorse => {
super::equine::finalize(m)
}
S::Llama | S::TraderLlama => super::llama::finalize(m),
// Camel.finalizeSpawn: standing, with fixed attributes.
S::Camel => super::camel::stand_up_instantly(m),
// Piglin.createSpawnWeapon: half crossbows, half golden swords, and