#Help me clean up startup script to only use part startup script and move rest to server scripts

22 messages · Page 1 of 1 (latest)

quiet rockBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

light mountain
mint helmBOT
#

Paste version of greenhouse_glass.js from @light mountain

ancient edge
#

what

light mountain
#

I'd like to move everything that doesn't need to be in startup scripts (like the tick logic) into server scripts, because I can't /reload startup_scripts

ancient edge
#

use the global trick

light mountain
#

when I update this file in startup scripts and reload, it keeps the old code in memory until I completely leave MC and reload

ancient edge
#

modify the globals, and than /kubejs reload startup_scripts

light mountain
#

you'll need to give me an example of that, as I'd be using that if I knew what that meant

#

that doesn't work

#

still loads the old code

#

refuses to listen to my changes

#

I swear it used to work in previous versions, might be a conflict with one of the addon kubejs mods?

#

oh wait I think I'm misunderstanding you

#

I think that's what I'm asking for an example of donald, if I knew what you were talking about, I'd have done it already

#

oh... they are already declared global. yeah kubejs reload startup_scripts wasn't working earlier

#

I'll try and double check though

#

ok that worked

#

going to close ticket, thanks donald

#

now I just need to fiture out how to set moisture level of a block from entity

#

don't suppose you'd know a way to make targetBlock.set('minecraft:farmland', { moisture: "7"}); work eh?