Started by
Butterkat
on
Topic category: Help with modding (Java Edition)
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
I would need to see how you set up your loot tables, if you can send an image I may be able to help.
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)
I see the issue.
So, always set your minimums to 1
Loot tables work something like this
Hope this helps.
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)
tysm!!! i tested it like 30 times and the problem was fixed :D
Happy to help.