跳转至

Jump To Block

文档版本:1.21.0.24

Allows an entity to jump to another random block.

架构

jump_to_block:
{
  priority "priority"
  vector_of_2_items "cooldown_range"
  array "forbidden_blocks" : opt
  {
    descriptor "<any array element>"
  }
  number "max_velocity" : opt
  integer "minimum_distance" : opt
  integer "minimum_path_length" : opt
  array "preferred_blocks" : opt
  {
    descriptor "<any array element>"
  }
  number "preferred_blocks_chance" : opt
  number "scale_factor" : opt
  integer "search_height" : opt
  integer "search_width" : opt
}
prioritypriority
priority:
integer
cooldown_rangevector_of_2_items
Minimum and maximum cooldown time-range (positive, in seconds) between each attempted jump.
vector_of_2_items:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The X component.
1..1number
The Y component.
forbidden_blocksarray
Blocks that the mob can't jump to.
forbidden_blocks
<any array element>descriptor
identifier:
string
descriptor:
{
  identifier "item"
  object "item" : opt
  {
  }
  0 "tags"
  string "item_tag" : opt
}
itemidentifier
itemobject
An object that describes an item.
item
tags0
[UNDOCUMENTED] A Molang expression ran against item or block to match.
0:
string
item_tagstring
[UNDOCUMENTED] A tag to lookup item or block by.
descriptor:
{
  identifier "item"
  object "item" : opt
  {
    identifier "item"
    object "item" : opt
    {
    }
    0 "tags"
    string "item_tag" : opt
  }
}
itemidentifier
itemobject
An object that describes an item.
item
max_velocitynumber
The maximum velocity with which the mob can jump.
minimum_distanceinteger
The minimum distance (in blocks) from the mob to a block, in order to consider jumping to it.
minimum_path_lengthinteger
The minimum length (in blocks) of the mobs path to a block, in order to consider jumping to it.
preferred_blocksarray
Blocks that the mob prefers jumping to.
preferred_blocks
<any array element>descriptor
preferred_blocks_chancenumber
Chance (between 0.0 and 1.0) that the mob will jump to a preferred block, if in range. Only matters if preferred blocks are defined.
scale_factornumber
The scalefactor of the bounding box of the mob while it is jumping.
search_heightinteger
The height (in blocks, in range [2, 15]) of the search box, centered around the mob.
search_widthinteger
The width (in blocks, in range [2, 15]) of the search box, centered around the mob.