Husk
Registry name
etfuturum.husk
Basic info
- Health: Inherited from
EntityZombie— standard zombie health (20 HP base) - Armor: Inherited from
EntityZombie - Size:
0.6 × 1.8(width × height) - Spawn conditions: Desert biomes; standard zombie spawn rules (light level ≤ 7, etc.)
- Drops: Inherited from
EntityZombie(rotten flesh, rarely iron ingot/ingots with Looting) - Behaviour: Desert variant of zombie. Same AI as zombie with two key differences: ignores sunlight (never burns), and deals Hunger effect on hit.
Key differences from Zombie
| Feature | Husk | Zombie |
|---|---|---|
| Sunlight | Ignores it (always brightness=0) | Burns in sunlight |
| Effect on hit | Hunger (140 × difficulty ticks) | None |
| Drops | Same as zombie | Same |
AI tasks
- Swimming
- Melee attack player
- Melee attack villager
- Move toward restriction
- Move through village
- Wander
- Watch closest player
- Look idle
- Target: hurt-by-target
- Target: nearest attackable player
- Target: nearest attackable villager
Notes
- Extends
EntityZombiedirectly; all zombie mechanics (spawning, equipment, attributes) apply onLivingUpdate: setsignoreSunlight=true→ callssuper.onLivingUpdate()→ resets, forcing brightness to 0 during the update tick- Sound IDs:
minecraft:entity.husk.ambient,.hurt,.death,.step - Spawn egg returns the standard zombie spawn egg via
ModEntityList.getEggFromEntity