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: returnshasPumpkin()— only shears when pumpkin is equippedonSheared: returnsArrayList<ItemStack>containing one pumpkin block; clearsHAS_PUMPKINflag
Notes
- Extends
EntitySnowman(which extendsEntityGolem→EntityCreature→EntityLiving→Entity) - All other snow golem behaviour (snowball shooting, AI, health) is unchanged
getPickedResultusesWOODEN_ARMORSTAND? No — inherits from parent. ActuallygetPickedResultis overridden inEntityArmourStandonly; this class does not override it.- Sound events inherited from parent class