跳到正文
烈焰甘蔗Wiki

Rabbit

Registry name

etfuturum:rabbit

Audit correction: previously written as etfuturum.rabbit (wrong separator). Evidence: core/proxy/CommonProxy.java:168 registerEntity(EntityRabbit.class, "rabbit", 3, ...)

Basic info

  • Health: 3 HP
  • Armor: None
  • Size: 0.4 × 0.5 (width × height)
  • Spawn conditions: Natural spawning via Minecraft’s biome system; type determined by biome dictionary in EntityRabbit.onSpawnWithEgg (entities/EntityRabbit.java:123-146):
    • Sandy biomes (weight 3, group 1–3) → Gold rabbit, always
    • Snowy + Plains + Forest biomes (weight 6, group 1–3) → 50/50 White or White-Spotted; in Plains/Forest specifically, 1/3 each of Black, Brown, Salt
    • Other biomes → random of any of the 6 types Note BROWN is therefore only ever produced in Plains/Forest biomes, and the SANDY entry never yields a Brown rabbit. The spawn biome list also explicitly filters out any biome whose class name contains “divinerpg” (CommonProxy.java:177). Evidence: core/proxy/CommonProxy.java:170 and :179.

Configuration gate

  • Entity registration + spawning: ConfigEntities.enableRabbit, key enableRabbits, default ON (configuration/configs/ConfigEntities.java:50).
  • Drops:
    • 1–3 rabbit hide (1–2 + fortune bonus)
    • 0–1 rabbit raw (if not burning) or cooked (if burning)
    • 10% chance (+ fortune) → rabbit’s foot

Stats

Attribute Value
Max health 3 HP
Movement speed 0.3

Movement types

Rabbits have different hop styles via EnumMoveType:

Type Speed Jump height Duration Step delay
NONE 0 0 30 1
HOP 0.8 0.2 20 10
STEP 1.0 0.45 14 14
SPRINT 1.75 0.4 1 8
ATTACK 2.0 0.7 7 8

AI tasks

  • Swimming
  • Panic (fleeing, 1.33× speed)
  • Mate (breeding)
  • Tempt (by carrot)
  • Raid farm (goto carrot crops at growth stage ≥7, break them)
  • Wander
  • Watch closest player
  • Avoid wolves and players

Farm raiding

AIRaidFarm: If mobGriefing enabled and rabbit wants carrots (carrotTicks == 0), locates a fully-grown carrot crop, breaks it, sets carrotTicks = 100 (refuses to raid again for that many ticks).

Breeding

  • Breeding items: Carrot, golden carrot, or yellow flower (Blocks.yellow_flower)
  • Baby rabbits spawn with -24000 aging (grows to adult in 20 min)

Jump mechanics

  • RabbitJumpHelper.doJump() performs a STEP type hop
  • Normal movement uses HOP
  • Sprinting uses SPRINT
  • ATTACK type available but not actively used in default AI

Notes

  • jumpTicks / jumpDuration / jumpCompletion(): smooth jump animation support
  • createRunningParticles(): overridden (empty) — no dust particles when running
  • On spawn with egg, type is deterministic based on biome
  • Sound: minecraft:entity.rabbit.jump (on hop), .ambient, .hurt, .death
浏览全部模组