Stray

Registry name

etfuturum.stray

Basic info

  • Health: Inherited from EntitySkeleton (standard skeleton health: ~20 HP)
  • Armor: Inherited from EntitySkeleton
  • Size: Inherited from EntitySkeleton (standard)
  • Spawn conditions: Cold/snowy biomes; same spawn rules as skeleton but in appropriate biomes
  • Drops:
    • Arrows: 0–3 (+ fortune)
    • Bones: 0–3 (+ fortune)
    • Bow (always equipped)
  • Behaviour: Skeleton variant with Slowness箭. Overrides ranged attack to fire EntityTippedArrow with Slowness effect instead of normal arrows.

Key differences from Skeleton

Feature Stray Skeleton
Arrow type EntityTippedArrow (Slowness) Normal EntityArrow
On hit (melee) Applies Slowness (140 × difficulty ticks) Nothing
Ambient sound minecraft:entity.stray.ambient minecraft:entity.skeleton.ambient
Step sound minecraft:entity.stray.step minecraft:entity.skeleton.step
Halloween costume Can wear pumpkin Same

Ranged attack

  • Uses EntityTippedArrow shot from bow
  • Arrow carries Slowness potion effect
  • Arrow damage: baseDamage × 2 + random_gaussian + difficulty × 0.11
  • Enchantments (Power, Punch, Flame) apply normally
  • Arrow entity uses ModItems.TIPPED_ARROW NBT for the potion data

AI tasks

  1. Swimming
  2. Restrict sun (stays in shade)
  3. Flee sun
  4. Wander
  5. Watch closest player
  6. Look idle
  7. Arrow attack (task 4, added at spawn via onSpawnWithEgg)
  8. Target: hurt-by-target
  9. Target: nearest player

Notes

  • Extends EntitySkeleton — inherits full skeleton attributes, AI, equipment, etc.
  • setCombatTask() called on init: swaps AI to use EntityAIArrowAttack
  • Spawn egg returns skeleton egg via ModEntityList.getEggFromEntity
  • addRandomArmor() calls super then forces bow in main hand
  • dropFewItems override: arrows + bones only (no bow drop)