Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-132210

Loot_table random_chance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.13-pre4, Minecraft 1.13-pre9
    • Fix Version/s: Minecraft 1.13-pre9
    • Labels:
      None
    • Environment:
      Java 8
    • Confirmation Status:
      Unconfirmed

      Description

       

      The condition "random_chance" is supposed to take a value from 0.0-1.0, however it's requiring a lower decimal to perform as expected when there are multiple entries.

      When specifying the condition:

      "random_chance", "chance": 0.10
      

      the loot from the entry is dropped nearly every single time. However this change to the "chance" decimal:

      "random_chance","chance": 0.010
      

      works out to a 10% chance to drop.  The more items you have as entries, the lower you need to have the chance decimal to work correctly.

      Loot table where this happens attached. One with a few items that drop more often than 10% of the time, the other table with items where they are dropping constantly.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            k0nker Blake Zimmerman
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: