You now learn how to make a half block. These blocks are not in the final version of Sam’s Mod, but they are commonly used in mods, so it is important to know.
To make sure a block isn’t a 1×1×1 square, you need a single line of code in the constructor along with one method to make sure the blocks around it look good as well.
The line of code you have to add to the constructor is as follows:
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
This method contains six float values. The first three are the x, y, and z values of the starting position and the last three are the x, y, and z of the ending position. The starting position is the bottom corner with the lowest x and z value, and the ...