{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "silverlabs:whistle_signal",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "silverlabs:airborne": {
        "minecraft:projectile": {
          "on_hit": {
            "definition_event": {
              "event_trigger": {
                "event": "silverlabs:on_landed",
                "target": "self"
              }
            }
          },
          "power": 1.2,
          "gravity": 0.05,
          "offset": [0, 0.5, 0],
          "should_bounce": false
        }
      },
      "silverlabs:landed": {
        "minecraft:physics": {},
        "minecraft:health": {
          "value": 1,
          "max": 1
        },
        "minecraft:loot": {
          "table": "loot_tables/gameplay/whistle_return.json"
        },
        "minecraft:timer": {
          "time": 2,
          "looping": false,
          "time_down_event": {
            "event": "silverlabs:despawn",
            "target": "self"
          }
        }
      },
      "silverlabs:despawning": {
        "minecraft:instant_despawn": {}
      }
    },
    "components": {
      "minecraft:type_family": {
        "family": ["whistle_signal"]
      },
      "minecraft:collision_box": {
        "width": 0.1,
        "height": 0.1
      },
      "minecraft:scale": {
        "value": 0.01
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": ["silverlabs:airborne"]
        }
      },
      "silverlabs:on_landed": {
        "remove": {
          "component_groups": ["silverlabs:airborne"]
        },
        "add": {
          "component_groups": ["silverlabs:landed"]
        }
      },
      "silverlabs:despawn": {
        "add": {
          "component_groups": ["silverlabs:despawning"]
        }
      }
    }
  }
}