refresh_gold.mcfunction 414 B

12345678910111213141516
  1. # 刷新单个玩家背包中的金粒
  2. clear @s gold_ingot
  3. clear @s gold_nugget
  4. # 获取金锭数,存于 temp
  5. scoreboard players operation @s temp = @s gold
  6. scoreboard players operation @s temp /= #count_9 mem
  7. # 给予金锭
  8. # 获取金粒数,存于 temp
  9. scoreboard players operation @s temp = @s gold
  10. scoreboard players operation @s temp %= #count_9 mem
  11. # 给予金粒
  12. # TODO : 给予指定数量的物品