重锤指令
minecraft:mace英文名 Mace
重锤(minecraft:mace)不能堆叠,一格只能放 1 个。耐久 500。攻击伤害 6。下面是常用的给予、清除和检测命令,点“复制”就能用。
常用命令
给最近的玩家 1 个重锤
/give @p minecraft:mace
给所有玩家
/give @a minecraft:mace
金色的名字
/give @p mace[custom_name={translate:"item.minecraft.mace",color:"gold",italic:false}]想换成自己起的名字,把 translate 那段改成普通文字
带附魔(最高等级)
/give @p mace[enchantments={density:5,unbreaking:3,mending:1}]无法破坏(不掉耐久)
/give @p mace[unbreakable={}]清除玩家身上所有重锤
/clear @p minecraft:mace
检测手里是否拿着重锤
/execute as @a if items entity @s weapon.mainhand minecraft:mace run title @s actionbar ["",{text:"✔ ",color:"green"},{translate:"item.minecraft.mace"}]基本信息
- 物品 ID
- minecraft:mace
- 最大堆叠
- 1
- 耐久
- 500
- 稀有度
- 史诗
- 攻击伤害
- 6
- 攻击速度
- 0.6
- 附魔能力
- 15
- 类型
- 物品
能用在重锤上的附魔
数据来自 Minecraft Java 26.3 官方数据,命令都经过 26.3 语法检查。