{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "lifeboat:portal",
      "runtime_identifier": "minecraft:egg",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
	
    "events": {
      "q_explode": {
        "add": {
          "component_groups": [
            "q_explode"
          ]
        }
      }
    },

    "component_groups": {
      "q_explode": {
        "minecraft:spawn_entity": {
          "entities": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_sound": "plop",
            "num_to_spawn": 1,
            "spawn_entity": "lifeboat:portal_entity"
          }
        ]
        },
        "minecraft:explode": {
          "fuseLength": -0.5,
          "fuseLit": true,
          "power": 0, 
          "causesFire": false,
          "destroyAffectedByGriefing": true
        }
      }
    },

    "components": {
	  
      "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 0, 0 ],
              "knockback": false,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {
              "shake_time" : 0.35
            },
            "arrow_effect": {
            }
          },
          "hit_sound": "break",
          "power": 5.0,
          "gravity": 1.0,
          "uncertainty_base": 16,
          "uncertainty_multiplier": 4,
          "anchor": 1,
          "should_bounce": true,
          "offset": [ 0, 2.0, 2.0 ]
        },
        "minecraft:environment_sensor": {
          "triggers": [
          {
            "filters": {
              "all_of": [
                { "test": "on_ground" }
              ]
            },
            "event": "q_explode"
          }
         ]
        },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "deals_damage": false
          }
        ]
      },
      "minecraft:collision_box": {
        "width": 0.0,
        "height": 0.0
      },
      "minecraft:type_family": {
        "family": [ "portal" ]
      },
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
      "minecraft:jump.static": {
      },
      "minecraft:fire_immune": true,
      "minecraft:physics": {},
      "minecraft:persistent": {}
    }
  }
}