Modify default mob drops

Started by demotestoauth on

Topic category: Help with modding (Java Edition)

Last seen on 10:12, 21. Nov 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Modify default mob drops

I am new mcreator and just starting out. so, my problem is how to modify default mob drops. I have written an enchantment "Witherite" that can be applied on swords and axes that gives the hit entity wither effect based on the level of 1-4.... so, what i want to do is whenever a wither(boss) is killed, It Should always drop witherite 2 book along with the nether star. I have no idea on how to accomplish this. so, I would be very grateful if someone could help

 

 

 

Last seen on 03:52, 28. Jul 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should work. (if the…
Wed, 10/05/2022 - 09:45

This should work. (if the image doesn't show just right click and open in new tab)

Pic

Last seen on 10:12, 21. Nov 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That should work but it will…
Wed, 10/05/2022 - 10:34

That should work but it will not contain witherite enchant.. so any way to sneak some nbt data?

Last seen on 03:52, 28. Jul 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could use the spawn item…
Wed, 10/05/2022 - 10:57

You could use the spawn item command. Might need to search online though on how to spawn it with enchantment

Last seen on 10:12, 21. Nov 2022
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to do it.  By…
Mon, 10/10/2022 - 10:37

I managed to do it. 

By creating a variable of type itemstack and add a specific enchant with level to the variable and then spawning the enchanted book.