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 Minecraft modding (Java Edition)

Active 6 years ago
Joined Aug 2019
Points:
664

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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*.

 

Active 10 months ago
Joined Jun 2019
Points:
2602

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3319
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.

Active 6 years ago
Joined Aug 2019
Points:
664

User statistics:

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

Active 10 months ago
Joined Jun 2019
Points:
2602

User statistics:

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

it's in "create A NEW TOOL"

Active 5 months ago
Joined Jun 2024
Points:
104

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
If ure still trying to do…
Sat, 02/08/2025 - 17:36

If ure still trying to do this you could do in the items when living entity is hit with item do if current health of source entity = 0 do set score kills to get score kills+1