noobanidus / randompotion

Loot function to randomise potion and potion-like items while obeying the blacklist tag, forge:random_potion_blacklist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RandomPotion

Provides a function that can convert a potion into a potion randomly. Use: randompotion:random_potion as your item function on an item that can have a potion applied to it.

You can blacklist specific potion types by adding them to the blacklist list in the forge:random_potion_blacklist tag.

Example

Here is an example for 1.20:

{
  "type": "minecraft:chest",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            },
            {
              "function": "randompotion:random_potion"
            }
          ],
          "name": "minecraft:potion"
        }
      ],
      "rolls": 1.0
    }
  ],
  "random_sequence": "randompotion:test_loot_table"
}

About

Loot function to randomise potion and potion-like items while obeying the blacklist tag, forge:random_potion_blacklist.

License:MIT License


Languages

Language:Java 100.0%