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_angle
:string- A Molang expression defining the angle in degrees to add to the projectile's y axis rotation.
azimuth_angle
:number- A Molang expression defining the angle in degrees to add to the projectile's y axis rotation.
elevation_angle
:string- A Molang expression defining the angle in degrees to add to the projectile's x axis rotation.
elevation_angle
:number- A Molang expression defining the angle in degrees to add to the projectile's x axis rotation.
reflected_projectiles
:array- An array of strings defining the types of projectiles that are reflected when they hit the entity.
reflected_projectiles
<any array element>
:string
reflection_scale
:string- 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_scale
:number- 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_sound
:string- A string defining the name of the sound event to be played when a projectile is reflected. "reflect" unless specified.