|
熊孩子在创造区拿了岩浆就会被困在传送点,房主会收到警报立刻远程处理。
第一个命令方块(重复型 + 始终活动):
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] run tellraw @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] {"rawtext":[{"text":"⚠️ 警告!你携带了岩浆桶!"}]}
第二个命令方块(连锁型 + 始终活动):
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] run title @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] title §c⚠️ 警告!你携带了岩浆桶!
第三个命令方块(连锁型 + 始终活动):
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] run playsound random.orb @a[hasitem={item=minecraft:lava_bucket, quantity=1..}]
第四个命令方块(连锁型 + 始终活动):传送,出发方式有:1传送到创造区传送点,生存区传送点,禁闭室1传送点,熊孩子岛传送点,最终选择了比较温和的方式
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..},scores={hasTotem=1}] run tp @a[hasitem={item=minecraft:lava_bucket, quantity=1..},scores={hasTotem=1}] 739 63 260
第五个命令方块(连锁型 + 始终活动):传送,出发方式有:1传送到创造区传送点,生存区传送点,禁闭室1传送点,熊孩子岛传送点,最终选择了比较温和的方式
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..},scores={hasTotem=2}] run tp @a[hasitem={item=minecraft:lava_bucket, quantity=1..},scores={hasTotem=2}] 333 90 351
第六个命令方块(连锁型 + 始终活动):提醒房主
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] run playsound random.orb 墨山游侠001
第七个命令方块(连锁型 + 始终活动):提醒房主,发送私信给 房主,告诉谁携带了打火石
execute if entity @a[hasitem={item=minecraft:lava_bucket, quantity=1..}] run tell 墨山游侠001 ⚠️ 发现玩家: @a[hasitem={item=minecraft:lava_bucket}] 携带岩浆!
清除岩浆
/fill ~-15 ~-15 ~-15 ~15 ~15 ~15 air replace magma_block 不行
/fill ~-15 ~-15 ~-15 ~15 ~15 ~15 air replace lava 可以清除岩浆
/fill ~-15 ~-15 ~-15 ~15 ~15 ~15 air replace flowing_lava 可以清除流动岩浆
清除TNT
/kill @e[type=tnt,r=100]
这个命令会移除半径 100 格内的所有 已点燃的 TNT 实体(即爆炸倒计时中的 TNT)。
如果你想移除 未点燃的 TNT 方块,需要用 /fill 命令替换它们,例如:
/fill ~-100 ~-100 ~-100 ~100 ~100 ~100 air replace tnt 方块太多
/fill ~-50 ~-50 ~-50 ~50 ~50 ~50 air replace tnt 方块太多
/fill ~-100 ~-100 ~-100 ~0 ~0 ~0 air replace tnt 方块太多
/fill ~-20 ~-20 ~-20 ~20 ~20 ~20 air replace tnt 方块太多
/fill ~-15 ~-15 ~-15 ~15 ~15 ~15 air replace tnt 可以用,但是范围太小
/fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace tnt 可以用 |
|