Hello guys, I would to know how to create a Hollow cube, and the center should be where the player placed the block. For example, When player place a random block on floor will generate a Cube, and the center of this cube need to be where he place de block. Thanks.
@FateCan Again, like I posted on spigot: Create three for loops; one for each of the XYZ directions. The will start at the block's location minus some radius, and loop up to the block's location plus some radius. If the X is equal to Block's location minus Radius, or equal to the block's location plus the radius. OR, if the same thing is true for the Y or Z Set the block equal to whatever material you want.
Yeah, I'm trying bump EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I was trying to make this "for()" but I don't know cause the center need to be where the player place the block But I don't know how I can make this for
But you can write a little example of the for that I need use? Thanks I did it to solve the problem: Code: switch(direction) { case("X"): div = (int) (location.getX() - (div/2)); location.setX(div); break; case("Z"): div = (int) (location.getZ() - (div/2)); location.setZ(div); break; } EDIT by Moderator: merged posts, please use the edit button instead of double posting.