Open Yarden-zamir opened 1 year ago
hm.. I'm sure there is a solution that does not involve blocks, especially because we only have one cow it should be easy
engineersmith_4628 on Discord says
ForgeChunkManager
engineersmith_4628 on Discord says
Probably can use it in kjs with Java.loadClass
engineersmith_4628 on Discord says
Add:
forceChunk(getOverworldLevel(), "ptdyeplus", betsy.getUUID(), betsy.chunk.x, betsy.chunk.y, true, true)
Remove:forceChunk(getOverworldLevel(), "ptdyeplus", betsy.UUID(), betsy.chunk.x, betsy.chunk.y, false, true)
oh its that easy
engineersmith_4628 on Discord says
yee; the benefit of most forge mods having open sauce; can just look up a chunk loader mod and see how it works and it will point you to handy functions like that
lmao i tried to do that and couldn't see a solution
maybe it was too late
hm, for some reason ForgeChunkManager class is not available with Java.loadClass
does anyone know why some classes are not available to load in kubejs?
engineersmith_4628 on Discord says
I believe it is to try and combat malicious code. Which is why we IO operations are very limited in kjs
engineersmith_4628 on Discord says
Since Kubejs isn't like a mod where you can test it's hash easily to confirm it hasn't been altered. A bad actor could inject some javascript and really mess your day up
ah i see
trying in java now
Could try and do a command block solution like this: https://www.reddit.com/r/MinecraftCommands/comments/zyw86x/comment/j287mga/?utm_source=share&utm_medium=web2x&context=3
Not sure how to place a command block in the world where the player can't get to it though
couldn't find a mod that has entity chunk loaders