#Form UI help
1 messages · Page 1 of 1 (latest)
player is not defined, so define player. const player = event.source
and its beforeEvents so player will not have privileges
if you want to keep it beforeEvents, you need to have the code inside system.run for the player to have privileges.
if you have no reason to use beforeEvents, just change it to afterEvents
@somber meadow
also, what script versions do i need (stable ones so i dont need to constantly update them)
it needs beta apis.
"dependencies": [
{
"module_name": "@minecraft/server",
"version": "1.8.0-beta"
},
{
"module_name": "@minecraft/server-ui",
"version": "1.2.0-beta"
}
]```
np
no wonder it wasnt working
do you not have creator logs on?
i do
it tells you why then...
but my pack has so many errors its quite hard to view specifc errors
yea
because creator logs are really helpful...
bug squashing time
bugsbegone
oh yeah one more question (am I necroposting?)
The thing aint working
i didnt see any logs on it
you are trying to receive data from the itemUse, but you cant because it's not within the code.
put it within the your itemUse code above the conditional statement.
sorry, im not sure how
and where :/
above the if (r.canceled) return code?
above the first condition statement or just above the form stuff.
Isnt the itemUse code alr there?
also i tested it again
what
theres a problem with my main.js code
it isnt that complicated
^^^
you are just assinging a keyword for player
i must define it?
to what
...
err
Oh
im dumb
const player == itemUse?
or is that wrong too 😬
im sorry
?
leaving the post
oh
someone else can help.
uh ok