经验分享
我的世界java原版指令合集
总会用到的吧,先收藏备份
ctrl+f打开查找
一、游戏模式 / 难度
/gamemode survival 切换至生存模式
/gamemode creative 切换至创造模式
/gamemode adventure 切换至冒险模式(不可随意破坏方块)
/gamemode spectator 切换至旁观模式(穿墙飞行、无交互)
难度
/difficulty peaceful 难度设为和平(无怪物攻击、自动回血)
/difficulty easy 难度设为简单
/difficulty normal 难度设为普通
/difficulty hard 难度设为困难
二、传送 & 跨维度传送
/tp @s X Y Z 传送到指定坐标位置
/tp 玩家名 传送到对应玩家身边
/tp 玩家A 玩家B 将玩家A传送至玩家B位置
/tp @a @s 将所有玩家传送至自己身边
跨维度精准传送
/execute in minecraft:overworld run tp @s ~ ~ ~ 传送至主世界
/execute in minecraft:the_nether run tp @s ~ ~ ~ 传送至下界(地狱)
/execute in minecraft:the_end run tp @s ~ ~ ~ 传送至末地
/execute in minecraft:the_end run tp @s 0 128 0 传送至末地主岛中心
三、目标选择器(必背核心)
@s 执行指令的自身
@a 所有在线玩家
@p 距离最近的玩家
@r 随机一名玩家
@e 所有实体(怪物、掉落物、生物、载具等)
四、时间 & 天气
/time set day 设置为白天
/time set noon 设置为正午
/time set night 设置为夜晚
/time set midnight 设置为深夜
/time set sunrise 设置为日出
/time set sunset 设置为日落
/time add 数值 时间快进指定刻数(数值填数字)
/time query 查询当前世界时间
天气
/weather clear 切换为晴天
/weather rain 切换为雨天
/weather thunder 切换为雷暴雨
/toggledownfall 一键切换晴雨天气
/weather query 查询当前天气状态
五、游戏规则 gamerule 完整版
/gamerule keepInventory true
开启死亡不掉落
/gamerule mobGriefing false
禁止怪物破坏方块(防苦力怕、末影人拆家)
/gamerule doDaylightCycle false
冻结时间,停止昼夜交替
/gamerule doWeatherCycle false
冻结天气,不再变化
/gamerule pvp false
关闭玩家之间互相伤害
/gamerule tntExplodes false
TNT仅点燃不爆炸
/gamerule fallDamage false
关闭掉落伤害
/gamerule fireDamage false
关闭火焰伤害
/gamerule drowningDamage false
关闭溺水伤害
/gamerule naturalRegeneration false
关闭生命值自然回复
/gamerule doImmediateRespawn true
开启死亡立即重生(无死亡界面)
/gamerule doInsomnia false
禁止生成幻翼
/gamerule showCoordinates true
强制屏幕显示坐标
/gamerule commandBlocksEnabled true
启用命令方块功能
/gamerule sendCommandFeedback false
关闭聊天栏指令执行提示
/gamerule doMobSpawning false
禁止生物自然生成
/gamerule doFireTick false
关闭火焰蔓延、自动熄灭
/gamerule doEntityDrops false
关闭非生物实体物品掉落
/gamerule doMobLoot false
关闭生物死亡物品掉落
/gamerule doTileDrops false
关闭方块破坏后物品掉落
六、结构定位(一键找遗迹)
/locate structure village 定位村庄
/locate structure desert_pyramid 定位沙漠神殿
/locate structure jungle_pyramid 定位丛林神庙
/locate structure igloo 定位雪屋
/locate structure ocean_ruin 定位海底废墟
/locate structure monument 定位海底神殿
/locate structure mansion 定位林地府邸
/locate structure stronghold 定位要塞(末地传送门所在地)
/locate structure fortress 定位地狱堡垒
/locate structure bastion_remnant 定位堡垒遗迹
/locate structure end_city 定位末地城
/locate structure ancient_city 定位远古城市
/locate structure ruined_portal 定位废弃传送门
/locate structure trail_ruins 定位1.20+新遗迹
/locate structure pillager_outpost 定位掠夺者前哨站
七、自身状态 / 药水效果
无限永久药水效果(infinite代表永久)
/effect give @s minecraft:night_vision infinite 夜视
/effect give @s minecraft:fire_resistance infinite 防火
/effect give @s minecraft:water_breathing infinite 水下呼吸
/effect give @s minecraft:invisibility infinite 隐身
/effect give @s minecraft:resistance infinite 255 超高抗性
/effect give @s minecraft:speed infinite 255 极限速度
/effect give @s minecraft:jump_boost infinite 10 超高跳跃
/effect give @s minecraft:strength infinite 255 超高攻击
/effect give @s minecraft:regeneration infinite 255 快速回血
效果清除
/effect clear @s 清除自身所有药水效果
/effect clear @s 效果ID 清除自身指定药水效果
八、物品 / 附魔 / 经验/头颅
/give @s 物品ID 数量 给予自身指定数量物品
/give @s command_block 获取命令方块
/give @s barrier 获取隐形屏障方块
/give @s structure_block 获取结构方块
/give @s light_block 获取光源方块
/clear 清空自身全部背包物品
/clear @s 物品ID 清空自身指定物品
/clear 玩家名 清空指定玩家背包物品
手持物品直接附魔
/enchant @s sharpness 5 手持武器附魔锋利Ⅴ
/enchant @s protection 4 手持装备附魔保护Ⅳ
/enchant @s unbreaking 3 手持物品附魔耐久Ⅲ
/enchant @s mending 1 手持物品附魔经验修补
/enchant @s power 5 手持弓箭附魔力量Ⅴ
/enchant @s infinity 1 手持弓箭附魔无限
经验
/xp 9999L @s 给予自身9999级经验等级
/xp 1000000 @s 给予自身指定数值经验
自己的头颅(1.21+ )
/give @s minecraft:player_head[profile={name:"你的ID"}]
任意玩家头颅
/give @s minecraft:player_head[profile={name:"玩家ID"}]
生物头颅
/give @s zombie_head 僵尸头
/give @s creeper_head 苦力怕头
/give @s skeleton_skull 骷髅头
/give @s wither_skeleton_skull 凋零骷髅头
/give @s dragon_head 末影龙头
/give @s piglin_head 猪灵头
MHF 预设头颅
/give @s player_head
/give @s player_head
/give @s player hb-emoji-profile={name:">
/give @s player_head/give @s player_head
/give @s player_head
/give @s player hb-emoji-profile={name:">
/give @s player_head旧版兼容(1.20.5及以前)
/give @s minecraft:player_head{SkullOwner:"玩家ID"}
九、方块操作(建筑党必备)
区域填充指令
/fill X1 Y1 Z1 X2 Y2 Z2 方块ID 填充指定区域方块
/fill ~ ~ ~ ~10 ~5 ~10 stone 以自身为基准填充石头
/fill ~ ~ ~ ~10 ~5 ~10 air 以自身为基准挖空区域
填充模式
/fill ... hollow 填充空心结构
/fill ... outline 仅填充方块外框
/fill ... keep 仅替换区域内空气方块
/fill ... destroy 填充时破坏原方块并掉落物品
区域复制指令
/clone X1 Y1 Z1 X2 Y2 Z2 目标X Y Z 复制区域方块至目标位置
/clone ... masked 复制时跳过空气方块
/clone ... replace 复制时完全覆盖目标区域
十、召唤实体 / 清理实体
实体召唤
/summon minecraft:zombie ~ ~ ~ 召唤僵尸
/summon minecraft:villager ~ ~ ~ 召唤村民
/summon minecraft:ender_dragon ~ ~ ~ 召唤末影龙
/summon minecraft:wither ~ ~ ~ 召唤凋灵
/summon minecraft:iron_golem ~ ~ ~ 召唤铁傀儡
实体清理
/kill @s 自身自杀
/kill @e[type=item] 清除世界所有掉落物
/kill @e[type=arrow] 清除世界所有箭矢
/kill @e[type=!player] 清除所有非玩家实体
/kill @e[type=minecraft:zombie] 清除指定实体
十一、世界设置
/spawnpoint @s ~ ~ ~ 设置自身个人重生点
/spawnpoint 玩家名 ~ ~ ~ 设置指定玩家重生点
/setworldspawn ~ ~ ~ 设置世界公共出生点
/seed 查看当前世界种子
/forceload add ~ ~ 强制加载当前区块
/forceload query 查询所有强制加载区块
/forceload remove ~ ~ 取消当前区块强制加载
/forceload remove all 取消所有强制加载区块
十二、服务器管理(腐竹专用)
/op 玩家名 给予指定玩家管理员权限
/deop 玩家名 撤销指定玩家管理员权限
/ban 玩家名 封禁指定玩家
/ban-ip IP地址 封禁玩家IP
/pardon 玩家名 解封指定玩家
/pardon-ip IP地址 解封玩家IP
十三、常用懒人组合指令
固定晴天白天套餐
/time set day
/weather clear
/gamerule doDaylightCycle false
/gamerule doWeatherCycle false
生存爽玩无忧套餐
/gamerule keepInventory true
/gamerule mobGriefing false
/effect give @s night_vision infinite
/effect give @s fire_resistance infinite
/gamerule doInsomnia false
建筑党专属套餐
/gamemode creative
/gamerule doMobSpawning false
/gamerule fallDamage false
养老生存服务器
[quote:1470]
ctrl+f打开查找
一、游戏模式 / 难度
/gamemode survival 切换至生存模式
/gamemode creative 切换至创造模式
/gamemode adventure 切换至冒险模式(不可随意破坏方块)
/gamemode spectator 切换至旁观模式(穿墙飞行、无交互)
难度
/difficulty peaceful 难度设为和平(无怪物攻击、自动回血)
/difficulty easy 难度设为简单
/difficulty normal 难度设为普通
/difficulty hard 难度设为困难
二、传送 & 跨维度传送
/tp @s X Y Z 传送到指定坐标位置
/tp 玩家名 传送到对应玩家身边
/tp 玩家A 玩家B 将玩家A传送至玩家B位置
/tp @a @s 将所有玩家传送至自己身边
跨维度精准传送
/execute in minecraft:overworld run tp @s ~ ~ ~ 传送至主世界
/execute in minecraft:the_nether run tp @s ~ ~ ~ 传送至下界(地狱)
/execute in minecraft:the_end run tp @s ~ ~ ~ 传送至末地
/execute in minecraft:the_end run tp @s 0 128 0 传送至末地主岛中心
三、目标选择器(必背核心)
@s 执行指令的自身
@a 所有在线玩家
@p 距离最近的玩家
@r 随机一名玩家
@e 所有实体(怪物、掉落物、生物、载具等)
四、时间 & 天气
/time set day 设置为白天
/time set noon 设置为正午
/time set night 设置为夜晚
/time set midnight 设置为深夜
/time set sunrise 设置为日出
/time set sunset 设置为日落
/time add 数值 时间快进指定刻数(数值填数字)
/time query 查询当前世界时间
天气
/weather clear 切换为晴天
/weather rain 切换为雨天
/weather thunder 切换为雷暴雨
/toggledownfall 一键切换晴雨天气
/weather query 查询当前天气状态
五、游戏规则 gamerule 完整版
/gamerule keepInventory true
开启死亡不掉落
/gamerule mobGriefing false
禁止怪物破坏方块(防苦力怕、末影人拆家)
/gamerule doDaylightCycle false
冻结时间,停止昼夜交替
/gamerule doWeatherCycle false
冻结天气,不再变化
/gamerule pvp false
关闭玩家之间互相伤害
/gamerule tntExplodes false
TNT仅点燃不爆炸
/gamerule fallDamage false
关闭掉落伤害
/gamerule fireDamage false
关闭火焰伤害
/gamerule drowningDamage false
关闭溺水伤害
/gamerule naturalRegeneration false
关闭生命值自然回复
/gamerule doImmediateRespawn true
开启死亡立即重生(无死亡界面)
/gamerule doInsomnia false
禁止生成幻翼
/gamerule showCoordinates true
强制屏幕显示坐标
/gamerule commandBlocksEnabled true
启用命令方块功能
/gamerule sendCommandFeedback false
关闭聊天栏指令执行提示
/gamerule doMobSpawning false
禁止生物自然生成
/gamerule doFireTick false
关闭火焰蔓延、自动熄灭
/gamerule doEntityDrops false
关闭非生物实体物品掉落
/gamerule doMobLoot false
关闭生物死亡物品掉落
/gamerule doTileDrops false
关闭方块破坏后物品掉落
六、结构定位(一键找遗迹)
/locate structure village 定位村庄
/locate structure desert_pyramid 定位沙漠神殿
/locate structure jungle_pyramid 定位丛林神庙
/locate structure igloo 定位雪屋
/locate structure ocean_ruin 定位海底废墟
/locate structure monument 定位海底神殿
/locate structure mansion 定位林地府邸
/locate structure stronghold 定位要塞(末地传送门所在地)
/locate structure fortress 定位地狱堡垒
/locate structure bastion_remnant 定位堡垒遗迹
/locate structure end_city 定位末地城
/locate structure ancient_city 定位远古城市
/locate structure ruined_portal 定位废弃传送门
/locate structure trail_ruins 定位1.20+新遗迹
/locate structure pillager_outpost 定位掠夺者前哨站
七、自身状态 / 药水效果
无限永久药水效果(infinite代表永久)
/effect give @s minecraft:night_vision infinite 夜视
/effect give @s minecraft:fire_resistance infinite 防火
/effect give @s minecraft:water_breathing infinite 水下呼吸
/effect give @s minecraft:invisibility infinite 隐身
/effect give @s minecraft:resistance infinite 255 超高抗性
/effect give @s minecraft:speed infinite 255 极限速度
/effect give @s minecraft:jump_boost infinite 10 超高跳跃
/effect give @s minecraft:strength infinite 255 超高攻击
/effect give @s minecraft:regeneration infinite 255 快速回血
效果清除
/effect clear @s 清除自身所有药水效果
/effect clear @s 效果ID 清除自身指定药水效果
八、物品 / 附魔 / 经验/头颅
/give @s 物品ID 数量 给予自身指定数量物品
/give @s command_block 获取命令方块
/give @s barrier 获取隐形屏障方块
/give @s structure_block 获取结构方块
/give @s light_block 获取光源方块
/clear 清空自身全部背包物品
/clear @s 物品ID 清空自身指定物品
/clear 玩家名 清空指定玩家背包物品
手持物品直接附魔
/enchant @s sharpness 5 手持武器附魔锋利Ⅴ
/enchant @s protection 4 手持装备附魔保护Ⅳ
/enchant @s unbreaking 3 手持物品附魔耐久Ⅲ
/enchant @s mending 1 手持物品附魔经验修补
/enchant @s power 5 手持弓箭附魔力量Ⅴ
/enchant @s infinity 1 手持弓箭附魔无限
经验
/xp 9999L @s 给予自身9999级经验等级
/xp 1000000 @s 给予自身指定数值经验
自己的头颅(1.21+ )
/give @s minecraft:player_head[profile={name:"你的ID"}]
任意玩家头颅
/give @s minecraft:player_head[profile={name:"玩家ID"}]
生物头颅
/give @s zombie_head 僵尸头
/give @s creeper_head 苦力怕头
/give @s skeleton_skull 骷髅头
/give @s wither_skeleton_skull 凋零骷髅头
/give @s dragon_head 末影龙头
/give @s piglin_head 猪灵头
MHF 预设头颅
/give @s player_head
/give @s player_head
/give @s player hb-emoji-profile={name:">
/give @s player_head/give @s player_head
/give @s player_head
/give @s player hb-emoji-profile={name:">
/give @s player_head旧版兼容(1.20.5及以前)
/give @s minecraft:player_head{SkullOwner:"玩家ID"}
九、方块操作(建筑党必备)
区域填充指令
/fill X1 Y1 Z1 X2 Y2 Z2 方块ID 填充指定区域方块
/fill ~ ~ ~ ~10 ~5 ~10 stone 以自身为基准填充石头
/fill ~ ~ ~ ~10 ~5 ~10 air 以自身为基准挖空区域
填充模式
/fill ... hollow 填充空心结构
/fill ... outline 仅填充方块外框
/fill ... keep 仅替换区域内空气方块
/fill ... destroy 填充时破坏原方块并掉落物品
区域复制指令
/clone X1 Y1 Z1 X2 Y2 Z2 目标X Y Z 复制区域方块至目标位置
/clone ... masked 复制时跳过空气方块
/clone ... replace 复制时完全覆盖目标区域
十、召唤实体 / 清理实体
实体召唤
/summon minecraft:zombie ~ ~ ~ 召唤僵尸
/summon minecraft:villager ~ ~ ~ 召唤村民
/summon minecraft:ender_dragon ~ ~ ~ 召唤末影龙
/summon minecraft:wither ~ ~ ~ 召唤凋灵
/summon minecraft:iron_golem ~ ~ ~ 召唤铁傀儡
实体清理
/kill @s 自身自杀
/kill @e[type=item] 清除世界所有掉落物
/kill @e[type=arrow] 清除世界所有箭矢
/kill @e[type=!player] 清除所有非玩家实体
/kill @e[type=minecraft:zombie] 清除指定实体
十一、世界设置
/spawnpoint @s ~ ~ ~ 设置自身个人重生点
/spawnpoint 玩家名 ~ ~ ~ 设置指定玩家重生点
/setworldspawn ~ ~ ~ 设置世界公共出生点
/seed 查看当前世界种子
/forceload add ~ ~ 强制加载当前区块
/forceload query 查询所有强制加载区块
/forceload remove ~ ~ 取消当前区块强制加载
/forceload remove all 取消所有强制加载区块
十二、服务器管理(腐竹专用)
/op 玩家名 给予指定玩家管理员权限
/deop 玩家名 撤销指定玩家管理员权限
/ban 玩家名 封禁指定玩家
/ban-ip IP地址 封禁玩家IP
/pardon 玩家名 解封指定玩家
/pardon-ip IP地址 解封玩家IP
十三、常用懒人组合指令
固定晴天白天套餐
/time set day
/weather clear
/gamerule doDaylightCycle false
/gamerule doWeatherCycle false
生存爽玩无忧套餐
/gamerule keepInventory true
/gamerule mobGriefing false
/effect give @s night_vision infinite
/effect give @s fire_resistance infinite
/gamerule doInsomnia false
建筑党专属套餐
/gamemode creative
/gamerule doMobSpawning false
/gamerule fallDamage false
养老生存服务器
[quote:1470]
评论 (0)