Hello everyone, it's me, TheGreatKingBoo_!
Today, i just wanted to do a quick suggestion for a thing that strangely hasn't been implemented yet (from what i know atleast): The "Despawn Mob" procedure element
Basically, it would just despawn the mob that has this element in his procedure, nothing too hard to understand!
Issue comments
if you can't wait for the update here is the code for it :)
this one is for when you right click the mob with a specific item it will die V
if (entity.inventory.getCurrentItem() != null && entity.inventory.getCurrentItem().getItem() == mcreator_adogbiscuit.block) {
if (entity instanceof EntityPlayer)
setDead();
}
return true;
(paste this under the ProcessInteract part)
And this one is for when a mob has existed for a certain amount of ticks it dies V
@Override
public void onUpdate()
{
super.onUpdate();
if (this.ticksExisted >= 600)
{
this.setDead();
}
}
(paste this under onStruckByLightning)
So you would like a procedure block to remove the entity that is provided via dependency?