How to customize the drop from a mob if it is killed by a certain weapon.

Started by Shorfi on

Topic category: User side tutorials

Last seen on 23:54, 5. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to customize the drop from a mob if it is killed by a certain weapon.

Hello. I am developing a mod for MCreator 2023.1 for minecraft 1.18.2. I want to add an axe to the game that when you kill a mob with it, chops off its head, like it was done with that big sword from Tinkers' Construct, but the procedure I made made made the mob drop its head when you kill it with any weapon.

Last seen on 03:15, 26. Apr 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity dies check source…
Sun, 02/18/2024 - 01:20

entity dies

check source entities main hand 

if they have the specific weapon, add item to inventory, and remove the original drop

Last seen on 23:54, 5. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where is the check on what…
Mon, 02/19/2024 - 21:06

Where is the check on what is in the main hand? And if I switched to MCreator 23.4.