I'm having trouble with checking for the players position in a certain biome, I'm also trying to remove existing music, but I couldn't find a way to do it.
Here are some of my scribbles:
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.Entity;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.world.World;
public class Events {
//ClientPlayerEntity mc = MinecraftClient.getInstance().player;
World world = MinecraftClient.getInstance().world;
Entity cam = MinecraftClient.getInstance().getCameraEntity();
MinecraftClient t = MinecraftClient.getInstance();
//Separate
if (world.)
PlayerEntity entity = MinecraftClient.getInstance().player;
World world = entity.getEntityWorld();
BlockPos pos = new BlockPos(entity.getBlockPos());
Biome biome = world.getBiome(pos).value();
if (entity.getWorld().getBiome(playerEntity.getBlockPos()).value()) {
}
}
None of it works btw :/