#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)
Paste version of greenhouse_glass.js from @light mountain
what
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
use the global trick
when I update this file in startup scripts and reload, it keeps the old code in memory until I completely leave MC and reload
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?
