{
    "format_version": "1.16.0",
    "minecraft:entity": {
        "description": {
            "identifier": "cero:marker",
            "is_spawnable": true,
            "is_summonable": true,
            "is_experimental": false,
            "animations": {
                "animation_controller": "controller.animation.marker.behavior"
              },
        
              "scripts": {
                  "animate": [
                      "animation_controller"
                  ]
            }
        },

        "components": {
            "minecraft:damage_sensor": { "triggers": { "cause": "all", "deals_damage": false }},
            "minecraft:loot": { "table": "loot_tables/empty.json" },
            "minecraft:scale": { "value": 0},
            "minecraft:health": { "value": 1, "max": 1 },
            "minecraft:physics": { "has_collision": false, "has_gravity": false },
            "minecraft:nameable": {
                "allow_name_tag_renaming": true,
                "always_show": true
            }
        },




        "component_groups": {
            "spectate": {
            "minecraft:custom_hit_test": {
                "hitboxes": [
                    {
                        "width": 0.6,
                        "height": 0.6,
                        "pivot": [
                            0,
                            0.1,
                            0
                        ]
                    }
                ]
            },
            "minecraft:interact": {
                "interactions": [{
                    "on_interact": {
                        "target": "other",
                      "event": "become_spectator"
                    },
                    "swing": true,
                    "cooldown": 0,
                    "interact_text": "Spectate"
                }]}},


                "blockchest": {
            "minecraft:custom_hit_test": {
                "hitboxes": [
                    {
                        "width": 1.5,
                        "height": 1.5,
                        "pivot": [
                            0,
                            0,
                            0
                        ]
                    }
                ]
            }
            }
        },




        "events": {
            

            "spectate":{
                "add": {"component_groups": ["spectate" ]}},
                            

            "blockchest":{
                "add": {"component_groups": ["blockchest" ]}}
        }
    }
}
