指令1.13
快速找尋任何所需要的資訊請用Ctrl+F
快速找尋任何所需要的資訊請用Ctrl+F
音樂
點擊左邊黑色部分自動撥放
作法:用掉落方塊(實體)去更改Tag為ID指令方塊,並且在方塊內輸入指令
範例:掉落一個重複指令方塊、永久啟動,指令為function main:example
/summon falling_block ~ ~1 ~ {Time:1,BlockState:{Name:"minecraft:repeating_command_block"},Data:1,TileEntityData:{auto:1,Command:"function main:example"}}
範例:掉落一個脈衝指令方塊、永久啟動(落地觸發指令),指令為say hi
summon falling_block ~ ~2 ~ {Time:1,BlockState:{Name:"minecraft:command_block"},Data:1,TileEntityData:{auto:1,Command:"say hi"}}
脈衝方塊 command_block
連鎖方塊 chain_command_block
循環方塊 repeating_command_block
配搭指令:execute、summon、particle、tp
1、偵測名稱「A」盔甲架(直視)定點
execute as @e[name=A] at @s run particle minecraft:flame ^ ^ ^1.5 0 0.3 0 0 100 force @a
2、傳送名稱「A」盔甲架動作,例如:往上飛行並轉頭(如圖
/execute as @e[name=A] at @s run tp @s ~ ~0.5 ~ ~30 ~
3、召喚隱身效果盔甲架「A」
/summon armor_stand ~ ~ ~ {Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,CustomName:"{\"text\":\"A\"}"}
※如要結束動作請刪除 Name=A 的盔甲架
1.13 使用指令: /effect give @a minecraft:效果名稱 秒數 等級 隱藏圖案
ID 中文名稱
minecraft:absorption 吸收
minecraft:bad_omen 不祥之兆
minecraft:blindness 失明
minecraft:conduit_power 海靈祝福
minecraft:darkness 黑暗
minecraft:dolphins_grace 海豚悠游
minecraft:fire_resistance 抗火
minecraft:glowing 發光
minecraft:haste 挖掘加速
minecraft:health_boost 生命值提升
minecraft:hero_of_the_village 村莊英雄
minecraft:hunger 飢餓
minecraft:instant_damage 立即傷害
minecraft:instant_health 立即治療
minecraft:invisibility 隱形
minecraft:jump_boost 跳躍提升
minecraft:levitation 懸浮
minecraft:luck 幸運
minecraft:mining_fatigue 挖掘疲勞
minecraft:nausea 噁心
minecraft:night_vision 夜視
minecraft:poison 劇毒
minecraft:regeneration 回復
minecraft:resistance 抗性
minecraft:saturation 飽食
minecraft:slow_falling 緩降
minecraft:slowness 緩速
minecraft:speed 加速
minecraft:strength 力量
minecraft:unluck 霉運
minecraft:water_breathing 水下呼吸
minecraft:weakness 虛弱
minecraft:wither 凋零
例如:中心點生物有Tag標誌「N」座標x1y2z3往外8格內偵測,並召喚箭矢在玩家身上2.1格高地方
/execute as @e[tag=N,x=1,y=2,z=3,distance=..8] at @e[tag=N,x=1,y=2,z=3,distance=..8] run summon arrow ~ ~2.1 ~
例如:將擁有石頭(stone)並且物品石頭名稱是(Iamstone)拿在手上的玩家加入Tag "ST"
/tag @e[type=minecraft:player,nbt={SelectedItem:{id:"minecraft:stone",tag:{display:{Name:"{\"text\":\"Iamstone\"}"}},Count:1b}}] add ST
偵測殭屍被攻擊後觸發say 123
/execute as @e[type=zombie,nbt={HurtTime:10s}] run say 123
偵測玩家A被攻擊後觸發玩家A say 123:
/execute as @e[type=player,nbt={HurtTime:10s}] run say 123
偵測玩家A被玩家B攻擊,反之,偵測攻擊者玩家B:偵測所有被攻擊者最近的玩家,給予從被攻擊者為中心點最近的玩家指定分數
/execute at @a[nbt={HurtTime:10s}] as @p run scoreboard players set @p[nbt=!{HurtTime:10s}] 計分項目 分數