{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:corrupted_grass_bale",
      "menu_category": {
				"category": "construction"
			},
      "states": {
				"nicothekid:block_rotation": [
					0,
					1,
					2
				]
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_corrupted_grass_bale_side",
          "render_method": "opaque",
          "ambient_occlusion": true,
					"face_dimming": true
        },
        "up": {
          "texture": "nicothekid_corrupted_grass_bale_up",
          "render_method": "opaque",
          "ambient_occlusion": true,
					"face_dimming": true
        },
        "down": {
          "texture": "nicothekid_corrupted_grass_bale_up",
          "render_method": "opaque",
          "ambient_occlusion": true,
					"face_dimming": true
        }
      },
      "minecraft:unit_cube": {},
      "minecraft:map_color": "#4F463E",
      "minecraft:breathability": "solid",
      "minecraft:light_dampening": 15,
      "minecraft:light_emission": 0,
      "minecraft:friction": 0.4,
      "minecraft:flammable": {
        "catch_chance_modifier": 5,
        "destroy_chance_modifier": 20
      },
      "minecraft:destructible_by_explosion": true,
      "minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0.02
			},
      "minecraft:loot": "loot_tables/mythical_biomes/blocks/nicothekid_corrupted_grass_bale.json",
      "minecraft:on_player_placing": {
				"event": "nicothekid:placing_rotation"
			},
      "minecraft:transformation": {
        "rotation": [ 0, 0, 0 ]
      },
      
      "tag:corrupted_grass_bale": {},
      "tag:custom_bale": {},
      "tag:plant": {}
    },
    "permutations": [
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 0",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 0, 0, 0 ]
          }
        }
      },
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 1",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 90, 0, 0 ]
          }
        }
      },
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 2",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 0, 0, 90 ]
          }
        }
      }
    ],
    "events": {
      "nicothekid:placing_rotation": {
				"set_block_state": {
					"nicothekid:block_rotation": "math.floor(query.cardinal_block_face_placed_on/2)"
				}
			}
    }
  }
}
