{
	"type": "minecraft:chest",
	"pools": [
		{
			"rolls": 1,
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:emerald",
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"min": 0,
								"max": 5
							}
						}
					]
				}
			]
		},
		{
			"rolls": 4,
			"bonus_rolls": 0,
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 18,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"type": "minecraft:uniform",
								"min": 1,
								"max": 2
							},
							"add": false
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:paper",
					"weight": 16,
					"functions": [
						{
							"function": "minecraft:set_count",
							"count": {
								"type": "minecraft:uniform",
								"min": 2,
								"max": 3
							},
							"add": false
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:map",
					"weight": 6
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:compass",
					"weight": 2
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 1,
					"quality": 1,
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": {
								"min": 18,
								"max": 28
							},
							"options": "#minecraft:on_random_loot"
						}
					]
				}
			]
		},
		{
			"rolls": {
				"min": -2,
				"max": 1
			},
			"bonus_rolls": 0,
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": 30,
							"options": "#minecraft:on_random_loot"
						}
					]
				}
			]
		}
	]
}
