-
Notifications
You must be signed in to change notification settings - Fork 428
Defining a Cuboid Block
A cuboid block is simply a simple, cubic block that has been clipped (truncated) on one or more of its axes. The result is a rectangular prism shape that otherwise has textures applied in the same way as a simple, solid block would have done.
To define a cuboid block, first add the "boxblock:" line to the Model Definition file. See Defining Cuboid Models for details. An example of this is the model definition for the Wooden Pressure Plate (which requires clipping of all three axes):
boxblock:id=72,data=*,xmin=0.0625,xmax=0.9275,ymax=0.0625,zmin=0.0625,zmax=0.9275
Next, the textures for the block are defined as they would be for a simple, solid block: simply use a "block:" line with texture references for each of the 6 standard faces. See Defining a Simple Block for details on this. The corresponding texture definition for the Wooden Pressure Plate example (above) is:
block:id=72,allfaces=0:planks_oak,stdrot=true,transparency=TRANSPARENT
Note: Most blocks suitable for rendering as a cuboid block will require the transparency attribute to be set - to TRANSPARENT for blocks that don't block lighting to other blocks, or to SEMITRANSPARENT for blocks that do block light (like slabs or stair).
- Base Plugin Settings
- Web Setup
- Storage Setup
- HD Map Configuration
- World and template settings
- Guides
- Advanced Map Configuration
- Component Configuration
- Configuration of worlds
- Exporting World Data in Wavefront OBJ Format
- External Webserver Advanced
- Support for Minecraft Servers other than CraftBukkit
- Support for MinecraftForge based mods
- Support for Tekkit
- Custom Block Definitions
- Model Definition Files
- Texture Definition Files
- Defining a Block using a Custom Block Renderer
- Defining a Block using a Volumetric Model
- Defining a Cuboid Block
- Defining a Simple Block
- Defining Cuboid Models
- Defining Volumetric Models
- Special texture file types
- Using custom block renderers
- Incompatible mods