Redstone Input Port
The Redstone Input Port is an upgrade which allows web pages to read the redstone levels around the screen.
The item on the left is a Blank Upgrade.
How to use
Like any other upgrades, install it by right-clicking on a screen with the upgrade in your main hand. You will need the "Link & upgrade" permission to do that.
- The upgrade name returned by
- If this upgrade is used in combination with the Redstone Output Port upgrade, the redstone level obtained by any of these queries/callbacks on an emitting block is undefined
This upgrade adds the following queries:
|Query name||Arguments||Return value||Comment|
||0, 0 is the bottom left block. Rotation is not handled.|
||The level of the block at (x, y) is at index |
This upgrade adds the following callbacks:
webdisplaysRedstoneCallback(x, y, level)will be called if the redstone level of the block at x, y has changed.