fireballs

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AdenR84

Active Member
Sep 4, 2023
106
1
18
23
i need help to making a skript where fireballs only damage stone bricks (i alr have the fireball shooting skript) here it is:
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
Pls help!