i need help to making a skript where fireballs only damage stone bricks (i alr have the fireball shooting skript) here it is:
Pls help!
Code:
on right click:
if {artilery.%uuid of player%} is true:
if {overheat.%uuid of player%} is not set:
set {overheat.%uuid of player%} to 0
if {overheat.%uuid of player%} < 5: # Adjust the overheat limit as needed
set {guncd} to difference between {gunclick.%player%} and now
if {guncd} < 0.5 seconds:
cancel event
stop
set {gunclick.%player%} to now
set {reloading.%player%} to false
shoot a fireball from player at speed 2.5
play sound "entity.generic.explode" from master category at volume 2 with pitch 2 at player's location
add 1 to {overheat.%uuid of player%}
send "Fireball shot! Overheat counter: %{overheat.%uuid of player%}%/5" to player
wait 5 seconds
remove 1 from {overheat.%uuid of player%}
send "Cooldown complete. Overheat counter: %{overheat.%uuid of player%}%/5" to player
else:
send "Your artillery is overheating! Please wait a moment before firing again." to player