{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:grafting_table_inactive",
      "menu_category": {
				"category": "items"
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_grafting_table_inactive",
          "render_method": "alpha_test",
          "ambient_occlusion": true,
					"face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_cube",
      "minecraft:map_color": "#568627",
      "minecraft:breathability": "solid",
      "minecraft:collision_box": {
        "origin": [ -8, 0, -8 ],
        "size": [ 16, 16, 16 ]
      },
      "minecraft:selection_box": {
        "origin": [ -8, 0, -8 ],
        "size": [ 16, 16, 16 ]
      },
      "minecraft:light_dampening": 15,
      "minecraft:light_emission": 0,
      "minecraft:friction": 0.4,
      "minecraft:flammable": false,
      "minecraft:destructible_by_explosion": false,
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 0.5
      },
      "minecraft:loot": "loot_tables/nicos_plant_expansion/blocks/nicothekid_grafting_table_inactive.json",
      "minecraft:on_interact": {
        "event": "nicothekid:grafting_table_inactive_interact",
        "condition": "query.get_equipped_item_name('main_hand') == 'hanging_roots'"
      },
      
      "tag:grafting_table": {},
      "tag:stone": {},
      "tag:wood": {}
    },
    "events": {
      "nicothekid:grafting_table_inactive_interact": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'hanging_roots'",
						"trigger": {
							"event": "nicothekid:grafting_table_inactive_interact_hanging_roots",
							"target": "self"
						}
					}
				]
			},
      "nicothekid:grafting_table_inactive_interact_hanging_roots": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"playsound block.composter.fill_success @a[r=10]"
							]
						}
					},
					{
						"decrement_stack": {}
					},
					{
						"run_command": {
							"command": [
								"particle nicothekid:grafting_particle ~~~"
							]
						}
					},
					{
						"trigger": {
							"event": "nicothekid:grafting_table_inactive_to_active"
						}
					}
				]
			},
      "nicothekid:grafting_table_inactive_to_active": {
        "set_block": {
					"block_type": "nicothekid:grafting_table_active"
				}
      }
    }
  }
}
