如题所述
只要俩命令方块即可!
cb:clear @p minecraft:gold_ingot 0 10conb:give @p diamond_sword 1 0.
cb:clear @p minecraft:gold_ingot 0 10
conb:give @p diamond_sword 1 0.
普及:cb=command_block=命令方块(最最普通的);conb=条件制约的连锁型命令方块
【记得放对方向哦】