{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "pixel:slash_random",
      "materials": {
        "default": "arrow"
      },
      "textures": {
        "default": "textures/entity/slash"
      },
      "geometry": {
        "default": "geometry.slash"
      },
      "animations": {
        "move": "animation.slash.to_left",
        "random0": "animation.slash.random_0",
        "random1": "animation.slash.random_1",
        "arrow": "animation.arrow.move"
      },
      "scripts": {
        "pre_animation":[
          "variable.random = math.random_integer(0,1);",
          "variable.shake = query.shake_time - query.frame_alpha;",
          "variable.shake_power = variable.shake > 0.0 ? -Math.sin(variable.shake * 200.0) * variable.shake : 0.0;"
        ],
        "animate": [
          "move",
          "arrow",
          {
            "random0": "variable.random == 0"
          },
          {
            "random1": "variable.random == 1"
          }
        ]
      },
      "render_controllers": [ "controller.render.slash" ]
    }
  }
}
