# Minecarft Command * ## 實體標籤 * **type 屬性** * **name 名稱** * **gamemode 模式** ```mc= gamemode survival @a[gamemode=creative] ``` * limit 限制數量 * sort --> random nearst ```mc= tp @e[limit=1,sort=random] @s ``` * scores={} * nbt ={SelectedItem:{tag:{hihi:1b}}} * # NBT * ## entity(實體) * Motion:[0d,0d,0d] //位移x,y,z ```mc= data merge entity @s {Motion:[0d,-3d,0d]} ``` * # Tag * /tag [entity] add [TagName] * ex. ```mc= /tag K YukiLongStick ``` * ## give * ### Name :::info display:{Name:"{\"text\":\"name\"}",Lore:["Lore","Lore2"]} 粗體 \"bold\":\"true\" 斜體 \"italic\":\"true\" 亂碼 \"obfuscated\":\"true\" 底線 \"strikethrough\":\"true\" ::: * ### 附魔 :::info Enchantments:[{id:"腹膜ID",lvl:等級}],HideFlags:隱藏附魔 ::: * ### 其他 :::info 無法破壞 Unbreakable:1b 頭顱 SkullOwner:"" ::: :::spoiler ```mc= tag @a[tag=!ice_hold,nbt={SelectedItem:{tag:{ice:1b}}}] add ice_hold execute as @a[tag=ice_hold] at @s as @e[type=!item,distance=1..6] at @s run particle cloud ~ ~ ~ 0.2 1 0.2 0.05 10 execute as @a[tag=ice_hold] at @s run effect give @e[type=!item,distance=1..6] slowness 1 3 execute as @a[tag=ice_hold] at @s run effect give @e[type=!item,distance=1..6] wither 1 3 tag @a[tag=ice_hold] remove ice_hold ``` ::: * # Particle * particle [粒子名稱] [發動x座標] [y] [z] [x擴散範圍] [y] [z] [速粒子擴散度] [粒子量] ```mc= /execute as @e[type=minecraft:zombie,limit=1,sort=nearest] at @s run tp @e[distance=5..] @s ``` * ## Json :::info \"text\":\"Name\" \"bold\":\"true\" \"italic\":\"true\" \"obfuscated\":\"true\" \"strikethrough\":\"true\" \"color\":\"color\" :::