• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

GetBiomeAt

Umbrella

Refugee
Hello,

I am using World.getBiomeAt(x,y) to detemine biomes near the local player (near: something like 200 blocks).

However, the function returns null sometimes (I guess the chunk is too far away and not loaded into memory yet).

How could I fix it ?

1) Is there another way to query the biome at 2D coordinates ?

1.i) maybe from the image map ? Is that map available in memory ? Can it be recreated ?

2) Can I force a distant chunk to load without messing up with how the game manages chunks ?

Thank you !

 
Back
Top