/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 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 @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”]}
检测鸡蛋的位置,生成盔甲架
/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 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:“你爹”}
指令书制作
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抗击退的剑