西瓜片指令
minecraft:melon_slice英文名 Melon Slice
西瓜片(minecraft:melon_slice)最多堆叠 64 个。吃下恢复 2 点饥饿值。下面是常用的给予、清除和检测命令,点“复制”就能用。
常用命令
给最近的玩家 1 个西瓜片
/give @p minecraft:melon_slice
给一组(64 个)
/give @p minecraft:melon_slice 64
给所有玩家
/give @a minecraft:melon_slice
金色的名字
/give @p melon_slice[custom_name={translate:"item.minecraft.melon_slice",color:"gold",italic:false}]想换成自己起的名字,把 translate 那段改成普通文字
清除玩家身上所有西瓜片
/clear @p minecraft:melon_slice
检测手里是否拿着西瓜片
/execute as @a if items entity @s weapon.mainhand minecraft:melon_slice run title @s actionbar ["",{text:"✔ ",color:"green"},{translate:"item.minecraft.melon_slice"}]基本信息
- 物品 ID
- minecraft:melon_slice
- 最大堆叠
- 64
- 饱食度
- 2(饱和度 1.2)
- 类型
- 物品
同类物品
同材质物品
数据来自 Minecraft Java 26.3 官方数据,命令都经过 26.3 语法检查。