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

Loot_table random_chance

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 1.13-pre4, Minecraft 1.13-pre9
    • Minecraft 1.13-pre9
    • None
    • Java 8
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: