#1.20.0 broken script
1 messages Β· Page 1 of 1 (latest)
this is the script
this is the manifest
this is my errors
most of them with someof my packs dont matter
There is an error in this [code](#1116092579663061153 message):
[36mGUI.js[0m:[33m329[0m:[33m7[0m - [31merror[0m[30m TS2339: [0mProperty 'events' does not exist on type 'World'.
[7m329[0m world.events.beforeItemUse.subscribe(eventData => {
[7m [0m [31m ~~~~~~[0m
did that
so what is problem now?
yep, its always hard when are you starting in new topic
if i could suggest* dont use experimental feature thy could break your packs
like my whole gui script broke
ahh i mean i can check on a diff world but
my world with all my realm stuff has ex on it :/
your code looks fine only one problem there right?
hmmm, that problem if you use beforeEvents
there is new privileges system as well π
so that is all that is wrong ?
thenwhat do i put ?
also i got this new error
ill send it
oh manifest change
what do i have to change it to ?
i am so sorry again i am good with like commands and packs new to js i want to learn so i can fix stuff my self just dont have the time right now
i appreciated any help it is very helpful
change versions of modules
server module is 1.3.0-beta now
and server-ui is 1.1.0-beta
ill try this one second
Holy crap thats a lot of json ui error messages
i got that
{
"module_name": "@minecraft/server",
"version": "1.3.0-beta"
},
{
"module_name": "@minecraft/server-gametest",
"version": "1.0.0-beta"
},
{
"module_name": "@minecraft/server-ui",
"version": "1.1.0-beta"
}
do i need to update my uuid for it to work ?
sorry i am really tired i gtg
lol yeah most of them dont matter tho just pop ups
ok please dm me if you got time
That looks fine.
i still get the error code tho
What code error specifically?
ill get it
ok i think it is this one
let player = eventData.source
let item = eventData.item
if (item.typeId == "minecraft:clock") {
menufunction(player) }
})```
yeah. if you read that changelogs its now
beforeEvents.itemUse
ok i will try that and yes i read it but it was a little confusing for me
ill try that one moment please
[Scripting][error]-Plugin [dynamic duo scripts - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'blockBreak' of undefined at <anonymous> (blocks.js:6)
]
[Scripting][error]-TypeError: cannot read property 'typeId' of undefined at <anonymous> (GUI.js:332)
]
[Scripting][error]-TypeError: cannot read property 'typeId' of undefined at <anonymous> (GUI.js:332)```
that first one is a diffrant script
:/ oh no the blocks break is broken too
XD
damn this update Fed everything up
thank you
Ye. Work through those errors from the change logs. See what it specified was changed. You'll probably have a ton of breaking changes. Expect these every update if your not using stable modules
and i cant use a stable module for EX ?huh
this is line 332
if (item.typeId == "minecraft:clock") {
ur item is null
Is that inside itemUse event?
let player = eventData.source
let item = eventData.item
if (item.typeId == "minecraft:clock") {
menufunction(player) }
})```
Yea
I fixed that
Hang on
let player = eventData.source
let item = eventData.item
if (item.typeId == "minecraft:clock") {
menufunction(player) }
})```
cant read typeid
that was in the log
says type error cant read proporty
change eventData.item to eventData.itemStack
Oh no. That's not enjoyable
i know it is telling me it has to do with this
menu.show(player).then(result => {
{show}
read that