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

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to make a tool that after (x amount of mob kills) spawns an entity, how would I go about this?

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 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

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

it's in "create A NEW TOOL"