#Makin a poison potato

1 messages · Page 1 of 1 (latest)

solemn blaze
#

on consume:
if name of event-item is "&fPrincess' Poisionous Potato":
make player damage player by 2
set player's food level to 10
give player poisionous potato named "&fPrincess' Poisionous Potato"

It just, doesnt work T_T

jaunty cove
#

"potat "

weak turret
#

Explain no work

solemn blaze
#

it doesnt deal damage and it doesnt heal hunger

weak turret
#

You looked skript docs ?

solemn blaze
#

on consume should work

#

but it just

#

doesnt

weak turret
#

Where you got this line
make player damage player by 2

solemn blaze
#

another skript i use, its made by someone else but i thought itd work the same

#

it was for a gun skript, i just replaced loop-entity with player

weak turret
#

wowowow - stop stop

#

Now i know where is problem - you do not understand what u coppied

#

Go and see how damage event need to look

solemn blaze
#

oke thanku!

weak turret
#

Then come back with eddited code..

solemn blaze
#

on consume:
if name of event-item is "&fPrincess' Poisionous Potato":
damage player by 2
set player's food level to 10
give player poisionous potato named "&fPrincess' Poisionous Potato"

#

yeah no

#

still doesnt work, is it a problem with on consume

#

cuz its just not triggedring

#

triggering*

weak turret
#

Debug it

jaunty cove
#

try doing uncolored name of event-item and remove the "&f" 2nd line

weak turret
#

broadcast "test1"

^ use broadcasting to see where code breaks

solemn blaze
#

oh yeah-

solemn blaze
#

should i specify that the event item is a poisionous potato?

solemn blaze
#

yeah on consume is the problem

#

i did just
on consume:
broadcast testiclee
and its not broadcasting

weak turret
#

But it should - do it...

stiff smelt
#

Its the color code

solemn blaze
weak turret
#

You reloaded skript ?

solemn blaze
#

yeo

#

still nothin

weak turret
#

because on consume you should see broadcast message

#

paste codeblock how u did it

stiff smelt
weak turret
solemn blaze
#

wAIT

#

OMFG

#

I DIDNT

#

SPECIFY STRING

#

HOLLLY SHIT

jaunty cove
#

ok bahk tua

stiff smelt
#

and now, was it the color code?

solemn blaze
#

....

#

........

#

.......

#

yall

#

it worked

#

im a lil slow

stiff smelt
#

yeah so it was the color code?

jaunty cove
#

we forgive you bahk tuah

solemn blaze
weak turret
#

Continue to debug code

solemn blaze
#

it worked when i ate somthing

#

but

#

didnt specify what it should be named

#

so ive ruled out that on consume is the problem

weak turret
#

good good

solemn blaze
#

its name of event-item

weak turret
#

It is called learning

solemn blaze
#

cuz thats the only thing with a problem

stiff smelt
#

try event-itemtype

solemn blaze
#

oh yeahhh

stiff smelt
#

or no event-itemstack

weak turret
#

Yeah - that is why you should always check documentation first...

stiff smelt
#

dont tell me, i didnt ask 💀

wraith copperBOT
weak turret
solemn blaze
weak turret