{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:grass_carpet",
      "menu_category": {
				"category": "construction"
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_grass_carpet",
          "render_method": "opaque",
          "ambient_occlusion": true,
					"face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_carpet",
      "minecraft:map_color": "#50792B",
      "minecraft:breathability": "air",
      "minecraft:placement_filter": {
        "conditions": [
          {
            "allowed_faces": [
              "up",
              "down"
            ]
          }
        ]
      },
      "minecraft:collision_box": {
        "origin": [ -8, 0, -8 ],
        "size": [ 16, 1, 16 ]
      },
      "minecraft:selection_box": {
        "origin": [ -8, 0, -8 ],
        "size": [ 16, 1, 16 ]
      },
      "minecraft:light_dampening": 0,
      "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.05
      },
      "minecraft:loot": "loot_tables/empty.json",
      "minecraft:on_player_destroyed": {
        "event": "nicothekid:grass_carpet_destroyed_by_shears",
        "condition": "query.get_equipped_item_name('main_hand') == 'shears'"
      },
      "minecraft:on_step_on": {
        "event": "nicothekid:step_on_grass_carpet"
      },
      
      "tag:grass_carpet": {},
      "tag:custom_carpet": {},
      "tag:plant": {}
    },
    "events": {
      "nicothekid:grass_carpet_destroyed_by_shears": {
				"damage": {
					"amount": 1,
					"type": "durability",
					"target": "item"
				},
				"spawn_loot": {
					"table": "loot_tables/blocks/nicothekid_grass_carpet.json"
				}
			},
      "nicothekid:step_on_grass_tap": {
				"die": {
					"target": "self"
				}
			}
    }
  }
}
