{
	"type": "minecraft:chest",
	"pools": [
		{
			"rolls": 1,
			"bonus_rolls": 0,
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:diamond",
					"weight": 5,
					"quality": 1,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"min": 2,
								"max": 3
							}
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:gold_ingot",
					"weight": 10,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"min": 3,
								"max": 4
							}
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:iron_ingot",
					"weight": 8,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"min": 3,
								"max": 5
							}
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:emerald",
					"weight": 5,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"min": 3,
								"max": 4
							}
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 7,
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": {
								"min": 20,
								"max": 39
							},
							"options": "#minecraft:on_random_loot"
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 4,
					"quality": 1,
					"functions": [
						{
							"function": "minecraft:enchant_randomly",
							"options": [
								"minecraft:mending"
							]
						}
					]
				}
			]
		}
	]
}
