Started by
seiun
on
Topic category: Advanced modding
Is there a way to make tamed mobs despawn I made a staff that summons a custom mob but i want it to despawn after some time and i dont know how
Topic category: Advanced modding
Is there a way to make tamed mobs despawn I made a staff that summons a custom mob but i want it to despawn after some time and i dont know how
Stick this in the summoned mob’s tick method:
if (this.tickCount >= 200) this.discard();
Replace 200 with however long you want the mob to last (it’s measured in ticks)