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