{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "furnicraft:white_log",
			"properties": {
				"furnicraft:direction": [
					0,
					1,
					2
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('furnicraft:direction') == 0",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:direction') == 1",
				"components": {
					"minecraft:rotation": [
						270,
						0,
						0
					]
				}
			},
			{
				"condition": "query.block_property('furnicraft:direction') == 2",
				"components": {
					"minecraft:rotation": [
						0,
						0,
						270
					]
				}
			}
		],
		"components": {
			"minecraft:unit_cube": {},
			"minecraft:explosion_resistance": 2,
			"minecraft:destroy_time": 1.5,
			"minecraft:on_player_placing": {
				"event": "minecraft:placing_direction",
				"target": "self"
			},
			"minecraft:material_instances": {
				"*": {
					"render_method": "opaque",
					"texture": "cerezoside"
				},
				"up": {
					"render_method": "opaque",
					"texture": "whitetop"
				},
				"down": {
					"render_method": "opaque",
					"texture": "whitetop"
				}
			},
			"minecraft:on_interact": {
				"event": "furnicraft:stripped",
				"condition": "query.equipped_item_any_tag('slot.weapon.mainhand', 'minecraft:is_axe')"
			},
			"minecraft:breathability": "solid",
			"minecraft:on_player_destroyed": {
				"event": "leaves_decay",
				"target": "self"
			},
			"minecraft:creative_category": {
				"category": "Nature",
				"group": "itemGroup.name.log"
			},
			"tag:fence": {}
		},
		"events": {
			"minecraft:placing_direction": {
				"set_block_property": {
					"furnicraft:direction": "math.floor(query.cardinal_block_face_placed_on / 2.0)"
				}
			},
			"furnicraft:stripped": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"setblock ~~~ furnicraft:stripped_white_log",
								"playsound hit.wood @a ~~~"
							]
						}
					},
					{
						"damage": {
							"type": "durability",
							"amount": 1,
							"target": "item"
						}
					}
				]
			},
			"leaves_decay": {
				"run_command": {
					"command": [
						"fill ~3 ~ ~3 ~-3 ~2 ~-3 furnicraft:white_leaves_decay 0 replace furnicraft:white_leaves"
					]
				}
			}
		}
	}
}