{
  "pools": [
    {
      "rolls": 4,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:tomes/reroll",
          "weight": 20,
          "quality": 2
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 36,
          "quality": 0,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:space_hat",
          "weight": 8,
          "quality": 2
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 9
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:powder_snow_bucket",
          "weight": 30
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "weight": 10,
          "quality": 1,
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "survivalplus:resistance": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:tomes/sky",
          "weight": 20,
          "quality": 2
        }
      ]
    },
    {
      "rolls": 3,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:snowball",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:snow_block",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:paper",
          "functions": [
            {
              "function": "minecraft:set_custom_data",
              "tag": "{rabbitnote:tag}"
            },
            {
              "function": "minecraft:set_lore",
              "entity": "this",
              "lore": [
                {
                  "text": "It has a drawing of a rabbit in a dark cave",
                  "color": "yellow"
                }
              ],
              "mode": "append"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:inverted",
              "term": {
                "condition": "minecraft:reference",
                "name": "survivalplus:lucky_foot"
              }
            },
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "position": {
                  "y": {
                    "min": 0
                  }
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:rabbit_foot",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:enchantment_glint_override": true,
                "minecraft:rarity": "uncommon"
              }
            },
            {
              "function": "minecraft:set_custom_data",
              "tag": "{luck:tag}"
            },
            {
              "function": "minecraft:set_lore",
              "entity": "this",
              "lore": [
                {
                  "text": "Allows special drops from mobs",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "and other special things",
                  "color": "yellow"
                }
              ],
              "mode": "append"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:location_check",
              "predicate": {
                "position": {
                  "y": {
                    "max": 0
                  }
                }
              }
            }
          ]
        }
      ]
    }
  ]
}