Jump to content

tyon2006

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by tyon2006

  1. I am no longer stumped. Here's how I got the biome. This example just prints it to console. @SubscribeEvent public void checkBiomeOnTick(PlayerTickEvent event) { //get player's current position BlockPos playerPosition = event.player.getPosition(); //get world biome from players current position Biome currentBiome = event.player.getEntityWorld().getBiomeForCoordsBody(playerPosition); //get biome name data and convert to string String biomeNameString = currentBiome.getBiomeName(); //print biome name to console System.out.println(biomeNameString); }
  2. I'm stumped on how to get the string of the biome name. Could you lend a hand? To elaborate. I am stuck here:
  3. I had thought of something similar. Are there any concerns for overhead on a check like this?
  4. I'm working on a mod to perform an action to the player when a biome transition is detected. Example, I walk from a minecraft:plains biome to a minecraft:forest biome and then my action occurs. I have not been able to find an event to hook into that can listen for a biome edge transition. I'm coding in 1.12.2. Any suggestions?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.