{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:mossed_mangrove_log_top",
      "menu_category": {
				"category": "nature",
				"group": "itemGroup.name.log"
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_mossed_mangrove_log_top",
          "render_method": "alpha_test",
          "ambient_occlusion": true,
					"face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_cube",
      "minecraft:map_color": "#418227",
      "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.5
      },
      "minecraft:loot": "loot_tables/nicos_plant_expansion/blocks/nicothekid_mossed_mangrove_log_top.json",
      "minecraft:on_interact": {
        "event": "nicothekid:mossed_mangrove_log_top_interact",
				"condition": "query.equipped_item_any_tag('slot.weapon.mainhand', 'minecraft:is_hoe')"
      },
      
      "tag:mossed_woods": {},
      "tag:mossed_log": {},
      "tag:wood": {},
      "tag:solid_block": {}
    },
    "events": {
      "nicothekid:mossed_mangrove_log_top_interact": {
				"sequence": [
					{
						"condition": "query.equipped_item_any_tag('slot.weapon.mainhand', 'minecraft:is_hoe')",
						"trigger": {
							"event": "nicothekid:mossed_mangrove_log_top_interact_hoe",
							"target": "self"
						}
					}
				]
			},
			"nicothekid:mossed_mangrove_log_top_interact_hoe": {
				"sequence": [
					{
						"set_block": {
						  "block_type": "minecraft:mangrove_log"
						}
					},
					{
						"run_command": {
							"command": [
							  "playsound use.gravel @a[r=8]"
							]
						}
					},
					{
						"spawn_loot": {
							"table": "loot_tables/nicos_plant_expansion/event/nicothekid_mossed_woods.json"
						}
					}
				]
			}
    }
  }
}
