在《我的世界》中,指令代码可以帮助玩家快速实现各种功能,无论是单人游戏还是多人服务器,指令都非常实用。以下是《我的世界》中常用指令代码的详细汇总,供玩家参考:
单机指令(部分多人也适用)
指令代码大全
指令 | 功能描述 |
---|---|
/gamemode 0 | 切换到生存模式 |
/gamemode 1 | 切换到创造模式 |
/gamemode 2 | 切换到冒险模式 |
/gamemode 3 | 切换到旁观模式 |
/gamerule keepInventory true | 死亡时不掉落物品 |
/gamerule mobGriefing false | 防止生物破坏方块 |
/give @s minecraft:command_block | 给予玩家命令方块 |
/spawnpoint @a | 设置所有玩家的重生点 |
/difficulty <0-3> | 设置游戏难度(0=和平,1=简单,2=普通,3=困难) |
/weather clear | 清除天气效果 |
/kill @s | 自杀 |
/heal @s | 恢复玩家的生命值 |
/time set day | 设置时间为白天 |
/time set night | 设置时间为夜晚 |
/locate temple | 定位最近的神庙坐标 |
/effect @s minecraft:regeneration 10 1 | 给予玩家再生效果 |
/clear @s | 清除玩家背包中的所有物品 |
/clone <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z> | 复制指定区域的方块到另一个位置 |
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block> | 填充指定区域的方块 |
/tp @s <x> <y> <z> | 将玩家传送到指定坐标 |
/tp @s @a | 将玩家传送到其他玩家的位置 |
/particle <particle> <x> <y> <z> | 生成粒子效果 |
/playsound <sound> <source> @s <x> <y> <z> | 播放音乐或声音效果 |
/say <message> | 在聊天框中发送消息 |
/tellraw @s {"text":"<message>"} | 发送格式化消息 |
/scoreboard objectives add <objective> <criteria> | 创建计分板 |
/advancement grant @s everything | 给予玩家所有成就 |
/bossbar create <id> <title> | 创建Boss血条 |
/execute as @s at @s run <command> | 以玩家身份执行命令 |
/experience add @s 10 levels | 给予玩家经验值 |
/enchant @s <enchantment> <level> | 附魔玩家物品 |
/function <function> | 运行函数 |
/data merge block <x> <y> <z> {<NBT>} | 修改方块的NBT数据 |
/data merge entity @s {<NBT>} | 修改实体的NBT数据 |
/datapack enable <datapack> | 启用数据包 |
/datapack disable <datapack> | 禁用数据包 |
/debug start | 开始调试 |
/debug stop | 停止调试 |
/defaultgamemode <mode> | 设置默认游戏模式 |
/difficulty <0-3> | 设置游戏难度 |
/effect clear @s | 清除玩家身上的所有药水效果 |
/effect give @s minecraft:strength 10 1 | 给予玩家力量药水效果 |
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block> | 填充指定区域的方块 |
/function <function> | 运行函数 |
/gamemode <mode> | 更改游戏模式 |
/gamerule <rule> <value> | 更改游戏规则 |
/give @s <item> <amount> | 给予玩家物品 |
/help <command> | 显示帮助信息 |
/kill @s | 杀死玩家 |
/locate <structure> | 定位最近的建筑坐标 |
/me <action> | 显示玩家的动作 |
/particle <particle> <x> <y> <z> | 生成粒子效果 |
/playsound <sound> <source> @s <x> <y> <z> | 播放音乐或声音效果 |
/say <message> | 在聊天框中发送消息 |
/scoreboard objectives add <objective> <criteria> | 创建计分板 |
/advancement grant @s everything | 给予玩家所有成就 |
/bossbar create <id> <title> | 创建Boss血条 |
/execute as @s at @s run <command> | 以玩家身份执行命令 |
/experience add @s 10 levels | 给予玩家经验值 |
/enchant @s <enchantment> <level> | 附魔玩家物品 |
/function <function> | 运行函数 |
/data merge block <x> <y> <z> {<NBT>} | 修改方块的NBT数据 |
/data merge entity @s {<NBT>} | 修改实体的NBT数据 |
/datapack enable <datapack> | 启用数据包 |
/datapack disable <datapack> | 禁用数据包 |
/debug start | 开始调试 |
/debug stop | 停止调试 |
/defaultgamemode <mode> | 设置默认游戏模式 |
/difficulty <0-3> | 设置游戏难度 |
/effect clear @s | 清除玩家身上的所有药水效果 |
/effect give @s minecraft:strength 10 1 | 给予玩家力量药水效果 |
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block> | 填充指定区域的方块 |
/function <function> | 运行函数 |
/gamemode <mode> | 更改游戏模式 |
/gamerule <rule> <value> | 更改游戏规则 |
/give @s <item> <amount> | 给予玩家物品 |
/help <command> | 显示帮助信息 |
/kill @s | 杀死玩家 |
/locate <structure> | 定位最近的建筑坐标 |
/me <action> | 显示玩家的动作 |
/particle <particle> <x> <y> <z> | 生成粒子效果 |
/playsound <sound> <source> @s <x> <y> <z> | 播放音乐或声音效果 |
/say <message> | 在聊天框中发送消息 |
/scoreboard objectives add <objective> <criteria> | 创建计分板 |
/advancement grant @s everything | 给予玩家所有成就 |
/bossbar create <id> <title> | 创建Boss血条 |
/execute as @s at @s run <command> | 以玩家身份执行命令 |
/experience add @s 10 levels | 给予玩家经验值 |
/enchant @s <enchantment> <level> | 附魔玩家物品 |
/function <function> | 运行函数 |
/data merge block <x> <y> <z> {<NBT>} | 修改方块的NBT数据 |
/data merge entity @s {<NBT>} | 修改实体的NBT数据 |
/datapack enable <datapack> | 启用数据包 |
/datapack disable <datapack> | 禁用数据包 |
/debug start | 开始调试 |
/debug stop | 停止调试 |
/defaultgamemode <mode> | 设置默认游戏模式 |
/difficulty <0-3> | 设置游戏难度 |
/effect clear @s | 清除玩家身上的所有药水效果 |
/effect give @s minecraft:strength 10 1 | 给予玩家力量药水效果 |
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block> | 填充指定区域的方块 |
/function <function> | 运行函数 |
/gamemode <mode> | 更改游戏模式 |
/gamerule <rule> <value> | 更改游戏规则 |
/give @s <item> <amount> | 给予玩家物品 |
/help <command> | 显示 |
关注切游网,获取更多的游戏资讯和全面的游戏攻略,你的支持就是我们更新的动力!