版本比较
MC1.21.11指令包
正文
增加 26 行删除 140 行
3 行未改动45678891011121314151617171819202120 行未改动424344454647484950515253545556575828 行未改动878889908291929394869596979899911001011021031049610510610710810910111011111211311410611511611711811911112012112212311511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924012412512612712899 行未改动2282292302313482322333502342353522362372382392409 行未改动25025125225337025425525625725825926026124 行未改动286287288289404290291292293294216 行未改动全部展开3 行未改动
**你是第个人看到这篇专栏的!**
# 你可能会用到:
**[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/)**
---20 行未改动
4. **目标选择器 (Target Selector)** * 这是参数中极其重要的一环,用来快速选中特定实体或玩家。以 `@` 开头。 * 例如 `@a`(所有玩家)、`@e[type=zombie]`(所有僵尸)。 * >`@s`:执行者自己。只能用在聊天框(你打字)或实体(如僵尸)内部,不能用在普通命令方块里。 > >`@p`:最近的玩家。在命令方块里最常用,谁离得最近就给谁。 > >`@a`:所有玩家。比如给全服人发物品、加状态。 > >`@r`:随机一个玩家。 > >`@e`:所有实体(包括怪物、动物、掉落物、矿车等)。注意,@e 默认也会选中玩家,如果只想选怪物,需要加条件。
5. **坐标 (Coordinates)** * 通常用三个数字表示 `X Y Z`。 * 可以使用绝对坐标(`100 64 -200`),也可以使用相对坐标(`~ ~1 ~`,`~` 代表当前位置)。在 1.21 里,还有局部坐标(`^ ^ ^`,以玩家视线方向为基准)。28 行未改动
这种“改变上下文 + 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}]}}}} ```::::::success[极品种子]:::info[极品种子]# 岛屿[出处](https://www.bilibili.com/video/BV16aXfY6Enk?comment_on=1&comment_root_id=257835622065&share_tag=s_i#reply257835622065)-4971010715170071927普通海岛\6362215902892596229云杉村庄岛\-1234510660902763461繁花森林小岛\99 行未改动**/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 行未改动全部展开