{
    "format_version": "1.8.0",
    "minecraft:entity": {
        "description": {
            "identifier": "zedafox:toggle",
            "is_spawnable": true,
            "is_experimental": false,
            "is_summonable": true
        },
        "components": {
            "minecraft:type_family": {
                "family": [
                    "button"
                ]
            },
            "minecraft:health": {
                "value": 8,
                "max": 8
            },
            "minecraft:collision_box": {
                "width": 0.0,
                "height": 0.0
            },
            "minecraft:pushable": {
                "is_pushable": false,
                "is_pushable_by_piston": true
            },
            "minecraft:damage_sensor": [{
                    "cause": "all",
                    "deals_damage": false
                }
            ],
            "minecraft:push_through": {
                "value": 1
            },
            "minecraft:knockback_resistance": {
                "value": 1
            }
        },
        "component_groups": {
			"off_button": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						0.25,
						0.25
					],
					"time_down_event": {
						"event": "off"
					}
				}
			},
			"on_button": {
				"minecraft:timer": {
					"looping": false,
					"time": [
						0.25,
						0.25
					],
					"time_down_event": {
						"event": "on"
					}
				}
			},
            "off": {
                "minecraft:variant": {
                    "value": 0
                }
            },
            "on": {
                "minecraft:variant": {
                    "value": 1
                }
            }
        },
        "events": {
			"set_off": {
                "add": {
                    "component_groups": [
                        "off_button"
                    ]
                }
            },
			"set_on": {
                "add": {
                    "component_groups": [
                        "on_button"
                    ]
                }
            },
            "off": {
                "add": {
                    "component_groups": [
                        "off"
                    ]
                },
                "remove": {
                    "component_groups": [
                        "on"
                    ]
                }
            },
            "on": {
                "add": {
                    "component_groups": [
                        "on"
                    ]
                },
                "remove": {
                    "component_groups": [
                        "on"
                    ]
                }
            }
        }
    }
}
