{
	"format_version": "1.8.0",
	"minecraft:entity": {
		"description": {
			"identifier": "zedafox:button",
			"is_spawnable": true,
			"is_experimental": false,
			"is_summonable": true
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"button"
				]
			},
			"minecraft:health": {
				"value": 9999,
				"max": 9999
			},
			"minecraft:scale": {
				"value": 0.9
			},
			"minecraft:collision_box": {
				"width": 0.85,
				"height": 2.0
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": true
			},
			"minecraft:push_through": {
				"value": 1
			},
			"minecraft:knockback_resistance": {
				"value": 1
			}
		},
		"component_groups": {
			"red": {
				"minecraft:variant": {"value": 0},
				"minecraft:interact": [{"on_interact": {"filters": {"all_of": [{"test": "is_family","subject": "other","value": "player"}]},"event": "press_red"},"interact_text": "Press"}],
				"minecraft:damage_sensor": {"on_damage": {"event": "press_red"}}
			},
			"blue": {
				"minecraft:variant": {"value": 1},
				"minecraft:interact": [{"on_interact": {"filters": {"all_of": [{"test": "is_family","subject": "other","value": "player"}]},"event": "press_blue"},"interact_text": "Press"}],
				"minecraft:damage_sensor": {"on_damage": {"event": "press_blue"}}
			},
			"green": {
				"minecraft:variant": {"value": 2},
				"minecraft:interact": [{"on_interact": {"filters": {"all_of": [{"test": "is_family","subject": "other","value": "player"}]},"event": "press_green"},"interact_text": "Press"}],
				"minecraft:damage_sensor": {"on_damage": {"event": "press_green"}}
			},
			"yellow": {
				"minecraft:variant": {"value": 3},
				"minecraft:interact": [{"on_interact": {"filters": {"all_of": [{"test": "is_family","subject": "other","value": "player"}]},"event": "press_yellow"},"interact_text": "Press"}],
				"minecraft:damage_sensor": {"on_damage": {"event": "press_yellow"}}
			},
			"despawn": {
				"minecraft:despawn": {}
			}
		},
		"events": {
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			
			"blue": {"add": {"component_groups": ["blue"]}},
			"red": {"add": {"component_groups": ["red"]}},
			"green": {"add": {"component_groups": ["green"]}},
			"yellow": {"add": {"component_groups": ["yellow"]}},
			
			"press_red": {
				"queue_command": {
					"command": [
						"function vb/button/red"
					]
				}
			},
			"press_blue": {
				"queue_command": {
					"command": [
						"function vb/button/blue"
					]
				}
			},
			"press_green": {
				"queue_command": {
					"command": [
						"function vb/button/green"
					]
				}
			},
			"press_yellow": {
				"queue_command": {
					"command": [
						"function vb/button/yellow"
					]
				}
			}
		}
	}
}