跳到正文
烈焰甘蔗Wiki

Snow Golem (New)

Registry name

etfuturum:snow_golem

Audit correction: previously written as etfuturum.newSnowGolem. This name overrides the vanilla entity of the same name. Evidence: core/proxy/CommonProxy.java:255 registerEntity(EntityNewSnowGolem.class, "snow_golem", 11, ...)

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

Configuration gate

  • Entity registration: ConfigEntities.enableShearableSnowGolems, key enableShearableSnowGolems, default ON (configuration/configs/ConfigEntities.java:66; wiring at core/proxy/CommonProxy.java:254-255). This entity replaces the vanilla minecraft:snow_golem, so turning the option off restores the vanilla snow golem.
浏览全部模组