{
	"type": "minecraft:chest",
	"pools": [
		{
			"rolls": {
				"min": 11,
				"max": 21
			},
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:paper",
					"weight": 8
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 12
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:feather",
					"weight": 8
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:ink_sac",
					"weight": 4
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:writable_book"
				}
			]
		},
		{
			"rolls": {
				"min": -1,
				"max": 1
			},
			"entries": [
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 3,
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": {
								"min": 11,
								"max": 20
							},
							"options": "#minecraft:on_random_loot"
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"weight": 2,
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": {
								"min": 21,
								"max": 30
							},
							"options": "#minecraft:on_random_loot"
						}
					]
				},
				{
					"type": "minecraft:item",
					"name": "minecraft:book",
					"quality": 1,
					"functions": [
						{
							"function": "minecraft:enchant_with_levels",
							"levels": {
								"min": 31,
								"max": 40
							},
							"options": "#minecraft:on_random_loot"
						}
					]
				}
			]
		}
	]
}
