Started by
Lord_Gator
on
Topic category: Help with Minecraft modding (Java Edition)
Hello I am trying to make a mob (ex: a panda) drop a custom item that has a rare chance of dropping. I think I had done it but then all the entities were dropping it. what should I do?
2 ways, you can either make a loot table or create a procedure.
Loot tables are a little more complicated so I wouldn't recommend, but if you're more experienced you can do that.
To create a procedure for a rare drop you can make it roll a random number (ex: 1-10) and if that number is greater than 9, then it creates the dropped item, here is an image. In this example, once the procedure is called it will have a 10% chance to drop a diamond.
Thank you but I am trying to do it for a already made mob so there is no way to change what happens when it dies.
You can use loot tables to change what items vanilla mobs drop.