Module:Sandbox/LootTable/Java.json

Jump to navigation Jump to search
Documentation[create] [refresh]
This module has no documentation. If you know how to use this module, please create it.
local json_data = [[
{
  "shipwreck-supply": {
    "id": "shipwreck_supply",
    "sub_category": "chest",
    "category": "shipwreck",
    "loot_table": {
      "type": "minecraft:chest",
      "pools": [
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 12,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:paper",
              "weight": 8
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 6,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:potato",
              "weight": 7
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:moss_block",
              "weight": 7
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 6,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:poisonous_potato",
              "weight": 7
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 4
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:carrot",
              "weight": 7
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 21,
                    "min": 8
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:wheat",
              "weight": 7
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "effects": [
                    {
                      "type": "minecraft:night_vision",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 10,
                        "min": 7
                      }
                    },
                    {
                      "type": "minecraft:jump_boost",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 10,
                        "min": 7
                      }
                    },
                    {
                      "type": "minecraft:weakness",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 8,
                        "min": 6
                      }
                    },
                    {
                      "type": "minecraft:blindness",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 7,
                        "min": 5
                      }
                    },
                    {
                      "type": "minecraft:poison",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 20,
                        "min": 10
                      }
                    },
                    {
                      "type": "minecraft:saturation",
                      "duration": {
                        "type": "minecraft:uniform",
                        "max": 10,
                        "min": 7
                      }
                    }
                  ],
                  "function": "minecraft:set_stew_effect"
                }
              ],
              "name": "minecraft:suspicious_stew",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:coal",
              "weight": 6
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 24,
                    "min": 5
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:rotten_flesh",
              "weight": 5
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 3,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:pumpkin",
              "weight": 2
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 3,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:bamboo",
              "weight": 2
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 5,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:gunpowder",
              "weight": 3
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 2,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:tnt"
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ],
              "name": "minecraft:leather_helmet",
              "weight": 3
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ],
              "name": "minecraft:leather_chestplate",
              "weight": 3
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ],
              "name": "minecraft:leather_leggings",
              "weight": 3
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ],
              "name": "minecraft:leather_boots",
              "weight": 3
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 10,
            "min": 3
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:empty",
              "weight": 8
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:coast_armor_trim_smithing_template"
            }
          ],
          "rolls": 1
        }
      ]
    }
  },
  "woodland-mansion": {
    "id": "woodland_mansion",
    "sub_category": "chest",
    "category": "jungle-temple",
    "loot_table": {
      "type": "minecraft:chest",
      "pools": [
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "name": "minecraft:lead",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:golden_apple",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:enchanted_golden_apple",
              "weight": 2
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:music_disc_13",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:music_disc_cat",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:name_tag",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:chainmail_chestplate",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:diamond_hoe",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:diamond_chestplate",
              "weight": 5
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "function": "minecraft:enchant_randomly"
                }
              ],
              "name": "minecraft:book",
              "weight": 10
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 3,
            "min": 1
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:iron_ingot",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:gold_ingot",
              "weight": 5
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:bread",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:wheat",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:bucket",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:redstone",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:coal",
              "weight": 15
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:melon_seeds",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:pumpkin_seeds",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:beetroot_seeds",
              "weight": 10
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 4,
            "min": 1
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:bone",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:gunpowder",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:rotten_flesh",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:string",
              "weight": 10
            }
          ],
          "rolls": 3
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:empty",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:vex_armor_trim_smithing_template"
            }
          ],
          "rolls": 1
        }
      ]
    }
  },
  "buried-treasure": {
    "loot_table": {
      "type": "minecraft:chest",
      "pools": [
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "name": "minecraft:heart_of_the_sea"
            }
          ],
          "rolls": 1
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:iron_ingot",
              "weight": 20
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:gold_ingot",
              "weight": 10
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 2,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:tnt",
              "weight": 5
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 8,
            "min": 5
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 8,
                    "min": 4
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:emerald",
              "weight": 5
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 2,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:diamond",
              "weight": 5
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 5,
                    "min": 1
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:prismarine_crystals",
              "weight": 5
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 3,
            "min": 1
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "name": "minecraft:leather_chestplate"
            },
            {
              "type": "minecraft:item",
              "name": "minecraft:iron_sword"
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 1,
            "min": 0
          }
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:cooked_cod"
            },
            {
              "type": "minecraft:item",
              "functions": [
                {
                  "add": false,
                  "count": {
                    "type": "minecraft:uniform",
                    "max": 4,
                    "min": 2
                  },
                  "function": "minecraft:set_count"
                }
              ],
              "name": "minecraft:cooked_salmon"
            }
          ],
          "rolls": 2
        },
        {
          "bonus_rolls": 0,
          "entries": [
            {
              "type": "minecraft:item",
              "name": "minecraft:potion"
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_potion",
              "id": "minecraft:water_breathing"
            }
          ],
          "rolls": {
            "type": "minecraft:uniform",
            "max": 2,
            "min": 0
          }
        }
      ]
    }
  }
}
]]

return json_data