knokko / custom-items-gradle

Knokko's Custom Items: Add custom items to your server, completely free of charge
MIT License
15 stars 3 forks source link

Non-integer chances in Output tables #150

Closed knokko closed 2 years ago

knokko commented 2 years ago

Currently, all entries in an output table have an integer chance to be chosen (for instance 10% or 60%). This works well most of the time, but is not suitable for very rare items that should have a chance below 1%. I should make it possible to use non-integer chances as well. Note: floating point rounding errors can be dangerous, so a fixed point chance might be better.