Skip to content

MobStatues 1.21.11

Choose a tag to compare

@DavidS-Repo DavidS-Repo released this 14 Jan 23:21
· 1 commit to main since this release
f21e2a0

Highlights

  • Add special "bait statue" behavior so mobs will actually target them in farms like slimefarms or enderman farms.
  • Bait statues stay locked in place, don’t take damage, and don’t get knocked around.
  • Normal statues still work the same as before (invulnerable and frozen).

Supported bait statue types in this release:

  • Endermite
  • Iron Golem
  • Snow Golem
  • Villager

What changed

Bait statues can be targeted

Bait statues are no longer spawned as Invulnerable: 1b, because that makes mobs ignore them.

Instead:

  • Mob attacks are allowed to "hit" the statue
  • Damage is forced to 0.0 so it never dies

This makes endermen and other hostile mobs actually lock onto the bait statue.

Bait statues stay in place

  • The plugin now saves a "home location" per statue ID.
  • When a bait statue gets hit, it snaps back to its home location and velocity is reset to stop knockback/pushing.

Players can’t break bait statues by accident

  • Player damage on bait statues is cancelled.

Cleanup + safety

  • When statues are removed, passengers are removed too.
  • Home location data is cleaned up when a statue is deleted or dies.

Behavior changes

  • Endermite / Iron Golem / Snow Golem / Villager statues:

    • Can be attacked by mobs
    • Take 0 damage
    • Stay pinned in place
  • All other statue types:

    • Still fully invulnerable
    • Still ignore all damage like before

Version

  • Updated for Paper 1.21.11