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
#why does this not work
1 messages · Page 1 of 1 (latest)
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
thats what I want
so how do I fix it tho
:(
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)%
I want that
I did notice but I want it to do damage and set fire
????????????
thats how you fix that line
but it is broadcast
the formatted modifies the string, not the effect, it works in both send and broadcast effects
Using skript-advancmeents may be the better option if it works for your server version
1000% not
why not? does it not work?
did u see the skript
yeah
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
not a real advancement
skript-advancements does all the storing for you via a database
its broken tho
what skript and server version
I delted it