[我的世界]常见及各种指令大杂烩![Minecraft][MC][2023.7.17版]

/kill @e[type=item,nbt={Item:{id:"minecraft:ink_sac"}}]
清除指定掉落物墨囊
/give @s minecraft:player_head {SkullOwner:"Notch"}
用命令得到正版玩家头颅
/summon minecraft:villager ~ ~ ~ {NoAI:1}
生成不能动的村民
/execute as @e[type=creeper] at @s unless entity @e[type=ocelot,distance=..7] run kill @s
击杀所有7格内没豹猫的爬行者
/execute as @a at @s if block ~ ~-1 ~ green_concrete run effect give @s jump_boost 5 2
如果他下方1个的方块是绿色混凝土,则给与跳跃效果
/summon item ~ ~ ~ {Item:{id:"minecraft:iron_block",Count:1}}
指令生成掉落物[铁块]
/summon armor_stand ~ ~1 ~ {Marker:1,NoGravity:1,Invisible:1,CustomNameVisible:1,CustomName:"'#"}
生成无重力,隐形的名为 # 的盔甲架
/summon slime ~ ~1 ~ {Size:50}
生成一个大小为50的史莱姆
/summon creeper ~ ~1 ~ {powered:1,CustomName:'"😁"'}
闪电苦力怕,名为😁
/summon slime ~ ~1 ~ {CustomName:'"史莱姆'",Size:50}
50大小史莱姆,名为史莱姆
/give @s minecraft:diamond_chestplate{AttributeModifiers:[{AttributeName:"generic.armor",Operation:0b,Amount:20f,Slot:"chest",Name:"Armor",UUID:[I;1,2,3,4]}]}
穿身上20护甲值的钻石胸甲
/summon minecraft:falling_block ~ ~ ~ {BlockState:{Name:"minecraft:grass_block"},Time:1}
下落中的草方块
/summon minecraft:bat ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",Count:1b}],HandItems:[{id:"minecraft:stick",Count:1b}]}]}
生成蝙蝠,被手持木棍的骷髅骑
/summon minecraft:zombie ~ ~ ~ {Attributes:[{Name:"generic.max_health",Base:100f}],Health:100f}
血量100的僵尸
/summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:diamond_sword",Count:1b},PickupDelay:32767s}
无法捡起的钻石剑
/summon minecraft:armor_stand ~ ~1 ~ {ShowArms:1b,Pose:{RightArm:[-135.0f,0.0f,0.0f],Head:[-15.0f,20.0f,0.0f],LeftArm:[-130.0f,0.0f,0.0f],RightLeg:[-115.0f,30.0f,0.0f],Body:[0.0f,20.0f,0.0f]},ArmorItems:[{id:"minecraft:leather_boots",Count:1b},{id:"minecraft:leather_leggings",Count:1b},{id:"minecraft:leather_chestplate",Count:1b},{id:"minecraft:skeleton_skull",Count:1b}]}
生成特定动作的盔甲架
/summon minecraft:area_effect_cloud ~ ~ ~ {Duration:1200,WaitTime:60,Age:0,DurationOnUse:-20,Radius:20.0f,RadiusOnUse:4.9f,RadiusPerTick:-0.05f,ReapplicationDelay:80,Effects:[{Id:5b,Amplifier:1b,Duration:320,Ambient:1b}],Particle:"minecraft:block minecraft:gold_block"}
生成效果云,最大存在1分钟,但生成后3秒才有效,初始半径20m,每刻缩减0.05米,每隔4秒为范围内的生物给予力量2效果,时长16秒,且每对一个生物生效一次,半径增加4.9m,最大存在时间减少1秒,粒子为破坏金块的粒子
item block ~ ~-1 ~ container.26 replace minecraft:acacia_boat 1
将脚下箱子26栏位物品替换成1个合金欢船
setblock ~ ~ ~ minecraft:tnt[unstable=true]
放置一个生存模式破坏就爆炸的tnt
particle footstep ~ ~-0.1 ~ 0.10 1 2 @p
生成一个hypixel起床战争隐身药水相同的脚印粒子效果
/give @a minecraft:suspicious_stew{Effects:[{EffectDuration:160,EffectId:10}]}
给所有人迷之炖菜,效果为8秒的回复I
/data modify block ~ ~ ~ Items[0].Count set value 3b
修改脚下的箱子里的第一格的物品的数量为3个
/data modify entity @e[limit=1,type=item,sort=nearest] Item.id set value "minecraft:iron_ingot"
修改最近的物品以将其替换为铁锭
give HeiLong_999 item_frame{display:{Name:'[{"text":"隐形物品展示框","italic":false,"color":"aqua"}]'},EntityTag:{Invisible:1b}} 64
放置后就隐形的物品展示框
execute if data block -384 4 478 {CookTime:0s} run data modify block -384 4 478 CookTime set value 199s
加快熔炉的燃烧速度

高级:
/give @p birch_sign{
BlockEntityTag: {
Text1: "{\"text\":\"++3+++++++++#++++++$++++++++++++%+++++++&++++++\",\"color\":\"gold\",\"obfuscated\":true}",
Text2: "{\"text\":\"PVP Bata0.3\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tp @p 1001 156 1001\"}}"
},
display: {
Name: "Custom Sign"
}
} 1
自定义的可点击的木牌
/summon minecraft:villager ~ ~ ~ {CustomName:"{\"text\":\"垃圾\"}",Tags:["sqfj"],NoAI:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[-90f],Profession:1,Offers:{Recipes:[ {maxUses:999999,max:null,uses:0,buy:{id:"minecraft:emerald",Count:1b,tag:{display:{Name:"{\"text\":\"武器\",\"color\":\"red\"}"}}},sell:{id:"minecraft:leather_helmet",Count:1b,tag:{display:{Name:"{\"text\":\"保护套\",\"color\":\"red\"}"},AttributeModifiers:[{Operation:0,Amount:5,UUIDLeast:6324,UUIDMost:6324,AttributeName:"generic.maxHealth",Name:"CBC"},{Operation:1,Amount:0.1,UUIDLeast:6324,UUIDMost:6324,AttributeName:"generic.movementSpeed",Name:"CBC"},{Operation:0,Amount:5,UUIDLeast:6324,UUIDMost:6324,AttributeName:"generic.armor",Name:"CBC"}], Unbreakable:1,HideFlags:2,Enchantments:[{id:"minecraft:feather_falling",lvl:5}]}}}]}}
自定义村民经典案例
execute as @e[type=minecraft:arrow] at @e[type=minecraft:arrow] run tp Player609 ~ ~ ~
传送玩家到箭
原版搭桥蛋:
检测鸡蛋的位置,生成盔甲架
execute as @a at @e[type=minecraft:egg] run summon minecraft:armor_stand ~ ~ ~ {Invisible:1b,Marker:1b,NoGravity:1b,Tags:["yellow"]}
检测盔甲架,生成羊毛
execute as @a at @e[type=minecraft:armor_stand,nbt={Tags:["yellow"]}] run fill ~-1 ~-2 ~ ~ ~-2 ~-1 yellow_wool replace minecraft:air
接连锁命令方块连接上面的
kill @e[type=minecraft:armor_stand,nbt={Tags:["yellow"]}]
杀死盔甲架
/item replace entity @p armor.legs minecraft:iron_leggings{Enchantments:[{id:"protection",lvl:4},{id:thorns,lvl:3},{id:fire_protection,lvl:3},{id:feather_falling,lvl:4},{id:blast_protection,lvl:4},{id:projectile_protection,lvl:4}],Unbreakable:1b}
Lore:["{\"text\":\"免费\",\"color\":\"blue\",\"italic\":false}"]
附魔的,带有介绍的裤子
箱子菜单:
item replace block 42 2 19 container.2 minecraft:dark_oak_planks{display:{Name:"{\"text\":\"第三关[阴森古堡]\",\"color\":\"red\",\"italic\":false}",color:"16711680"},Enchantments:[{id:"protection",lvl:1}],Unbreakable:1b} 1
接连锁命令方块连接上面的
execute as @a at @s run clear @s minecraft:dark_oak_planks{display:{Name:"{\"text\":\"第三关[阴森古堡]\",\"color\":\"red\",\"italic\":false}",color:"16711680"},Enchantments:[{id:"protection",lvl:1}],Unbreakable:1b} 1
接连锁命令方块连接上面的,有条件
execute as @a at @s run give @s minecraft:apple 1
/tellraw @a {"text":"HeiLong_999 離開了遊戲","color":"yellow","italic":false}
/tellraw @a {"text":"HeiLong_999 离开了游戏","color":"yellow","italic":false}
/tellraw @a {"text":"xxx 试图攻击 HeiLong_999 但被反将一军","color":"white","italic":false}
/tellraw @a {"text":"Shi_Kong_Luo 淹死了","color":"white","italic":false}
/tellraw @a {"text":"[lmwszbc: 传送 lmwszbc 到 Shi_Kong_Luo]","color":"gray","italic":true}
tellraw指令妙用
execute if block 1105 8 -1717 chest{Items:[{Slot:0b,id:"minecraft:crossbow"}]} run setblock 1131 1 -1731 redstone_block
setblock 1105 8 -1717 chest[facing=east,type=right]
summon item 1106 8 -1718 {Item:{id:"minecraft:crossbow",Count:1}}
指令物品分类机
/item replace entity HeiLong_999 armor.chest minecraft:diamond_chestplate{Enchantments:[{id:"protection",lvl:2147483647},{id:fire_protection,lvl:2147483647},{id:feather_falling,lvl:2147483647},{id:blast_protection,lvl:2147483647},{id:projectile_protection,lvl:2147483647},{id:thorns,lvl:2147483647},{id:respiration,lvl:2147483647},{id:depth_strider,lvl:2147483647},{id:aqua_affinity,lvl:2147483647},{id:mending,lvl:1}],Unbreakable:1b}
超强盔甲
give @a minecraft:netherite_sword{display:{Name:"{\"text\":\"真-幻灵剑[SSR]\",\"color\":\"gold\",\"italic\":false}",Lore:['"\\u00a77攻击力:\\u00a7f25 伤害"','"\\u00a77攻击速度:\\u00a7f6"','"\\u00a77防御力:\\u00a7f10"','"\\u00a77血量:\\u00a7f20"','"\\u00a77攻击距离:\\u00a7f3"','"\\u00a77价格:\\u00a7f250$"','"\\u00a77挖掘速度:\\u00a7f10"','""','"\\u00A75技能【1】:\\u00A73波纹冲击"','"\\u00a77冷却时间:\\u00A7830秒"','"\\u00a77用法:\\u00a7f按Q开启"','"\\u00a77用途:\\u00a7f水上行走20秒"','""','"\\u00A75技能【2】:\\u00A79雷霆之怒"','"\\u00a77冷却时间:\\u00A7860秒"','"\\u00a77用法:\\u00a7f潜行3秒开启"','"\\u00a77用途:\\u00a7f召唤10道闪电劈在目标上"','"\\u00a7f==========\\u00a7f======="','"\\u00A74附加效果\\u00a7f给予玩家跳跃I效果"','""','"\\u00a7e火焰攻击"','"\\u00a7e无限耐久"']},Enchantments:[{id:"sharpness",lvl:30},{id:"smite",lvl:15},{id:"bane_of_arthropods",lvl:15},{id:"fire_aspect",lvl:15},{id:"looting",lvl:15},{id:"knockback",lvl:8},{id:"sweeping",lvl:15},{id:"efficiency",lvl:15},{id:"silk_touch",lvl:1}],Tags:["zhen-huanlingjian"],Unbreakable:1b,HideFlags:63b} 1
Lore指令属性妙用
/give @a written_book{pages:['["",{"text":"\\u70b9\\u51fb\\u6211\\u81ea\\u6740","italic":true,"color":"#99E699","clickEvent":{"action":"run_command","value":"/kill @p"}},{"text":"\\n\\n","color":"reset"},{"text":"\\u70b9\\u51fb\\u6211\\u56de\\u57ce","underlined":true,"color":"#9999E6","clickEvent":{"action":"run_command","value":"/tp @p ~ ~10 ~"}},{"text":"\\n\\n","color":"reset"},{"text":"\\u70b9\\u8d5e","strikethrough":true,"color":"#E699E6","clickEvent":{"action":"open_url","value":"https://space.bilibili.com/472148300";}},{"text":"\\uff0c","color":"#E699E6","clickEvent":{"action":"open_url","value":"https://space.bilibili.com/472148300";}},{"text":"\\u6295\\u5e01","bold":true,"color":"#E699E6","clickEvent":{"action":"open_url","value":"https://space.bilibili.com/472148300";}},{"text":"\\uff0c","color":"#E699E6","clickEvent":{"action":"open_url","value":"https://space.bilibili.com/472148300";}},{"text":"\\u8f6c\\u53d1","obfuscated":true,"color":"#E699E6","clickEvent":{"action":"open_url","value":"https://space.bilibili.com/472148300";}}]'],title:hi,author:"你爹"}
指令书制作
/execute as @e[type=minecraft:creeper] store result entity @s powered byte 1 at @s if block ~ ~150 ~ minecraft:air
如果头顶15格是空气,则修改所有苦力怕为闪电苦力怕
give @a iron_pickaxe{display:{Name:"{\"text\":\"太空镐\",\"color\":\"dark_gray\",\"italic\":false}",Lore:['"\\u00a77攻击力:\\u00a7f8"','"\\u00a77挖掘速度:\\u00a7f2"','""','"\\u00A76几率抗击退"','"\\u00A76无法破坏"']},Enchantments:[{id:"sharpness",lvl:3},{id:"smite",lvl:3},{id:"bane_of_arthropods",lvl:3},{id:"fire_aspect",lvl:3},{id:"looting",lvl:3},{id:"knockback",lvl:3},{id:"sweeping",lvl:3},{id:"efficiency",lvl:3},{id:"silk_touch",lvl:3}],Tags:["zhen-huanlingjian"],Unbreakable:1b,HideFlags:63b} 1
经典RPG武器实例
execute as @a at @s run tp @e[type=minecraft:tnt] ^ ^ ^10
tp实体到玩家前方10格处
give HeiLong_999 minecraft:netherite_sword{display:{Name:"{\"text\":\"真 · 剑\",\"color\":\"gold\",\"italic\":false,\"bold\":true}"},Enchantments:[{id:"bane_of_arthropods",lvl:10},{id:fire_aspect,lvl:10},{id:looting,lvl:10},{id:sharpness,lvl:10},{id:smite,lvl:10},{id:sweeping,lvl:10},{id:unbreaking,lvl:10},{id:mending,lvl:10},{id:knockback,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:13.5d,Operation:0,UUID:[I;7297,8331,9797,4629],Slot:mainhand},{AttributeName:"generic.attack_speed",Name:"noName",Amount:1024d,Operation:0,UUID:[I;3719,7575,7827,3421],Slot:mainhand},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:1d,Operation:0,UUID:[I;1393,1791,5282,8685],Slot:mainhand},{AttributeName:"generic.luck",Name:"noName",Amount:1024d,Operation:0,UUID:[I;4264,3531,5953,6568],Slot:mainhand}]}
给与玩家一个手持获得1024幸运、1024攻击速度、13.5攻击伤害、10抗击退的剑
give HeiLong_999 minecraft:netherite_sword{display:{Name:'[{"text":"S","italic":false,"bold":true,"color":"dark_red","obfuscated":true},{"text":"「終結之劍」","color":"gold","obfuscated":false},{"text":"S"}]',Lore:['"\\u00A74\\u00A7o\\u00A7lThe end is at hand."']},Enchantments:[{id:"bane_of_arthropods",lvl:255},{id:fire_aspect,lvl:255},{id:looting,lvl:255},{id:sharpness,lvl:255},{id:smite,lvl:255},{id:sweeping,lvl:255},{id:unbreaking,lvl:255},{id:mending,lvl:255},{id:knockback,lvl:1}],AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:88.8d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:10000000000d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:1000000000d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:10000000000d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:10000000000d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:10000000000d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Tags:["END-SWORD"],Unbreakable:1b,HideFlags:63b,CanDestroy:["#minecraft:fall_damage_resetting"]}
给自己在1.19.2版本中最强的剑
execute as @a at @s store result score @s my_sorce run clear @s minecraft:iron_ingot 0
物品数量转换成计分板数值
execute store result score 人数 my_sorce run execute if entity @a
检测世界的人数,并转换成计分板
give HL9_ salmon_spawn_egg{EntityTag:{id:ravager,Invulnerable:1b,PersistenceRequired:1b,Silent:1b,ActiveEffects:[{Id:14,Duration:2147483647,Amplifier:127,ShowParticles:0b},{Id:11,Duration:2147483647,Amplifier:127,ShowParticles:0b}],CustomName:'[{"text":""}]'},AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:88888888888.8d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Unbreakable:1b,HideFlags:65535,CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
一个隐形杀手的刷怪蛋
give HL9_ parrot_spawn_egg{EntityTag:{NoGravity:1,Time:-2147483647, BlockState:{Name:"lava"},id:"minecraft:falling_block",CustomName:'[{"text":""}]'},AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:88888888888.8d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Unbreakable:1b,HideFlags:65535,CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
可穿过的空气
give HL9_ cat_spawn_egg{EntityTag:{id:"minecraft:item",Item:{id:"minecraft:diamond_block",Count:64},PickupDelay:32767,Age:-32768,Health:32767,CustomName:'[{"text":""}]'},AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:88888888888.8d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Unbreakable:1b,HideFlags:65535,CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
假的钻石块
give HL9_ pig_spawn_egg{EntityTag:{id:"minecraft:interaction",height:100f,width:100f,interaction:test,CustomName:'[{"text":""}]'},AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:88888888888.8d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Unbreakable:1b,HideFlags:65535,CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
大空气
give HL9_ stone_slab{BlockStateTag:{type:"double",waterlogged:"true"},display:{Name:'[{"text":"防爆石头","italic":"false","color":"yellow"}]'}} 64
防爆方块
give HL9_ donkey_spawn_egg{EntityTag:{id:area_effect_cloud,Duration:32767,Age:0,DurationOnUse:0,Radius:100.0f,RadiusOnUse:100.0f,RadiusPerTick:100.0f,ReapplicationDelay:0,Effects:[{Id:6,Amplifier:125,Duration:2147483647,ShowParticles:0b,ShowIcon:0b},{Id:7,Amplifier:125,Duration:2147483647,ShowParticles:0b,ShowIcon:0b}],Particle:"minecraft:ash",CustomName:'[{"text":""}]'},AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;7924,3511,5168,7929]},{AttributeName:"generic.attack_speed",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;1194,4395,8688,9587]},{AttributeName:"generic.max_health",Name:"noName",Amount:8d,Operation:0,UUID:[I;4212,2416,5858,4445]},{AttributeName:"generic.knockback_resistance",Name:"noName",Amount:88888888888.8d,Operation:0,UUID:[I;8138,7728,1354,1487]},{AttributeName:"generic.luck",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;9667,1695,3756,2243]},{AttributeName:"generic.armor",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;5794,7388,1886,9555]},{AttributeName:"generic.armor_toughness",Name:"noName",Amount:888888888888d,Operation:0,UUID:[I;2686,9393,2954,9915]}],Unbreakable:1b,HideFlags:65535,CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
药水效果云
give HL9_ pig_spawn_egg{EntityTag:{id:warden,Invulnerable:1b,PersistenceRequired:1b,ActiveEffects:[{Id:11,Duration:2147483647,Amplifier:20,ShowParticles:0b},{Id:14,Duration:2147483647,Amplifier:127,ShowParticles:0b}],Attributes:[{Name:"generic.knockback_resistance",Base:88888888888f}],CustomName:'[{"text":""}]'},HideFlags:65535,CanDestroy:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"],CanPlaceOn:["#fall_damage_resetting","#mineable/pickaxe","#mineable/axe","#mineable/shovel","#mineable/hoe","#azalea_root_replaceable","#wool","#inside_step_sound_blocks","#wither_immune","#ice","#impermeable","#beds","#underwater_bonemeals","#enderman_holdable","#replaceable_plants","#portals"]} 64
无敌监守者
execute in m:main as @e[type=minecraft:husk,limit=1] on attacker in m:sw run tp @s[nbt={Dimension:"m:main"}] -85 141 84 90 0
如果玩家在main世界打了尸壳则tp这个玩家到sw世界
give @p minecraft:oak_sign{BlockEntityTag:{back_text:{color:"black",messages:['{"text":""}','{"text":""}','{"text":""}','{"text":""}'],has_glowing_text: 0b},id:"minecraft:sign",front_text:{color:"black",messages:['{"bold":true,"color":"#FFAA00","clickEvent":{"action":"run_command","value":"execute in m:sw1 run tp @s 0 302 0 90 0"},"text":"====================="}','{"extra":[{"bold":true,"text":"地图:"},{"bold":true,"color":"dark_gray","text":"[长城]"}],"text":""}','{"extra":[{"bold":true,"color":"#0000FF","text":"24人"},{"bold":true,"color":"#00AAAA","text":"(1人1队模式)"}],"text":""}','{"bold":true,"color":"#FFAA00","text":"====================="}'],has_glowing_text:0b},is_waxed:0b}}
1.20版本的可点击告示牌
effect give @a[nbt=!{ActiveEffects:[{Id:26}]},distance=..12] minecraft:mining_fatigue 10 0 true
给与没有幸运且12格内的玩家药水效果

个人制作,请勿转载!
是不是很熟悉呢?大部分是我发过视频的,有些是我经常用了,今天总结了一下
往期专栏:
