Posted May 13, 201510 yr I can't seem to find anything under Minecraft.thePlayer, or Minecraft.theWorld that displays the biome the player is in. Would someone mind pointing me in the right direction?
May 13, 201510 yr GuiOverlayDebug#call() Look for line with getting biome (from chunk). 1.7.10 is no longer supported by forge, you are on your own.
May 13, 201510 yr Author Well so far this is what i have. public static String getBiome(){ BlockPos blockpos = new BlockPos(mc.func_175606_aa().posX, mc.func_175606_aa().getEntityBoundingBox().minY, mc.func_175606_aa().posZ); Chunk chunk = mc.theWorld.getChunkFromBlockCoords(blockpos); return (String) "Biome: " + chunk.getBiome(blockpos, mc.theWorld.getWorldChunkManager()).biomeName; } But func_175606_aa comes up with "The method func_175606_aa() is undefined for the type Minecraft". A google search has shown some code involving particles, but nothing about biomes, or that explain what func_175606_aa is or does. Am i missing a dependency?
May 14, 201510 yr Would this work? player.worldObj.getBiomeGenForCoords(player.getPosition()).biomeName
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.