跳转至

Reflect Projectiles

文档版本:1.21.50.25

[EXPERIMENTAL] Allows an entity to reflect projectiles.

架构

reflect_projectiles:
{
  string "azimuth_angle" : opt
  number "azimuth_angle" : opt
  string "elevation_angle" : opt
  number "elevation_angle" : opt
  array "reflected_projectiles" : opt
  {
    string "<any array element>" : opt
  }
  string "reflection_scale" : opt
  number "reflection_scale" : opt
  string "reflection_sound" : opt
}
azimuth_anglestring
A Molang expression defining the angle in degrees to add to the projectile's y axis rotation.
azimuth_anglenumber
A Molang expression defining the angle in degrees to add to the projectile's y axis rotation.
elevation_anglestring
A Molang expression defining the angle in degrees to add to the projectile's x axis rotation.
elevation_anglenumber
A Molang expression defining the angle in degrees to add to the projectile's x axis rotation.
reflected_projectilesarray
An array of strings defining the types of projectiles that are reflected when they hit the entity.
reflected_projectiles
<any array element>string
reflection_scalestring
A Molang expression defining the velocity scaling of the reflected projectile. Values below 1 decrease the projectile's velocity, and values above 1 increase it.
reflection_scalenumber
A Molang expression defining the velocity scaling of the reflected projectile. Values below 1 decrease the projectile's velocity, and values above 1 increase it.
reflection_soundstring
A string defining the name of the sound event to be played when a projectile is reflected. "reflect" unless specified.