{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "wesl3y:reiner_projetil",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:snowball"
    },
    "component_groups": {
      "wesl3y:despawn": {
        "minecraft:transformation": {
          "into": "wesl3y:despawn",
          "delay": 0.0
        }
      },
      "wesl3y:dmt": {
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:type_family": {
          "family": [ "dmt_corda", "attack", "projectile" ]
        },
        "minecraft:transformation": {
          "into": "wesl3y:despawn",
          "delay": 8.0
        },
        "minecraft:leashable": {
          "max_distance": 9999,
          "hard_distance": 99999,
          "soft_distance": 99999
		},
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": 5,
              "knockback": false,
              "destroy_on_hit": false
            },
            "definition_event": {
              "affect_projectile": false,
              "event_trigger": {
				"event": "wesl3y:explode",
				"target":"self"
              }
            },
            "stick_in_ground": {}
          },
          "power": 5.0,
          "gravity": 0.02,
          "inertia": 1,
          "anchor": 1,
          "stop_on_hurt": true
        }
	  },
      "wesl3y:dmt2": {
        "minecraft:transformation": {
          "into": "wesl3y:despawn",
          "delay": 2.5
        }
      }
    },
    "components": {
      "minecraft:transformation": {
        "into": "wesl3y:despawn",
        "delay": 20.0
      },
      "minecraft:timer": {
        "time": 0.15,
        "looping": true,
        "time_down_event": {
          "event": "minecraft:command",
          "target": "self"
        }
      },
      "minecraft:despawn": {
        "filters": {
          "all_of":[{ "test": "distance_to_nearest_player", "operator": ">", "value": 64 }]
        }
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },
    "events": {
      "wesl3y:dmt": {
        "add": {
          "component_groups": ["wesl3y:dmt"]
        }
      },
      "minecraft:command": {},
      "wesl3y:despawn": {
        "add": {
          "component_groups": ["wesl3y:despawn"]
        }
      },
      "wesl3y:explode": {
        "sequence": [
          {
            "filters": {
              "test": "is_family",
              "value": "dmt_corda"
            },
            "add": {
              "component_groups": ["wesl3y:dmt2"]
            },
            "queue_command": {
              "command": [
                "scoreboard players set @p[tag=reiner_dmt0] wg:skill_loop 12",
                "tag @p[tag=reiner_dmt0] add reiner_dmt"
              ]
            }
          }
        ]
      }
    }
  }
}