#I need help to get this to run.
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of server.log, colony_tiers.js from @earnest vapor
line 102; your const colony = player.getColony?.(); is malformed
I have no experience with MineColonies, but you're probably intending for const colony = player?.getColony();
Honestly, I think this whole script might be outdated or broken. Is there any mod that already has a proper rank/tier progression system where completing requirements unlocks mods? Maybe there’s something like that, because to be honest my script was basically built through ChatGPT, so things might not be fully correct.
And I think that even if you find the errors, this is never going to work lol. I guess I’ll just give up haha.
Yeah, AI generated code will be broken at best. KubeJS is still being actively developed, and just 7.1 -> 7.2 had major internal rewrites. AI will scrape the wiki(s) and generate broken code using outdated information.
Not to even mention anything even referencing Create. AI pretty much always break on because it believes Create should be used as a verb, eg "I am Creating something"
You can use Astages (a 1.21 successor of GameStages) which was built for KubeJS scripting
Is it very hard to program this to work with this mod lol? Because I think if I use all my brainpower I can do it.