物品语句

物品语句自 1.2.0 版本起使用和 UltimateShop 相同的物品语句格式,详见 UltimateShop Wiki

一个使用了物品语句的配置:

rewards:
  reward_1:
    reward:
      material: emerald
    amount: 1
    chance: 1
  reward_2:
    reward:
      material: diamond
    amount: 1
    chance: 1
  reward_3:
    display-item:
      material: iron_ingot
    amount: 1~2
    chance: 10
    actions:
      - 'console_command: say hello, {player}'
  reward_4:
    display-item:
      material: dirt
    amount: 1~3
    chance: 20
    spawn-actions:
      - 'entity_spawn: ZOMBIE'
  reward_5:
    reward:
      material: suspicious_stone
    amount: 10~32
    chance: 10

Last updated