mojira.dev
MC-234840

The calculation of the loot table is wrong

When you use item modifier binomial_with_bonus_count of the loot table, one more item must drop, even if its probability is set to 0. Most crops that use binomial distribution for calculation  are affected by it (e.g. carrots, potatoes), dropping one more item than expected

Comments 2

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Can't reproduce. Used this loot table and got only one diamond drop

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1.0,
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond",
          "functions": [
            {
              "function": "minecraft:apply_bonus",
              "enchantment": "minecraft:fortune",
              "formula": "minecraft:binomial_with_bonus_count",
              "parameters": {
                "extra": 3,
                "probability": 0
              }
            }
          ]
        }
      ]
    }
  ]
}

Minc

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved