Group Outcome

The group outcome executes multiple outcomes in order during the same game tick.

{
  "type": "lucky:group",
  "outcomes": [
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_sword"
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_shovel"
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_pickaxe"
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_axe"
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_hoe"
    }
  ]
}

This outcome spawns all Netherite tools on the ground.

Weight

The "weight" field (defaults to 1) is used to order the outcomes.

{
  "type": "lucky:group",
  "outcomes": [
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_sword",
      "weight": 10
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_shovel"
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_pickaxe",
      "weight": 0
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_axe",
      "weight": {
        "type": "minecraft:uniform",
        "max_inclusive": 11,
        "min_inclusive": 0
      }
    },
    {
      "type": "lucky:item",
      "item": "minecraft:netherite_hoe"
    }
  ]
}

This outcome has a small chance to drop the Netherite Axe first, or to not drop it at all. The Netherite Pickaxe will never drop. The Netherite Sword will almost always drop first.

In this scenario, "weight" does not change much, but for other outcome types this can have more impact.

Last updated