#skript effect bug

1 messages · Page 1 of 1 (latest)

loud barn
mystic barn
#

Huh

#

Explain it dude what you mean

shut moss
#

No need to do this.

loud barn
# mystic barn Explain it dude what you mean

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

loud barn
split bronze
loud barn
mystic barn
balmy brook
#

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

loud barn
balmy brook
#

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"

mystic barn
#

uhm

loud barn
#

so how am i supposed to fix it

#

put it inside an if statement?

balmy brook
#

Inside a structure

#

A command, function, or event

loud barn
#

i dont get it but its fine, ill ask my skript friend later. Thanks

unkempt hollow
# loud barn 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:

loud frost
#

Instead of saying skript effect bug, just say that ur code doesn't work lol

loud barn