Why don't spawn chunks work properly with OptiFine?

Why don't spawn chunks work properly with OptiFine? - Man in Red Crew Neck T-shirt Holding White Box

(This is a follow-on to an earlier question whose answer taught me about spawn chunks.)

I've built an iron golem farm in Minecraft, and I've noticed that golems don't spawn when I'm far away from it if I'm using OptiFine, even though the farm is located within the "spawn chunk" area that should always be loaded. If I switch to vanilla Minecraft without OptiFine, the farm works properly even when I'm far away. It also works under OptiFine when I'm near the farm.

I'm running Minecraft 1.8.4 with the official Mojang launcher, and OptiFine 1.8.4 HD D4 Ultra. No other mods. The farm is basically right next to the world spawn point; the whole thing is within about 40 blocks of it. I'm traveling to a distance of about 600 blocks for testing "far away". I'm staying entirely in the overworld, so the Nether isn't involved.

With vanilla, my farm produced about 40 iron in about half an hour while I stood at a distance of roughly 600 blocks. With OptiFine loaded, it produced zero iron in an entire hour of idling at the same distance. Items dropped on the ground did disappear, though, so it seems that the farm's chunks are still loaded at least to some extent under OptiFine.

Is there a way I can fix this? I want to use OptiFine for its connected textures and anisotropic filtering, but I also want my iron farm to work. As a guess, I tried turning off OptiFine's "lazy chunk loading" setting, since the tooltip says that turning it off gives you "default server chunk loading", but it didn't make a difference.



Best Answer

The Smooth World option in the Optifine performance settings allows spawn chunks to unload when you are faraway. If you want iron farms to keep working as long as you are in the overworld, turn Smooth World OFF.




Pictures about "Why don't spawn chunks work properly with OptiFine?"

Why don't spawn chunks work properly with OptiFine? - Man in White and Black Crew Neck T-shirt
Why don't spawn chunks work properly with OptiFine? - Man in White Crew Neck T-shirt Holding Red Plastic Crate With Green Plants
Why don't spawn chunks work properly with OptiFine? - Person in Red T-shirt Holding Green Plant



How do you keep a chunk permanently loaded?

Use a Nether Portal. One of the most efficient ways to maintain chunks constantly loading in Minecraft is using a Nether portal. In this case, you'll have to make sure any object is moving through the portal.

Do spawn chunks cause lag?

Since spawn chunks remain loaded, events occurring in them continue to process, even if no players are nearby. If the world spawn is set to a laggy area using commands, such as an area with many redstone clocks, lag is present wherever the player is in the world.

Do farms work in Spawn chunks?

Iron FarmsThis is probably the most useful thing that can be put in your spawn chunks, and if you ever build one of these, this is where it should be.

Do spawn chunks change with Setworldspawn?

Note. On success, spawn chunks are also changed along with the world spawn in Java Edition. Normal spawn spreading still applies, and can be set with a gamerule.






More answers regarding why don't spawn chunks work properly with OptiFine?

Answer 2

I tried a bunch of earlier revisions and found that spawn chunks seem to work correctly in OptiFine 1.8.0 HD U A3 and A4, but not in later versions. I'm assuming it's just a bug that was introduced in version A5.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Kindel Media, Kindel Media, Kindel Media, Kindel Media