onEvent('block.loot_tables', event => {
event.build('kubejs:lootblock_magic_druidic', table => {

table.pool(pool => {
    pool.rolls = 5
	Ingredient.of(['eidolon:arcane_gold_nugget', 'eidolon:sulfur', 'mana-and-artifice:vinteum_ingot', 'occultism:tallow',  'occultism:datura', 'eidolon:enchanted_ash', 'eidolon:soul_shard', 'eidolon:tallow', 'eidolon:fungus_sprouts',  'eidolon:warped_sprouts', 'eidolon:pewter_blend', 'evilcraft:dark_gem', 'evilcraft:dark_gem_crushed', 'forbidden_arcanus:arcane_crystal', 'forbidden_arcanus:arcane_gold_nugget', 'forbidden_arcanus:xpetrified_orb',  'forbidden_arcanus:soul', 'forbidden_arcanus:obsidian_with_iron', 'forbidden_arcanus:mundabitur_dust',  'forbidden_arcanus:ender_pearl_fragment', 'forbidden_arcanus:corrupti_dust', 'forbidden_arcanus:rune',  'forbidden_arcanus:dark_rune', 'malum:coal_fragment', 'malum:hallowed_gold_nugget', 'malum:soulstone', 'enigmaticlegacy:recall_potion']).stacks.forEach(stack => {
            pool.addEntry({
              "type": "minecraft:item",
			  "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ],
              "name": stack.id
            })
		})
})
	
table.pool(pool => {
    pool.rolls = 2
            pool.addEntry({
          "type": "minecraft:loot_table",
          "name": "twilightforest:entities/death_tome_books",
			  "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0.0,
                "max": 1.0,
                "type": "minecraft:uniform"
              }
            }
          ]
		})
})
})
})