Hologram Projector
The Hologram Projector projects an field of blocks into the air. Note: all functions that take coordinates are zerobased while Lua arrays(and in most cases loops) are onebased(to fill an complete row don’t use for 1,8 do instead use for 0,7)
Get Help about an function
- string the name of the function you need help with
- table an help like this
Lists all function of this peripheral
- table An table filled with the names of all function
Returns an description of the peripheral
- string An description what the peripheral does
Sets the projected block at the specific coordinates
- number The X-Coordinate of the block, has to be 0 or more and less than 8
- number The Y-Coordinate of the block, has be 0 or moreand less than 8
- number The Z-Coordinate of the block, has to be more than 0 and less than 8
- string The internal name of the block to which it should be set. It’s the same name you use in commands
- bool True if the block was sucsessfull set
Sets the projected block at the specific coordinates and it’s metadata
- number The X-Coordinate of the block, has to be 0 or more and less than 8
- number The Y-Coordinate of the block, has be 0 or moreand less than 8
- number The Z-Coordinate of the block, has to be more than 0 and less than 8
- string The internal name of the block to which it should be set. It’s the same name you use in commands
- number The new metadata of that block
- bool True if the block was sucsessfull set
Returns the id name of the projected block at the specific coordinates
- number The X-Coordinate of the block, you want to get, has to be 0 or more and less than 8
- number The Y-Coordinate of the block, you want to get, has to be 0 or more and less than 8
- number The Z-Coordinate of the block, you want to get, has to be 0 or more and less than 8
- string The id name of the block
Sets the meta data of an projected block at the specified coordinates
- number The X-Coordinate of the block, you want to set, has to be 0 or more and less than 8
- number The Y-Coordinate of the block, you want to set, has to be 0 or more and less than 8
- number The Z-Coordinate of the block, you want to set, has to be 0 or more and less than 8
- number The new meta data of the block
Returns the meta data of the projected block at the specific coordinates
- number The X-Coordinate of the block, you want to get the meta data, has to be 0 or more and less than 8
- number The Y-Coordinate of the block, you want to get the meta data, has to be 0 or more and less than 8
- number The Z-Coordinate of the block, you want to get the meta data, has to be 0 or more and less than 8
- number The meta data of the block
Uses the given table to set the blocks of the hologram
- table An table which contains the following content: {{name=The Block ID, [meta=The Block Meta Data], x=The X-Coordinate, y=The Y-Coordinate, z=The Z-Coordinate}, …}
Clears the whole hologram with the given block and metadata
- string The block to that all blocks should be converted
- number The metadata that should be set on all blocks
Sets the rotation in degrees by the given value. Note: The rotation is only available on the Y-Axis(Up-Down)
- number The new rotation value
Sets the velocity by the give value. The give value gets added to every tick to the rotation. Note: The rotation is only available on the Y-Axis(Up-Down)
- number The new velocity value
Returns the current rotation
- number The current rotation
Returns the current velocity
- number The current velocity
The hologram projector has one event, which is triggered when a player click the hologram
-
number
The button which the player used to click the hologram(0 = Left Click, 1 = Right Click) -
number
The X-Coordinate of the clicked block -
number
The Y-Coordinate of the clicked block -
number
The Z-Coordinate of the clicked block -
string
The side which was clicked(possible values: bottom, top, north, south, west, east). Note: The value is corrigated when rotated -
string
The way the projector is wrapped to the computer -
table
The item that the player who clicked the hologram holds.