Trying to make a tool that after (x amount of mob kills) spawns an entity, how would I go about this?

Started by DSCO on Thu, 08/15/2019 - 03:17

Topic category: Help with MCreator modding

Last seen on 07:19, 22. Aug 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Trying to make a tool that after (x amount of mob kills) spawns an entity, how would I go about this?
Thu, 08/15/2019 - 03:17

I only recently discovered MCreator, and was trying to make a simple mod to test the waters. But besides just making a tool or a crafting recipe, I don;t know how to male a procedure for something like this. My guess is give the item a counter of sources, when it hits x/x it spawns the entity (being a linger potion of healing). How would you go around tis *cause I got no idea at all*.

 

Last seen on 13:33, 23. Sep 2019
Joined Jun 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
So there is a thing in…
Thu, 08/15/2019 - 09:50

So there is a thing in procedures called "Set entity nbt tag tagname to ..."\

basicly you make a procedure that sets it +1 and bind it to when "mob killed with tool"

then make another procedure checking with if statements about your nbt=x(x is the number of kills you want). If that is true, set your nbt to zero again, and spawn your mob. But that will only work if you have 1 tool in your inventory.

Last seen on 07:19, 22. Aug 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Looking around for event…
Thu, 08/15/2019 - 10:06

Looking around for event triggers/procedures I also can't find what could equate to "mob killed with tool". Entity kills entity is just mob v mob. Would you know what I could do for this. (got MCreator yesterday)

Last seen on 13:33, 23. Sep 2019
Joined Jun 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
it's in "create A NEW TOOL"
Thu, 08/15/2019 - 10:35

it's in "create A NEW TOOL"