color To Block
Represents a colored block from the game. Wool and concrete can have multiple colors.
blocks.colorToBlock(COLORED_WOOL, WHITE);
Parameters
- type the type of block, either
wool
orconcrete
- color the color of the block
Example
Place orange concrete near the player.
blocks.place(blocks.colorToBlock(ColoredBlock.Concrete, ORANGE), pos(1, 0, 0));