手裡拿一個吊杆,右鍵丟出。
再次右鍵收回時,會在剛剛吊鉤的地點引爆炸彈。
這是如何做到的呢?
首先把你的遊戲語言調整為英文
創建兩個記分板:
/scoreboard objectives add FX dummy FX
/scoreboard objectives add FX2 dummy FX2
然後循環執行下列指令:
/execute @e[name=unknown,type=!Player] ~ ~ ~ /summon Small_Fireball ~ ~ ~ {direction:[0.0,0.0,0.0]}
/scoreboard players add @e[type=Small_Fireball] FX 1
/scoreboard players add @e[type=Small_Fireball] FX2 1
/kill @e[type=Small_Fireball,score_FX_min=3]
/execute @e[name=unknown] ~ ~ ~ /scoreboard players set @e[type=Small_Fireball,r=2] FX2 0
/execute @e[type=Small_Fireball,score_FX2_min=2] ~ ~ ~ /summon Creeper ~ ~ ~ {ExplosionRadius:2,Fuse:-1,ActiveEffects:[{Id:14,Duration:0}],CustomName:炸彈}
各個版本實體名稱略有差別,自行更改。