I need help with an item given to the player when he kills a mob with a certain weapon

Started by Kokorakonn on Sun, 07/11/2021 - 18:21

Topic category: Help with modding (Java Edition)

Last seen on 12:27, 20. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I need help with an item given to the player when he kills a mob with a certain weapon
Sun, 07/11/2021 - 18:21

I want the player to be given an item called blood, when he hits any mob with a sword tool called battle axe. I tried making a procedure in the "when mob is hit with tool" in the battle axe's creation, with no additional trigger, simply adding 1 blood to the player's invectory, but it doesn't work. Any help would be appreciated. Thanks in advance.

Last seen on 12:27, 20. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Side note, I think it might…
Sun, 07/11/2021 - 18:36

Side note, I think it might be a bug but I am not sure. My other guess is that I still need to set a trigger instead of leaving it to no additional trigger.

Last seen on 02:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use Source Entity in place…
Sun, 07/11/2021 - 19:00

Use Source Entity in place of Target/Provided Entity

 

Basically you were giving blood to the entity you hit, not the entity using the tool

Last seen on 12:27, 20. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Source entity? Is that…
Sun, 07/11/2021 - 19:29

Source entity? Is that something I can find in the procedures list? I got confused. Could you please explain it a bit when you are able?

Last seen on 12:27, 20. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ok, I tried executing the…
Sun, 07/11/2021 - 19:42

ok, I tried executing the command for @p and it works only for the battle axe, exactly what I wanted. Problem solved.