Started by
Riodroid124
on
Topic category: Help with Minecraft modding (Java Edition)
I've added a rare drop to the Wither boss mob by creating a Loot Table under the Minecraft namespace.
Which should over-ride it's vanilla Loot Table.., but it didn't.
This is exactly what I wanted, so no problems there.
But when I tried it on other mobs, it did replace the vanilla Loot Table.
When I tried the Mod namespace for the creeper, the modded item didn't drop at all.
I did set the drop chance to always drop for testing purposes off course.
So the question is: how do I "ADD" a drop chance??
Minecraft namespace replaces vanilla & Mod namespace doesn't use the new Loot Table.
I solved it by making the added loot a Procedure rather then a Loot Table.
use an ''IF do'' statement and check for ''(sub)type of''.
Add another ''IF do'' statement and a ''<'' (less then) with a random generator and a number if you want it to be a rare drop.
Finally add ''Spawn item/gem'' for the drop itself.
https://imgur.com/a/XWAkrCd
i'm trying to do something similar but with creeper loot when killed by a skeleton. it works as expected but i cant figure out how to make it drop only one item, as the vanilla loot will still drop as well as the loot ive added (dropping two discs instead of one). im trying to do the same thing as you but i actually want it to overwrite normal loot. it doesnt look like theres a way to directly add it to the loot table, so this roundabout method is the only way i can think of doing this. i was just wondering if you had any ideas if it doesnt bother you