跳转至

Teleport

文档版本:1.21.0.24

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_chancenumber
Modifies the chance that the entity will teleport if the entity is in darkness.
light_teleport_chancenumber
Modifies the chance that the entity will teleport if the entity is in daylight.
max_random_teleport_timenumber
Maximum amount of time in seconds between random teleports.
min_random_teleport_timenumber
Minimum amount of time in seconds between random teleports.
random_teleport_cubearray
Entity will teleport to a random position within the area defined by this cube.
random_teleport_cube
0..0number
1..1number
2..2number
random_teleportsboolean
If true, the entity will teleport randomly.
target_distancenumber
Maximum distance the entity will teleport when chasing a target.
target_teleport_chancenumber
The chance that the entity will teleport between 0.0 and 1.0. 1.0 means 100%