Started by
DragonOfAsparas
on
Topic category: Feature requests and ideas for MCreator
I have always found it strange that Mcreator has a "spawn entity" event but not one to kill an entity. I know how to make the event through the code but i thought i it would be nice as an idea to make it easier to kill an entity using an event.
Check in global settings
If you use "When mob attacks (event)" go to https://mcreator.net/tracker/issue/41158
This is the "kill entity event"
public void onKillEntity(EntityLivingBase entityLivingBase) {
super.onKillEntity(entityLivingBase);
int i = (int) this.posX;
int j = (int) this.posY;
int k = (int) this.posZ;
Entity entity = this;
}
I just use setDead(); Will instantly kill the mob.
But as i mentioned in the post ''i know how to do it'' its just a suggestion to make it easier.