编辑

通过


Entity Documentation - minecraft:variable_max_auto_step

Entities with this component will have a maximum auto step height that is different depending on whether they are on a block that prevents jumping. Incompatible with "runtime_identifier": "minecraft:horse".

Variable Max Auto Step Properties

Name Default Value Type Description Example Values
base_value 0.5625 Decimal number The maximum auto step height when on any other block. Sulfur Cube: 0.5625
controlled_value 0.5625 Decimal number The maximum auto step height when on any other block and controlled by the player. Sulfur Cube: 0.5625
jump_prevented_value 0.5625 Decimal number The maximum auto step height when on a block that prevents jumping. Sulfur Cube: 0.5625

Samples

Sulfur Cube

At /minecraft:entity/component_groups/minecraft:sulfur_cube_ai/minecraft:variable_max_auto_step/:

"minecraft:variable_max_auto_step": {
  "base_value": 0.5625,
  "controlled_value": 0.5625,
  "jump_prevented_value": 0.5625
}

At /minecraft:entity/component_groups/minecraft:sulfur_cube_medium_with_block/minecraft:variable_max_auto_step/:

"minecraft:variable_max_auto_step": {
  "base_value": 0,
  "controlled_value": 0,
  "jump_prevented_value": 0
}