我的世界地雷功能指令制作教程

地雷
[一個(gè)積分板]
/scoreboard objectives add 地雷 dummy
[功能后臺(tái)部分]?
[第一個(gè)循環(huán),其它全部連鎖,零延遲,長(zhǎng)開]
tag @a[tag=地雷] remove 地雷
tag @r[hasitem={item=iron_shovel,location=slot.weapon.mainhand}] add 地雷
execute @a[tag=地雷] ~~~ fill ~-2 ~-1 ~-2 ~2 ~1 ~2 snow_layer 2 replace daylight_detector
[此條有條件的]?
execute @a[tag=地雷] ~~~ playsound dig.sand @a[r=8]
[此條有條件的]?
scoreboard players add @a[tag=地雷] 地雷 0
execute @a[scores={地雷=30..}] ~~~ fill ~-2 ~-1 ~-2 ~2 ~1 ~2 snow_layer 1 replace snow_layer 2
[此條有條件的]?
execute @a[scores={地雷=30}] ~~~ playsound dig.sand @a[r=8]
execute @a[scores={地雷=60..}] ~~~ fill ~-2 ~-1 ~-2 ~2 ~1 ~2 snow_layer 0 replace snow_layer 1
[此條有條件的]?
execute @a[scores={地雷=60}] ~~~ playsound dig.sand @a[r=8]
execute @a[scores={地雷=90..}] ~~~ fill ~-2 ~-1 ~-2 ~2 ~1 ~2 carpet 7 replace snow_layer 0
[此條有條件的]?
execute @a[scores={地雷=90}] ~~~ playsound random.anvil_use @a[r=8]
[此條有條件的]?
execute @a[scores={地雷=90}] ~~~ tellraw @s {"rawtext":[{"text":"§e地雷安裝成功"}]}
scoreboard players add @a[scores={地雷=0..}] 地雷 1
scoreboard players reset @a[scores={地雷=91..}] 地雷
title @a[scores={地雷=0..}] title §r
title @a[scores={地雷=1..90}] subtitle §l§o§a《§c正在安裝掩埋地雷§e》
title @a[scores={地雷=0..90}] times 0 20 0
execute @e[type=!item] ~ ~ ~ detect ~ ~0.1 ~ carpet 7 tag @s add 地雷a
execute @e[type=!item,tag=地雷a] ~ ~ ~ fill ~~~~~~ air
[這條指令是傷害,調(diào)節(jié)修改在這]?
execute @e[type=!item,tag=地雷a] ~ ~ ~ damage @e[type=!item,r=6] 35 entity_explosion entity @s
execute @e[type=!item,tag=地雷a] ~ ~ ~ particle minecraft:huge_explosion_lab_misc_emitter
execute @e[type=!item,tag=地雷a] ~ ~ ~ playsound cauldron.explode @a[r=100]
execute @e[type=!item,tag=地雷a] ~ ~ ~ tellraw @a[r=1] {"rawtext":[{"text":"§c§l§o你踩中了地雷"}]}
tag @e[tag=地雷a] remove 地雷a
tag @a[tag=地雷a] remove 地雷a