{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "misc:blockre",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "despawn": {
        "minecraft:instant_despawn": {}
      }
    },
    "components": {
      "minecraft:timer": {
        "time": 25,
        "time_down_event": {
          "event": "despawn"
        }
      },
      "minecraft:physics": {},
      "minecraft:type_family": {
        "family": [
          "inanimate",
          "misc"
        ]
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!=",
                    "value": "ahaj"
                  }
                  ]
              }
            },
          "deals_damage": false,
          "damage_multiplier": 0.0
          }
          ]
        },
      "minecraft:health": {
        "value": 10000,
        "max": 10000,
        "min": 10000
      },
      "minecraft:on_death":  {
        "event":  "despawn",
        "target":  "self"
      },
      "minecraft:collision_box": {
        "width": 1.0,
        "height": 1.0
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:knockback_resistance": {
        "value": 0.0
      }
    },
    "events": {
      "groundwave": {
        "queue_command": {
          "command": [
            "tp @s ~~-1~",
            "effect @s invisibility infinite 2 true",
            "scoreboard players set @s timer -1"
            ]
        }
      },
      "minecraft:entity_spawned": {
        "queue_command": {
          "command": [
            "effect @s invisibility infinite 2 true"
            ]
        }
      },
      "mimic_block": {
        "sequence": [
          {
            "queue_command": {
              "command": [
                "effect @s invisibility infinite 1 true",
                "replaceitem entity @s slot.weapon.mainhand 0 netherite_pickaxe"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "playanimation @s animation.creeper.swelling none 0 \"v.xbasepos=v.xbasepos??0;v.ybasepos=v.ybasepos??0;v.zbasepos=v.zbasepos??0;v.xpos=v.xpos??0;v.ypos=v.ypos??0;v.zpos=v.zpos??0;v.xrot=v.xrot??0;v.yrot=v.yrot??0;v.zrot=v.zrot??0;v.scale=v.scale??1;v.xzscale=v.xzscale??1;v.yscale=v.yscale??1;v.swelling_scale1=3.0*math.sqrt(v.xzscale)*math.sqrt(v.scale);v.swelling_scale2=3.0*math.sqrt(v.yscale)*math.sqrt(v.scale);\" anim2",
                "enchant @s silk_touch"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "loot replace entity @s slot.weapon.mainhand 0 mine ~~~ mainhand"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "fill ~~~ ~~~ air destroy"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "tp @s ~~1~"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "kill @e[c=1,type=item]"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "replaceitem entity @s[hasitem={item=netherite_pickaxe,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 air"
                ]
            }
          }
          ]
      },
      "despawn": {
        "add": {
          "component_groups": [
            "despawn"
          ]
        }
      }
    }
  }
}