Jump To Block¶
文档版本:1.21.50.25
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
}
priority
:priority
cooldown_range
:vector_of_2_items- Minimum and maximum cooldown time-range (positive, in seconds) between each attempted jump.
0..0
:number- The X component.
1..1
:number- The Y component.
forbidden_blocks
:array- Blocks that the mob can't jump to.
forbidden_blocks
<any array element>
:descriptor
item
:identifier
item
:object- An object that describes an item.
item
tags
:0- [UNDOCUMENTED] A Molang expression ran against item or block to match.
item_tag
:string- [UNDOCUMENTED] A tag to lookup item or block by.
max_velocity
:number- The maximum velocity with which the mob can jump.
minimum_distance
:integer- The minimum distance (in blocks) from the mob to a block, in order to consider jumping to it.
minimum_path_length
:integer- The minimum length (in blocks) of the mobs path to a block, in order to consider jumping to it.
preferred_blocks
:array- Blocks that the mob prefers jumping to.
preferred_blocks
<any array element>
:descriptor
preferred_blocks_chance
:number- 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_factor
:number- The scalefactor of the bounding box of the mob while it is jumping.
search_height
:integer- The height (in blocks, in range [2, 15]) of the search box, centered around the mob.
search_width
:integer- The width (in blocks, in range [2, 15]) of the search box, centered around the mob.