#Fireball

1 messages · Page 1 of 1 (latest)

latent flare
#

I am making fireballs for my KitPvP server, but I have a question.

first of all, this is my skript:

    remove 1 fire charge from player's inventory
    shoot a fireball from player at speed 1```

I'm wondering how I can make it not damage blocks, and not light stuff on fire. I still want it to damage the victim, and light the victim on fire (which it already does) but I don't want it to damage anything.

Thanks!
#

I'm also trying to make it so you can only do it every 5 seconds, but this skript doesn't work:

    fireballtimer = 0

on right click with fire charge:
    if fireballtimer > 0:
        cancel event
        send "&cYou must wait &7%{%player%::fireballtimer}% &cmore seconds before using &eFireball &cagain!"
    else:
        remove 1 fire charge from player's inventory
        shoot a fireball from player at speed 1
        set {%player%::fireballtimer} to 5
        wait 1 second
        set {%player%::fireballtimer} to 4
        wait 1 second
        set {%player%::fireballtimer} to 3
        wait 1 second
        set {%player%::fireballtimer} to 2
        wait 1 second
        set {%player%::fireballtimer} to 1
        wait 1 second
        set {%player%::fireballtimer} to 0
        stop```
frail badge
frail badge
#

oops, add a check for if it's not set

#

on that first condition

latent flare
#

idk what that means lmao

frail badge
#

try that

#
on right click with fire charge:
  set {_allowed} to true if metadata value "fireball time" of player is not set
  set {_allowed} to true if time since (metadata value "fireball time" of player) > 5 seconds
  if {_allowed} is true:
    set metadata value "fireball time" of player to now
    remove a fire charge from player
    shoot a fireball from player at speed 1
latent flare
frail badge
#

use the on explode event

latent flare
#

how though lmao

final escarp
#

bruh my msg keeps getting blocked

solid hound
final escarp
#

it fixed stuff for me

solid hound
#

while ChatGPT has its small times of doing something good, it quite often just outputs nonsense and rubbish

latent flare
#

@final escarp, @solid hound chat g p t isn't good for skript, I only use it for when I have a mistake in a different language

solid hound