Kill entity event

Started by DragonOfAsparas on

Topic category: Feature requests and ideas for MCreator

Last seen on 13:32, 28. Aug 2021
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Kill entity event

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.

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check in global settings
Mon, 03/05/2018 - 21:13

Check in global settings

Last seen on 16:20, 17. Mar 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is the "kill entity…
Sat, 03/10/2018 - 12:49

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;

        }

Last seen on 13:32, 28. Aug 2021
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just use setDead(); Will…
Sat, 03/10/2018 - 13:03

I just use setDead(); Will instantly kill the mob.

Last seen on 13:32, 28. Aug 2021
Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But as i mentioned in the…
Sat, 03/10/2018 - 13:06

But as i mentioned in the post ''i know how to do it'' its just a suggestion to make it easier.