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

  1. Swimming
  2. Melee attack player
  3. Melee attack villager
  4. Move toward restriction
  5. Move through village
  6. Wander
  7. Watch closest player
  8. Look idle
  9. Target: hurt-by-target
  10. Target: nearest attackable player
  11. Target: nearest attackable villager

Notes

  • Extends EntityZombie directly; all zombie mechanics (spawning, equipment, attributes) apply
  • onLivingUpdate: sets ignoreSunlight=true → calls super.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