Teleport¶
文档版本:1.21.50.25
Defines an entity's teleporting behavior.
架构¶
teleport:
{
number "dark_teleport_chance" : opt
number "light_teleport_chance" : opt
number "max_random_teleport_time" : opt
number "min_random_teleport_time" : opt
array "random_teleport_cube" : opt
{
number "0..0" : opt
number "1..1" : opt
number "2..2" : opt
}
boolean "random_teleports" : opt
number "target_distance" : opt
number "target_teleport_chance" : opt
}
dark_teleport_chance
:number- Modifies the chance that the entity will teleport if the entity is in darkness.
light_teleport_chance
:number- Modifies the chance that the entity will teleport if the entity is in daylight.
max_random_teleport_time
:number- Maximum amount of time in seconds between random teleports.
min_random_teleport_time
:number- Minimum amount of time in seconds between random teleports.
random_teleport_cube
:array- Entity will teleport to a random position within the area defined by this cube.
random_teleport_cube
0..0
:number
1..1
:number
2..2
:number
random_teleports
:boolean- If true, the entity will teleport randomly.
target_distance
:number- Maximum distance the entity will teleport when chasing a target.
target_teleport_chance
:number- The chance that the entity will teleport between 0.0 and 1.0. 1.0 means 100%