Started by
demotestoauth
on
Topic category: Help with Minecraft modding (Java Edition)
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
This should work. (if the image doesn't show just right click and open in new tab)
That should work but it will not contain witherite enchant.. so any way to sneak some nbt data?
You could use the spawn item command. Might need to search online though on how to spawn it with enchantment
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.