FireFlower attack player within radius of player holding the fireflower

  • 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!

ItzRepsac_

Member
Aug 27, 2023
3
0
1
24
Hey everyone, first time posting on this skript forum! :emoji_slight_smile:
Im working on a custom item, when a player is holding a flower, it sets every player within a 6 blocks radius on fire. Everything seems to be working, till the loop all player part. I cant get that part of the skript to work

Anyone able to help me out? :emoji_slight_smile:

code_language.skript:
on right click holding crimson fungus:
    name of player's tool is "&c&l&k;&6Flower of &cet&c&ke&cr&cn&c&ka&cl&6 fire&c&l&k;":
        set {waitedfire} to difference between {cooldown::%player's uuid%::fire} and now
        if {waitedfire} is less than 15 seconds:
            message "&ewait %difference between 15 seconds and {waitedfire}% before using this ability again!" to player
        else:
            loop 360 times:
                set {_v} to spherical vector with radius 5, yaw loop-value, pitch 0
                make 1 of flame at location of player ~ {_v}
 
            loop all players where distance between player and player input is smaller than 6:
                set fire ticks of player to 100
                set {cooldown::%player's uuid%::fire} to now


Errors im getting:
Can't understand this condition/effect: set fire ticks of player to 100

set fire ticks of player to 100