(Solved) How to stop block from dropping nothing

Started by Butterkat on

Topic category: Help with modding (Java Edition)

Last seen on 22:37, 7. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved) How to stop block from dropping nothing
Thu, 07/25/2024 - 19:19 (edited)

I'm using a custom loot table for a blocks so it will drop one of three items, but sometimes it drops nothing at all. How do i fix this?

Edited by Butterkat on Thu, 07/25/2024 - 19:19
Last seen on 19:55, 25. Jul 2024
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would need to see how you…
Thu, 07/25/2024 - 18:35

I would need to see how you set up your loot tables, if you can send an image I may be able to help.

Last seen on 22:37, 7. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Idk how to add an image so…
Thu, 07/25/2024 - 18:58

Idk how to add an image so ill try to recreate it here:

Rolls: Min: 1 Max: 1

Entry Weight: 5 Count: Min: 0 Max: 1

Entry Weight: 3 Count: Min: 0 Max: 1

Entry Weight: 2 Count: Min: 0 Max: 1

(no bonus rolls, and all in one loot table pool if that helps)

 

Last seen on 19:55, 25. Jul 2024
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see the issue.  So, always…
Thu, 07/25/2024 - 19:08

I see the issue. 

So, always set your minimums to 1

Loot tables work something like this

  • Rolls: This defines how many times your loot table picks an object from the selected pool
  • Roll Min: The minimum number of times a loot table will select an object
  • Roll Max: The maximum number of times a loot table will select an object
  • Entry Weight: The chance at which the item is selected
    • 5+3+2=10, your first item as a 5/10 chance, second a 3/10 chance, third a 2/10 chance
  • Count: The number of each item that can be dropped
  • If you have your minimum count number set to 0 and  maximum to 1, if that item is selected, there is a chance for it to drop either 0 or 1 of that item.

Hope this helps.

Last seen on 19:55, 25. Jul 2024
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Minimums of 0 are best only…
Thu, 07/25/2024 - 19:13

Minimums of 0 are best only used for loot tables with very rare items, for example, wither skeleton skulls. A minimum of 0 and maximum of 1 allows you to half the number of rolls your loot table needs while still giving the desired result as it is a 50/50 chance to drop the item if the item is selected (useful for lag purposes)

Last seen on 22:37, 7. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
tysm!!! i tested it like 30…
Thu, 07/25/2024 - 19:18

tysm!!! i tested it like 30 times and the problem was fixed :D

Last seen on 19:55, 25. Jul 2024
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Happy to help.
Thu, 07/25/2024 - 19:19

Happy to help.