#Makin a poison potato
1 messages · Page 1 of 1 (latest)
"potat "
Explain no work
it doesnt deal damage and it doesnt heal hunger
You looked skript docs ?
Where you got this line
make player damage player by 2
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
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
oke thanku!
Then come back with eddited code..
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*
Debug it
try doing uncolored name of event-item and remove the "&f" 2nd line
broadcast "test1"
^ use broadcasting to see where code breaks
oh yeah-
i will
should i specify that the event item is a poisionous potato?
I would
yeah on consume is the problem
i did just
on consume:
broadcast testiclee
and its not broadcasting
But it should - do it...
Its the color code
removed and still doesnt work
broadcast testiclee or broadcast „testiclee“
Just making sure 💀

ok bahk tua
and now, was it the color code?
That's why asking.
yeah so it was the color code?
we forgive you bahk tuah
i dont think so? ill try sum rq
Continue to debug code
it worked when i ate somthing
but
didnt specify what it should be named
so ive ruled out that on consume is the problem
good good
its name of event-item
It is called learning
cuz thats the only thing with a problem
try event-itemtype
oh yeahhh
or no event-itemstack
Yeah - that is why you should always check documentation first...

dont tell me, i didnt ask 💀
whiscey suggests that you read this embed
I just pasted the documentation. No worries, pal. New scripters should know that there is an easy way to get information.
the examples there are great, found what i needed, if it doesnt work ill keep you posted, but it prob will, tysm!
→ Read docs
→ write code
→ debug code
Then come here for help. It would be best for your future scripting to learn early, not later.
