W

wearing_helmet/wearing_chestplate/wearing_leggings/wearing_boots

玩家的头盔、胸甲、护腿、靴子必须佩戴指定物品才能满足该条件。

- id: wearing_helmet
  args:
    items:
      - diamond_helmet protection:4
      - netherite_helmet protection:3 
- id: wearing_chestplate
  args:
    items:
      - diamond_chestplate protection:4
      - netherite_chestplate protection:3 
- id: wearing_leggings
  args:
    items: 
      - diamond_leggings protection:4
      - netherite_leggings protection:3 
- id: wearing_boots
  args:
    items:
      - diamond_boots protection:4
      - netherite_boots protection:3 

其中:

  • args.items:物品列表,使用物品语法。

within_radius_of

玩家必须在指定坐标的一定范围内才能满足该条件。

- id: within_radius_of
  args:
    x: 100
    y: 100
    z: 100
    radius: 25

其中:

  • args.x/y/z:坐标。

  • args.radius:半径范围。

Last updated