跳到正文
烈焰甘蔗Wiki

Brown Mooshroom

Registry name

etfuturum:brown_mooshroom

Audit correction: previously written as etfuturum.brownMooshroom. That was derived from the Java constant name, not the string argument passed to ModEntityList.registerEntity. Evidence: core/proxy/CommonProxy.java:258 registerEntity(EntityBrownMooshroom.class, "brown_mooshroom", 12, ...)

Basic info

  • Health: Inherited from EntityMooshroom (standard cow health: 10 HP)

  • Armor: None

  • Size: Inherited from EntityMooshroom

  • Spawn conditions: No EntityRegistry.addSpawn entry exists for EntityBrownMooshroom in this source tree. The config’s own description states the actual acquisition route: “Brown mooshroom variant, the red mooshrooms turn into then when they are hit by lightning” (configuration/configs/ConfigEntities.java:51). Also obtainable via the etfuturum:brown_mooshroom spawn egg / commands.

    Audit correction: the previous text said brown mooshrooms “spawn in mushroom fields biome”. No biome spawn entry for them exists in this repository.

Configuration gate

  • Entity registration: ConfigEntities.enableBrownMooshroom, key enableBrownMooshroom, default ON (configuration/configs/ConfigEntities.java:51).
  • Drops: Brown mushrooms (5 items when sheared), suspicious stew (when using bowl while holding effect)
  • Behaviour: Brown-variant of the mooshroom. Shearing converts it to a normal cow. Feeding it suspicious stew gives it a stored effect that can be harvested as suspicious stew.

Shearing

  • onSheared(ItemStack, ...):
    1. Spawns EntityCow at the same position with same health/rotation
    2. Dies
    3. Returns 5× Blocks.brown_mushroom
    4. Plays sheep-shear sound and largeexplode particle

Suspicious stew interaction

The brown mooshroom can store one potion effect:

Feeding the mooshroom (right-click with suspicious stew):

  • Stores the stew’s effect ID and duration
  • Consumes 1 stew from player’s hand
  • Plays 4× mobSpell particles

Harvesting (right-click with empty bowl, adult only):

  • Creates a new ItemSuspiciousStew stack with the stored effect
  • Clears the stored effect
  • Bowl is consumed (or swapped if player had a full stack)
  • If effect duration was 0, defaults to 160 ticks

Feeding effect: Any effect from EtFuturum.getSuspiciousStewEffect() (the stew’s stored effect)

Stored effect

  • effectID (byte): potion ID (0 if none)
  • effectDuration (int): duration in ticks (0 if none)
  • Persisted via entity data (not NBT directly — stored in getEntityData() separately from super NBT)

Notes

  • Extends EntityMooshroom (which extends EntityCow)
  • createChild() returns a new EntityBrownMooshroom
  • interact() first checks for stew/bowl interaction, then falls back to parent cow logic
  • The mooshroom can be naming-named (custom name tag supported by entity base)
  • Suspicious stew effects stored: EffectId and EffectDuration NBT tags in the entity data compound
浏览全部模组