Rare Custom Drop for mob

Started by Lord_Gator on

Topic category: Help with modding (Java Edition)

Last seen on 23:16, 12. Nov 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Rare Custom Drop for mob

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? 

Last seen on 15:19, 30. Dec 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2 ways, you can either make…
Fri, 05/14/2021 - 16:53

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.

Example

Last seen on 23:16, 12. Nov 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you but I am trying to…
Sat, 05/15/2021 - 16:40

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.

Last seen on 07:56, 15. Nov 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use loot tables to…
Sun, 05/30/2021 - 05:22

You can use loot tables to change what items vanilla mobs drop.