{
  "format_version": "1.20.71",
  "minecraft:entity": {
    "description": {
      "identifier": "mythicus_im:hdc.rm",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,

      "animations": {
        "root": "controller.animation.mythicus_im.rm.anchor.root"
      },
      "scripts": {
        "animate": [
          "root"
        ]
      },

      "properties": {

        "mythicus_im:is_placed": {
          "type": "bool",
          "default": false,
          "client_sync": true
        },
        "mythicus_im:is_finished": {
          "type": "bool",
          "default": false,
          "client_sync": true
        }

      }
    },

    "component_groups": {
      
      "mythicus_im:instant_despawn": { "minecraft:instant_despawn": {} },

      "mythicus_im:remote.default": {
        "minecraft:inventory": {
          "container_type": "inventory",
          "inventory_size": 27,
          "can_be_siphoned_from": false,
          "restrict_to_owner": false,
          "private": false
        }
      },

      "mythicus_im:remote.large": {
        "minecraft:inventory": {
          "container_type": "inventory",
          "inventory_size": 54,
          "can_be_siphoned_from": false,
          "restrict_to_owner": false,
          "private": false
        }
      }

    },

    "components": {
      
      "minecraft:collision_box": {
        "width": 0,
        "height": 0
      },
      "minecraft:custom_hit_test": {
        "hitboxes": [
          {
            "width": 1.1,
            "height": 1.1,
            "pivot": [
              0,
              0.55,
              0
            ]
          }
        ]
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "all",
          "deals_damage": false
        }
      },
      "minecraft:health": {
        "value": 100,
        "min": 100,
        "max": 100
      },
      "minecraft:persistent": {
      },
      "minecraft:knockback_resistance": {
        "value": 1,
        "max": 1
      },
      //"minecraft:push_through": {
      //  "value": 1
      //},
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": false
      },
      "minecraft:physics": {
        "has_gravity": false,
        "has_collision": false
      },

      "minecraft:is_chested": {},
      "minecraft:inventory": {
        "container_type": "inventory",
        "inventory_size": 27,
        "can_be_siphoned_from": false,
        "restrict_to_owner": false,
        "private": false
      },

      "minecraft:timer": {
        "looping": false,
        "time": 0.55,
        "time_down_event": {
          "event": "mythicus_im:is_placed.true"
        }
      },

      "minecraft:environment_sensor": {
        "triggers": [
          {
            "filters": { "test": "distance_to_nearest_player", "operator": ">=", "value": 7 },
            "event": "mythicus_im:remote.finish"
          }
        ]
      }

    },

    "events": {

      "mythicus_im:instant_despawn": { "add": { "component_groups": [ "mythicus_im:instant_despawn" ] } },

      "mythicus_im:is_placed.true": { "set_property": { "mythicus_im:is_placed": true } },

      "mythicus_im:remote.default": { "add": { "component_groups": [ "mythicus_im:remote.default" ] } },
      "mythicus_im:remote.large": { "add": { "component_groups": [ "mythicus_im:remote.large" ] } },

      "mythicus_im:remote.finish": { "queue_command": { "command": [ "scriptevent mythicus_im:remote_entity.finish" ] } }

    }

  }
}