版本比较
MC1.21.11指令包
正文
增加 80 行删除 142 行
1234556789101112131415161517181920212223242524262728293011 行未改动424344454647484950515253545556575859606162635364656667684 行未改动737475766677787980815 行未改动87888990809192939484959697989989100101102103104941051061071081099911011111211311410411511611711811910912012112212311311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523612412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417523917617717817948 行未改动2282292302312962322332982342353002362372382392409 行未改动25025125225331825425525625725825926026124 行未改动286287288289352290291292293294216 行未改动全部展开## **前言:可转载,但需标明出处。更新日志及其他内容将在评论区写出**
## [链接中转站🔗](https://www.luogu.com.cn/article/9nc535qu)—[保存站](https://www.luogu.me/article/9nc535qu)
# 你可能会用到:**你是第个人看到这篇专栏的!**
# 你可能会用到:**[MC工具套装](https://www.luogu.me/article/1epm7htx#mc%E6%9F%A5%E6%89%BE%E5%A5%97%E8%A3%85)**:- **[我的世界ID表](https://mcid.lingningyu.cn/)**
- **[我的世界ID表(镜像)](https://mcid.fastmirror.net/)**
- **[Mc应用、模组与教程](https://www.chunkbase.com/)**
- **[Mc查找器](https://minecraftsearch.com/zh-CN)**
- **[Minecraft 工具](https://mctoolbox.net/zh-cn)**- **[Minecraft 工具](https://mctoolbox.net)**(现无中文网页)
- **[Minecraft 种子地图 3D](https://seedmapview.com/zh/)**
---# 超级指令包:::warning[指令构成]Minecraft 的指令系统虽然复杂,但拆解开来,其构成是有固定逻辑的。下面为你梳理一下指令的基本结构。
### 🧱 指令的基本骨架# 🧱 指令的基本骨架
一条标准的 Minecraft 指令,通常由以下几个部分组成:
1. **斜杠 `/`**11 行未改动
4. **目标选择器 (Target Selector)** * 这是参数中极其重要的一环,用来快速选中特定实体或玩家。以 `@` 开头。 * 例如 `@a`(所有玩家)、`@e[type=zombie]`(所有僵尸)。 * >`@s`:执行者自己。只能用在聊天框(你打字)或实体(如僵尸)内部,不能用在普通命令方块里。 > >`@p`:最近的玩家。在命令方块里最常用,谁离得最近就给谁。 > >`@a`:所有玩家。比如给全服人发物品、加状态。 > >`@r`:随机一个玩家。 > >`@e`:所有实体(包括怪物、动物、掉落物、矿车等)。注意,@e 默认也会选中玩家,如果只想选怪物,需要加条件。
5. **坐标 (Coordinates)** * 通常用三个数字表示 `X Y Z`。 * 可以使用绝对坐标(`100 64 -200`),也可以使用相对坐标(`~ ~1 ~`,`~` 代表当前位置)。在 1.21 里,还有局部坐标(`^ ^ ^`,以玩家视线方向为基准)。
6. **NBT 数据 / 组件数据 (NBT / Components)** * 用于精确描述物品、实体或方块的具体属性。 * **1.21 版本重点**:在 1.21 中,**物品**的 NBT 数据被**组件(Components)** 取代,写在方括号 `[ ]` 里,比如 `[enchantments={...}]`。而**实体**和**方块**的数据依然使用 NBT 格式(花括号 `{ }`)。
### 🛠️ 举个例子拆解# 🛠️ 举个例子拆解
以 1.21 版本的一条物品指令为例:
`/give @p minecraft:diamond_sword[unbreakable={},enchantments={sharpness:5}] 1`4 行未改动* `minecraft:diamond_sword` :物品 ID(钻石剑)。* `[...]` :组件数据(设置无法破坏、锋利 5 级)。* `1` :数量。
### 💡 进阶构成:执行上下文# 💡 进阶构成:执行上下文
在 1.13 之后,`/execute` 指令成了一个“万能前缀”,用来改变指令的**执行上下文**。它可以把一条指令改造成很复杂的形式:
`/execute as @e[type=zombie] at @s run say 我是僵尸`5 行未改动
这种“改变上下文 + run 执行”的结构,是 1.21 版本做复杂指令(比如装备检测、实体吸附)的基础。:::
:::info[🛡️ 1.21.11 下界合金“神装”指令(参考)]:::success[🛡️ 1.21.11 下界合金“神装”指令]
**下界合金头盔**```/give @s minecraft:netherite_helmet[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255,respiration:255,aqua_affinity:255}]/give @p minecraft:netherite_helmet[unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255,respiration:255,aqua_affinity:255}]```
**下界合金胸甲**```/give @s minecraft:netherite_chestplate[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255}]/give @p minecraft:netherite_chestplate[unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255}]```
**下界合金护腿**```/give @s minecraft:netherite_leggings[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255}]/give @p minecraft:netherite_leggings[unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255}]```
**下界合金靴子**```/give @s minecraft:netherite_boots[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255,feather_falling:255,depth_strider:255,soul_speed:255}]/give @p minecraft:netherite_boots[unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,mending:1,unbreaking:255,feather_falling:255,depth_strider:255,soul_speed:255}]```
**下界合金剑(极限伤害)**```/give @s minecraft:netherite_sword[enchantments={sharpness:255,smite:255,bane_of_arthropods:255,knockback:255,fire_aspect:255,looting:255,sweeping_edge:255,unbreaking:255,mending:1}]/give @p minecraft:netherite_sword[unbreakable={},enchantments={sharpness:5,smite:5,bane_of_arthropods:5,knockback:2,fire_aspect:2,looting:3,sweeping_edge:3,unbreaking:3,mending:1},attribute_modifiers=[{type:"minecraft:attack_damage",amount:1000,operation:"add_value",slot:"mainhand"}]]```
**下界合金镐(极限效率)**```/give @s minecraft:netherite_pickaxe[enchantments={efficiency:255,fortune:255,unbreaking:255,mending:1}]/give @p minecraft:netherite_pickaxe[unbreakable={},enchantments={efficiency:5,fortune:3,unbreaking:3,mending:1}]```:::
:::success[**无敌**全套]所有指令均已适配 Java 1.21.11 版本,使用组件语法,已清理无用数据。
# ✅ 使用建议:|场景|推荐方案||:---|:---||正式服务器 |① 最完美版||命令方块奖励| ② 一键全套||PvP 竞技 |③ PvP 版||长期生存| ③ 生存版||RPG / 副本服 |③ RPG 版||插件配套| ④ 检测系统|
# ①【最完美 GodSet · 1.21.11 终稿】
✅ 无无效附魔 | ✅ 含 custom_data | ✅ PvP/生存/插件全兼容```/give @p minecraft:netherite_helmet[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,respiration:255,unbreaking:255,aqua_affinity:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_head",amount:1000,operation:"add_value",slot:"head"}]]```
```/give @p minecraft:netherite_chestplate[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_chest",amount:1000,operation:"add_value",slot:"chest"}]]```
```/give @p minecraft:netherite_leggings[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_legs",amount:1000,operation:"add_value",slot:"legs"}]]```
```/give @p minecraft:netherite_boots[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,feather_falling:255,thorns:255,depth_strider:255,aqua_affinity:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_feet",amount:1000,operation:"add_value",slot:"feet"}]]```
# ②【一键全套指令】
✅ 一条命令给齐 4 件 | ✅ 适合命令方块 / 登录奖励```/give @p minecraft:netherite_helmet[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,respiration:255,unbreaking:255,aqua_affinity:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_head",amount:1000,operation:"add_value",slot:"head"}]]/give @p minecraft:netherite_chestplate[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_chest",amount:1000,operation:"add_value",slot:"chest"}]]/give @p minecraft:netherite_leggings[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_legs",amount:1000,operation:"add_value",slot:"legs"}]]/give @p minecraft:netherite_boots[custom_data={godset:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,feather_falling:255,thorns:255,depth_strider:255,aqua_affinity:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_feet",amount:1000,operation:"add_value",slot:"feet"}]]```💡 命令方块里每行一条,或用链式命令方块依次执行。
# ③【按用途定制】
- PvP 版(荆棘拉满,摔落必带)```/give @p minecraft:netherite_helmet[custom_data={godset:1,pvp:1},unbreakable={},enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_head",amount:1000,operation:"add_value",slot:"head"}]]``````/give @p minecraft:netherite_chestplate[custom_data={godset:1,pvp:1},unbreakable={},enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_chest",amount:1000,operation:"add_value",slot:"chest"}]]``````/give @p minecraft:netherite_leggings[custom_data={godset:1,pvp:1},unbreakable={},enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_legs",amount:1000,operation:"add_value",slot:"legs"}]]``````/give @p minecraft:netherite_boots[custom_data={godset:1,pvp:1},unbreakable={},enchantments={protection:255,feather_falling:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_feet",amount:1000,operation:"add_value",slot:"feet"}]]```
- 生存版(水下速掘 + 深海 + 全保护)```/give @p minecraft:netherite_helmet[custom_data={godset:1,survival:1},unbreakable={},enchantments={protection:255,respiration:255,aqua_affinity:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_head",amount:1000,operation:"add_value",slot:"head"}]]``````/give @p minecraft:netherite_chestplate[custom_data={godset:1,survival:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_chest",amount:1000,operation:"add_value",slot:"chest"}]]``````/give @p minecraft:netherite_leggings[custom_data={godset:1,survival:1},unbreakable={},enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_legs",amount:1000,operation:"add_value",slot:"legs"}]]``````/give @p minecraft:netherite_boots[custom_data={godset:1,survival:1},unbreakable={},enchantments={protection:255,feather_falling:255,depth_strider:255,aqua_affinity:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_feet",amount:1000,operation:"add_value",slot:"feet"}]]```
- RPG 版(血量爆炸 + 套装标识)```/give @p minecraft:netherite_helmet[custom_data={godset:1,rpg:1},unbreakable={},custom_name='{"text":"God Helmet","color":"gold"}',enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_head",amount:2000,operation:"add_value",slot:"head"}]]``````/give @p minecraft:netherite_chestplate[custom_data={godset:1,rpg:1},unbreakable={},custom_name='{"text":"God Chestplate","color":"gold"}',enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_chest",amount:2000,operation:"add_value",slot:"chest"}]]``````/give @p minecraft:netherite_leggings[custom_data={godset:1,rpg:1},unbreakable={},custom_name='{"text":"God Leggings","color":"gold"}',enchantments={protection:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_legs",amount:2000,operation:"add_value",slot:"legs"}]]``````/give @p minecraft:netherite_boots[custom_data={godset:1,rpg:1},unbreakable={},custom_name='{"text":"God Boots","color":"gold"}',enchantments={protection:255,feather_falling:255,thorns:255,unbreaking:255},attribute_modifiers=[{type:"minecraft:max_health",id:"godset:maxhp_feet",amount:2000,operation:"add_value",slot:"feet"}]]```
# ④【检测系统配套】✅ 穿上检测 | 脱下自动移除检测是否穿戴整套 GodSet (1.21.11 新版 execute 语法)```/execute as @a run execute if items entity @s armor.head *[custom_data~{godset:1}] run scoreboard players set @s god 1```
给效果(示例:生命恢复)```/effect give @a[scores={god=1}] minecraft:regeneration 1 2 true```
清除效果(脱下时)```/effect clear @a[scores={god=0}] minecraft:regeneration```
# ⑤【工具】- 下界合金剑(GodSword - 极限伤害)无抢夺32767(抢夺5) ``` /give @p minecraft:netherite_sword[custom_data={godset:1},unbreakable={},enchantments={sharpness:255,smite:255,bane_of_arthropods:255,knockback:255,fire_aspect:255,looting:5,unbreaking:255},attribute_modifiers=[{type:"minecraft:attack_damage",id:"godset:god_damage",amount:2147483647,operation:"add_value",slot:"mainhand"}]] ``` - 下界合金镐(GodPickaxe - 极限伤害)无精准采集 ``` /give @p minecraft:netherite_pickaxe[custom_data={godset:1},unbreakable={},enchantments={efficiency:255,silk_touch:1,unbreaking:255,fortune:255},attribute_modifiers=[{type:"minecraft:attack_damage",id:"godset:god_pick_damage",amount:2147483647,operation:"add_value",slot:"mainhand"}]] ```- 必杀药水(因生命数值溢出变为负数导致的玩家死亡) **药水等级为29级、61级、129级才可必杀** - 喷溅式(给予玩家药水物品) ``` /give @p minecraft:splash_potion[potion_contents={custom_effects:[{id:"minecraft:instant_health",amplifier:29,duration:1}]},custom_name='{"text":"29级瞬间治疗喷溅药水"}'] ``` - 指令方式(杀死玩家,1.21.11 语法重写) ``` /execute as 玩家名 at @s run summon minecraft:splash_potion ~ ~2 ~ {Item:{id:"minecraft:splash_potion",count:1,components:{"minecraft:potion_contents":{custom_effects:[{id:"minecraft:instant_health",amplifier:29,duration:1}]}}}} ```:::info[极品种子]# 岛屿[出处](https://www.bilibili.com/video/BV16aXfY6Enk?comment_on=1&comment_root_id=257835622065&share_tag=s_i#reply257835622065)-4971010715170071927普通海岛\6362215902892596229云杉村庄岛\-1234510660902763461繁花森林小岛\2206260556405610606单林地府邸岛\-4174010708127644340孤树海岛,远处有蘑菇岛\-4709868287148367694悬崖竹林海岛\101189030066226537双村峡谷海岛\-1381950856345760535樱花洞穴大海岛\-4174010706251098217困难孤树海岛\-1993111253419983964双林地府邸石滩岛\-995273846196799532少树峡谷大矿洞海岛\-2148953923200738886圆形丛林生存岛\11020382小村庄大森林海岛\-7067950856181840649三村樱花群岛\100000010816387320原始桦木林海岛(远处有丛林岛)\-1634346351319182098女巫前哨站沼泽海岛\-5366800792037773154丛林神庙村庄良港岛\-473101010720590997031混交林生存海岛\-94648384704403红树林海岛\-5419764247332618627孤独村庄岛\100000010929385639搁浅半船海岛\2500034981962613852双林地府邸岛(有白桦林、苍白花园和云杉树雪山和一个大洞穴)\100000010884876478恶地困难少树珊瑚岛\100000010901971702孤单大橡树向日葵海岛(远处有蘑菇岛)\4350584803163846029热带草原狂风山村庄岛\1346728994490959230雨林小岛\3457579473687042687草地山丘双林石滩岛\-7347418560871116621巨大废墟传送门村庄海岛(岛下有巨大的峡谷)\100000010910037828孤树平原沙滩岛\-7512197374568099503四面包围中心小岛\-4731010718512488309少地稀树草原岛(下方有与矿井相连的试炼大厅)\100000010905597836橡桦混交云杉生存岛\100000010865719995繁茂洞穴深色橡树岛\3646577311918653279双林地府邸双岛\2391961450849154900深色橡木苍白花园桦木林岛\-4019318244230605436孤树平原大岛\100000010879705888狂风山洞穴沙漠稀树草原珊瑚岛(远处有蘑菇岛)\2882155124289686792十生物生物群系大岛\5958402510172868956孤树悬崖洞穴岛\-4971010710853751202橡桦混交林小岛\-100000010836706407黑森林沙滩环岛\-5500275661015682女巫孤树小岛\100000010864959493雨林大沙滩岛\100000010901785199云山森林石滩洞穴岛(有破旧传送门)\2930132302609417308双大豪宅岛(多洞穴、岛中有苍白花园)\-4019318244231178554荒地草原珊瑚岛(附近有蘑菇岛)\7629985328083804013四船大沙滩岛\-2411331015958581705橡桦平坦简单小岛:::
# 🛠️ 最常用的基础指令这里列出日常游戏中使用频率最高的几条指令及其基本用法。
**/give**:给予玩家物品。48 行未改动**/time 的变化**:`/time add` 和 `/time set` 的数值参数现在默认以**游戏刻**(tick)为单位,而不是秒。如果需要按秒指定,要在数字后加 `s`(例如 `/time add 10s`)。
# 普通指令
/give @p barrier: 给予屏障/give @s barrier: 给予屏障
/effect give @p minecraft:night_vision 100000 255 true: 夜视/effect give @s minecraft:night_vision infinite 255 true: 夜视
/effect give @p minecraft:resistance 100000 255 true: 无敌(抗性提升)**/effect give @s minecraft:resistance infinite 255 true: 无敌(抗性提升)**
/kill @e[type=minecraft:item]: 清除地面上所有掉落物
/kill @e[type=!minecraft:player]: 杀怪9 行未改动/gamemode spectator: 将自身游戏模式设置为旁观模式
/gamerule command_block_output false: 关闭命令方块输出
/gamerule keep_inventory true: 开启玩家死亡后保留物品栏功能**/gamerule spawn_phantoms false: 关闭幻翼生成**
**/gamerule keep_inventory true: 开启玩家死亡后保留物品栏功能(死亡不掉落)**
/gamerule spawn_mobs false: 关闭怪物自然生成
/gamerule mob_griefing false: 怪物不破坏地形
24 行未改动/weather clear: 将天气切换为晴天,清除所有降雨
/weather thunder: 将天气切换为雷阵雨天气
/kill @p: 击杀指令执行者自身实体/kill @s: 击杀指令执行者自身实体
/spawnpoint < 玩家 > <x y z>: 为指定玩家设置个人专属重生坐标点
/effect clear <玩家>: 清除目标玩家身上所有药水状态效果216 行未改动全部展开