{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:book_light_blue",
			"properties": {
				"medieval:facing_direction": [
					0,
					1,
					2,
					3,
					4,
					5
				],
				"medieval:status": [
					1,
					2,
					3,
					4
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('medieval:facing_direction') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						180,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 3",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 4",
				"components": {
					"minecraft:rotation": [
						0,
						-90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 5",
				"components": {
					"minecraft:rotation": [
						0,
						90,
						0
					]
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 1",
				"components": {
					"minecraft:geometry": "geometry.book"
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 2",
				"components": {
					"minecraft:geometry": "geometry.four_books",
					"minecraft:entity_collision": {
						"origin": [
							-7.0,
							0.0,
							-7.0
						],
						"size": [
							14,
							15,
							14
						]
					},
					"minecraft:pick_collision": {
						"origin": [
							-7.0,
							0.0,
							-7.0
						],
						"size": [
							14,
							15,
							14
						]
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 3",
				"components": {
					"minecraft:geometry": "geometry.small_books",
					"minecraft:entity_collision": {
						"origin": [
							-7.5,
							0.0,
							-7.5
						],
						"size": [
							15,
							9,
							15
						]
					},
					"minecraft:pick_collision": {
						"origin": [
							-7.5,
							0.0,
							-7.5
						],
						"size": [
							15,
							9,
							15
						]
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 4",
				"components": {
					"minecraft:geometry": "geometry.stacked_books",
					"minecraft:entity_collision": {
						"origin": [
							-8.0,
							0.0,
							-8.0
						],
						"size": [
							16,
							14,
							16
						]
					},
					"minecraft:pick_collision": {
						"origin": [
							-8.0,
							0.0,
							-8.0
						],
						"size": [
							16,
							14,
							16
						]
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.book",
			"minecraft:material_instances": {
				"*": {
					"texture": "book_light_blue",
					"render_method": "opaque"
				}
			},
			"minecraft:creative_category": {
				"category": "items",
				"group": "itemGroup.name.sign"
			},
			"minecraft:flammable": {
				"flame_odds": 30,
				"burn_odds": 30
			},
			"minecraft:on_interact": {
				"event": "change"
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:entity_collision": {
				"origin": [
					-5.0,
					0.0,
					-7.0
				],
				"size": [
					10,
					3,
					14
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-5.0,
					0.0,
					-7.0
				],
				"size": [
					10,
					3,
					14
				]
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#80461d",
			"minecraft:destroy_time": 1
		},
		"events": {
			"change": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') < 4 && query.get_equipped_item_name('main_hand') == 'book_light_blue'",
						"set_block_property": {
							"medieval:status": "query.block_property('medieval:status') +1"
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @a ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 4 && query.get_equipped_item_name('main_hand') == 'book_light_blue'",
						"set_block_property": {
							"medieval:status": 1
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @a ~ ~ ~"
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
					"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}