Snow Golem (New)

Registry name

etfuturum.newSnowGolem

Basic info

  • Health: Inherited from EntitySnowman (standard snow golem health: 4 HP)
  • Armor: None
  • Size: Inherited from EntitySnowman (standard snow golem size)
  • Spawn conditions: Inherits from EntitySnowman; can be spawned by player or naturally in snowy biomes
  • Drops: Pumpkins (when sheared), snowballs (default)
  • Behaviour: Snow golem with shearing support. Key change: pumpkin is a separate equippable item, stored as a data watcher flag, rather than baked into the entity model.

Differences from vanilla EntitySnowman

Feature Vanilla This mod
Pumpkin Hardcoded as part of model Equipable/removable via IShearable
Shearing Not supported Supported: shear pumpkin off → drops pumpkin item, sets HasPumpkin=0
Shearing result N/A Blocks.pumpkin item

Pumpkin state

  • Data watcher object HAS_PUMPKIN (id 12): 1 = has pumpkin, 0 = no pumpkin
  • NBT key: "HasPumpkin" boolean
  • hasPumpkin(): returns true if data watcher byte == 1

IShearable implementation

  • isShearable: returns hasPumpkin() — only shears when pumpkin is equipped
  • onSheared: returns ArrayList<ItemStack> containing one pumpkin block; clears HAS_PUMPKIN flag

Notes

  • Extends EntitySnowman (which extends EntityGolem → EntityCreature → EntityLiving → Entity)
  • All other snow golem behaviour (snowball shooting, AI, health) is unchanged
  • getPickedResult uses WOODEN_ARMORSTAND? No — inherits from parent. Actually getPickedResult is overridden in EntityArmourStand only; this class does not override it.
  • Sound events inherited from parent class