版本比较
MC1.21.11指令包
正文
增加 18 行删除 134 行
3 行未改动456788910111229 行未改动424344454647484950515253545556575828 行未改动8788899082919293948695969798999110010110210310496105106107108109101110111112113114106115116117118119111120121122123115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240124125126127128382 行未改动全部展开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/)**
29 行未改动
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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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 @s 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繁花森林小岛\382 行未改动全部展开