{
	"format_version": "1.8.0",
	"minecraft:entity": {
		"description": {
			"identifier": "zedafox:button_green",
			"is_spawnable": true,
			"is_experimental": false,
			"is_summonable": true
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"button"
				]
			},
			"minecraft:interact": [
				{
					"on_interact": {
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
						"event": "press"
					},
					"interact_text": "Press"
				}
			],
            "minecraft:damage_sensor": {
                "on_damage": {
                    "event": "press"
                }
            },
			"minecraft:health": {
				"value": 50,
				"max": 50
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.3
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": true
			},
			"minecraft:push_through": {
				"value": 1
			},
			"minecraft:knockback_resistance": {
				"value": 1
			}
		},
		"component_groups": {},
		"events": {
			"press": {
				"queue_command": {
					"command": [
						"function default/entity/button/credits",
						"effect @s regeneration 1 255 true",
						"effect @s resistance 999999 255 true"
					]
				}
			}
		}
	}
}