Help with particles

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

    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!

mozuzu222

Member
Feb 12, 2026
1
0
1
Code:
on right click:
    if player is holding netherite axe:
        if lore of player's tool contains "&8Shoot a small Matter-splitting Projectile that damages enemies (25 Second Cooldown)!":
            if {cooldownrift::%player%} is 0:
                set {cooldownrift::%player%} to 25
                set {_caster} to player
                play sound "entity.wither.shoot" at player
                play sound "entity.warden.sonic_boom" at player
                loop {@riftRange} times:  
                    set {_block} to block loop-number-1 blocks in front of player
                    set {_base} to location of {_block}
                    loop 4 times:
                        set {_loc} to {_base}
                        set {_height} to loop-number-2
                        remove 1 from {_height}
                        add {_height} to y-coordinate of {_loc}
                        make 3 of item particle using diamond at location of player
                        loop all entities in radius 2 around {_loc}:
                            if loop-entity is not {_caster}:
                                damage loop-entity by {@riftDamage}
                                push loop-entity upwards with force 0.1

            else:
                send "&cWait &e%{cooldownrift::%player%}% &cmore seconds before you can use this ability again!" to
i am trying to use particles (line 16) but it keeps saying it doesnt understand this statement even tho its an official example from the documentation (yes i have skbee)