Push
PUSH
The problem is, I don't know how the two locations are connected - the path is not straight from l1 to l2.
Hello, the title says it all, I wanted to ask if it is possible to check if 2 blocks/locations are connected by blocks with a certain Material...
@AdamQpzm So why is there no method which simply returns the Block itself instead of the ID?
I had useless code saying int z = (int)(loc.getZ() - (loc.getZ() % size)); if(loc.getZ() < 0) int z = (int)(loc.getZ() + (loc.getZ() % size));
I was searching for wooden planks, and there are some. I guess. :D Thanks for the tip! I found the problem: The coords are saved the wrong way....
public int countBlocks(Location l1, Location l2, Material material) { World w = l1.getWorld(); int totalBlocks = 0; for(int...
for(int i = 0; (i < levelBlocks.length); i++){ //Now add the blocks given to the array Location l1 = new Location(world, x, y, z);...
Hello community, I got a problem with my code - The class represents an area that is used as a building (in combination with Towny). I try to...
Thank you :) I will try it soon
Hello, I got a little problem: the method LivingEntity.getTargetBlock() is Deprecated and I cant find a replacement. Which method should I use...
Separate names with a comma.