I tried to create a skirpt that adds a bomb but when you place it and press right button with the stick it should explode in a few seconds but it doesn't work and I don't know why
here is the skript if someone can help me
Code:
command /bomb:
trigger:
give player 1 white glazed terracotta named "&5&lBOMBA"
give player 1 stick named "&cBotton Bomba"
on place white glazed terracotta:
if name of player's tool is "&5&lBOMBA":
if {bomba:emoji_stuck_out_tongue:laced} isn't set:
set {bomba:emoji_stuck_out_tongue:laced} to "true"
send action bar "&aHai attivato questa bomba correttamente!" to player
stop
on right click with stick:
if name of tool of player is "&cBotton Bomba":
if {bomba:emoji_stuck_out_tongue:laced} is set:
if {bomba::esplode} isn't set:
if name of block is "&5&lBOMBA":
if event-block is white glazed terracotta:
set {bomba::esplode} to "true"
send action bar "&aHai azionato la bomba correttamente!" to player
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
play sound "minecraft:entity.generic.extinguish_fire" with volume 5 to the player
wait 1 seconds
create an explosion of force 10 at location of block
wait 1 seconds
set {bomba::esplode} to "false"
set {bomba:emoji_stuck_out_tongue:laced} to "false"
stop
Last edited by a moderator: