#skript effect bug
1 messages · Page 1 of 1 (latest)
No need to do this.
on swap hand items:
if offhand item is white candle named "&7&lHeaven":
apply strength 2 to player for 999 hours
apply speed 2 to player for 999 hours
if offhand item is not white candle named "&7&lHeaven":
remove strength from player
remove speed from player
i deleted the previous post, could you elaborate what you mean by "waiting a tick?"
1: you didnt delete it
2: add a wait 1 tick after the swap hand event
alright, it worked now. But if i take the candle off in my inventory, the effect still remains. how can i check if the player has white candle in inventory or not?
If player's offhand tool is candle named "whatevrr":
i would change a bunch of things for this
just on spawn items, then while player's offhand tool = x: #give potions REPLACING EXISTING EFFECT #wait 1 s
doesnt work btw
doesnt work either
because thats not a structure
it goes inside an event.
notice how i said "(something) then (that code)"?
although, to be fair, "spawn" was meant to be "swap"
uhm
uh
so how am i supposed to fix it
put it inside an if statement?
i dont get it but its fine, ill ask my skript friend later. Thanks
every part of code in skript needs to be in a block (a structure) that starts with something that's actually able to start one
a "while" cannot start one, because it's never specified when to start looping
To start a code block, you need an event, a command or a function(don't worry about functions)
event examples:
on break:
on kill:
command examples:
command /e:
command /hellothere:
Instead of saying skript effect bug, just say that ur code doesn't work lol
oh, so for my case its on swap hand items: right