# as player execute store result score #bonus_gold mem run data get storage item:bonus item.tag.bonus_gold # 更改积分 scoreboard players operation @s gold += #bonus_gold mem scoreboard players operation @s gold_total += #bonus_gold mem scoreboard players operation @s gold_extra += #bonus_gold mem # 显示提示 execute if score #bonus_gold mem matches 2.. run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s","color":"aqua"}," 获得了 ",{"score": {"name": "#bonus_gold","objective": "mem"},"color":"aqua"},{"text": " 金粒","color":"aqua"}] execute if score #bonus_gold mem matches ..1 run tellraw @s ["",{"text": ">> ","color":"aqua","bold": true},"你找到了 ",{"score": {"name": "#bonus_gold","objective": "mem"},"color":"aqua"},{"text": " 金粒","color":"aqua"}]