#HELP!
49 messages · Page 1 of 1 (latest)
🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.
[14:08:49] [INIT] Loaded plugins:
[14:08:49] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgePlugin
[14:08:49] [INIT] - dev.latvian.mods.kubejs.forge.BuiltinKubeJSForgeClientPlugin
[14:08:49] [INIT] - moe.wolfgirl.probejs.plugin.BuiltinProbeJSPlugin
[14:08:49] [INFO] Loaded script startup_scripts:DiamondApple.js in 0.043 s
[14:08:49] [INFO] example.js#5: Hello, World! (Loaded startup scripts)
[14:08:49] [INFO] Loaded script startup_scripts:example.js in 0.001 s
[14:08:49] [INFO] Loaded 2/2 KubeJS startup scripts in 0.339 s with 0 errors and 0 warnings
[14:08:49] [ERROR] ! DiamondApple.js#3: Error in 'StartupEvents.registry': ReferenceError: "displayName" is not defined.
thats not the code
is error
yeah but show us your diamondapple.js
we cant do anything without seeing the code in question like lexxie said
not a screenshot
send it actually here please
StartupEvents.registry('block', event =>{
event.create('diamondapple')
displayName('DiamondApple')
maxStackSize(64)
})
ty
you're missing the period after these js .displayName('DiamondApple') .maxStackSize(64)
they have to go off event.create().displayName().maxStackSize() ect
not event.create()displayName()maxStackSize()
im saying this is not proper javascript, this is what you're doing
you need to do this
yes watch my tutorial Xd
but not work 😦
like i said before, you're missing periods before these
You missed the periods
xd
What
json give a error
just ignore it if you didnt touch it
ok
if you messed with it and now its erroring just delete it and reboot your game
also whys it in startup scripts folder?
And why did you show it like that in the tutorial and for me where?

Are you talking about the json file
whats this?
I feel like you should be making seperate tickets for each issue so as not to be confused. You added the periods , to your code, correct?
yea
i never put a json file in startup scripts in the tutorial though 
we never messed with json files
i think they thought youre talking about the JS
ajuda o maluco tá doente!