Kill entity event

Started by DragonOfAsparas on Mon, 03/05/2018 - 17:58

Topic category: Feature requests and ideas for MCreator

Last seen on 13:00, 15. Aug 2018
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Kill entity event
Mon, 03/05/2018 - 17:58

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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:00, 15. Aug 2018
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:00, 15. Aug 2018
Joined Apr 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.