game-design-driven / Create-Prepare-to-Dye

Create: Prepare to Dye an opinionated, minimalistic modpack centered around complex and interesting automation.
GNU General Public License v3.0
24 stars 19 forks source link

Cows are chunk loaders #232

Open Yarden-zamir opened 1 year ago

jasperalani commented 10 months ago

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

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

hm.. I'm sure there is a solution that does not involve blocks, especially because we only have one cow it should be easy

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

ForgeChunkManager

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

Probably can use it in kjs with Java.loadClass

Discord-Github-Bridge commented 10 months ago

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)

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

oh its that easy

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

cool

Discord-Github-Bridge commented 10 months ago

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

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

lmao i tried to do that and couldn't see a solution

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

maybe it was too late

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

hm, for some reason ForgeChunkManager class is not available with Java.loadClass

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

does anyone know why some classes are not available to load in kubejs?

Discord-Github-Bridge commented 10 months ago

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

Discord-Github-Bridge commented 10 months ago

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

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

ah i see

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

trying in java now