Description Usage Arguments Value See Also Examples
Make a solid or hollow cube.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
xlen |
integer. Cube length. |
ylen |
integer. Cube hight. |
zlen |
integer. Cube depth. |
blockid |
integer. Block type. |
styleid |
integer. Block style. |
fill |
logical. If TRUE then solid. If FALSE then hollow. |
offset |
vector of length three. How many units to offset the cube from |
playerid |
integer of length one. Defaults to player id in solo play. Set explicitly in multi play. |
pos |
vector of length three. Defines the corner of the cube. Defaults to the player's position. |
xlim |
vector of length two. Defines the lower and upper cuttoff points to truncate the cube. |
ylim |
vector of length two. Defines the lower and upper cuttoff points to truncate the cube. |
zlim |
vector of length two. Defines the lower and upper cuttoff points to truncate the cube. |
Builds a cube or cuboid with the corner at the player's position. By default, the cube is hollow, but you can also use fill=TRUE
to create a solid cube. The players position is determined by miner::getPlayerPos()
. You can you can reposition the cube with the offset
command. Use xlim
, ylim
, zlim
to truncate the cube to create a fence or wall. This function will return the cube origin.
sphere()
to create a sphere.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.