This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello everyone. I'm trying to figure out how I can check if there is a block in any given distance above the player and if so return a boolean displaying if there is or not. If anybody could help that'd be great. Thanks!
-TBA-
I believe in 1.8 there's a "isAirBlock" method, but i can't remember exactly what it is atm.
for (int i = 0; i < checkHeight; i++) { if (world.isAirBlock(new BlockPos(player.posX, player.posY + i, player.posZ))) return true; }
Hello everyone. I'm trying to figure out how I can check if there is a block in any given distance above the player and if so return a boolean displaying if there is or not. If anybody could help that'd be great. Thanks!
-TBA-
I believe in 1.8 there's a "isAirBlock" method, but i can't remember exactly what it is atm.