#why does this not work

1 messages · Page 1 of 1 (latest)

hollow delta
#
    wait 1 tick
    if {%event-item%::%uuid of player%} is not set:
        broadcast "%player% has made advancement <tooltip:&acollect %event-item%>&a[%event-item% Age]<reset>"
        play sound "ui.toast.challenge_complete" with volume 10 to the player
        spawn a lightning bolt at the player
        set {%event-item%::%uuid of player%} to true
    if "%enchantments of event-item%" contains "sharpness":
        wait 5 ticks
        kill the event-player```
no errors
keen ferry
#

are you seriously going to set a variable for every single item per player?

#

that might be your worst idea yet

#

especially since each item with a different name, durability, or even stack size would make a new variable

#

even if you made it each itemtype this would create 1,643 vars per player

hollow delta
#

so how do I fix it tho

hollow delta
keen ferry
#

lightning effect. then it doesnt deal damage or set things on fire. I assumed you didnt notice because you are testing in creatiev

#

and, its send formatted %string(s)%

hollow delta
hollow delta
keen ferry
#

thats how you fix that line

hollow delta
#

but it is broadcast

keen ferry
#

the formatted modifies the string, not the effect, it works in both send and broadcast effects

hollow delta
#

broadcast formatted ""

#

oh ok

hollow delta
#

it workd

#

ty

thick furnace
hollow delta
#

1000% not

thick furnace
#

why not? does it not work?

hollow delta
#

did u see the skript

hollow delta
#
    wait 1 tick
    if {%event-item%::%uuid of player%} is not set:
        broadcast "%player% has made advancement <tooltip:&acollect %event-item%>&a[%event-item% Age]<reset>"
        play sound "ui.toast.challenge_complete" with volume 10 to the player
        spawn a lightning bolt at the player
        set {%event-item%::%uuid of player%} to true
    if "%enchantments of event-item%" contains "sharpness":
        wait 5 ticks
        kill the event-player```
#

its a advancement

#

everytime u pick up a item

thick furnace
#

not a real advancement

#

skript-advancements does all the storing for you via a database

hollow delta
#

its broken tho

thick furnace
#

what skript and server version

hollow delta
#

I delted it

thick furnace
#

I figured but still

#

I may update it