MC1260
Jump to navigation
Jump to search
| About | |
|---|---|
| ID | MC1260 |
| Type | AISO |
| Self-Triggering | No |
| Clickable | No |
| Input | Any |
| Output | Single |
| First line | SENSE WATER |
| Second line | [MC1260] |
| Third line | (YOffset) |
| Craftbook Page | |
MC1260 is a Craftbook IC that detects whether water is present at a specified Y coordinate behind the IC, setting its output high when water is detected.
Details
- Second Line
- [MC1260]
- Third Line
(YOffset)optional; defaults to-1.- Specifies the vertical offset from the block behind the IC.
- Must be a whole integer value.
- The final Y coordinate is clamped between
0and255.
When triggered by an input, the IC checks the block at the X and Z coordinates of the block behind it, and the calculated Y coordinate.
The output is set high if the block is either water or flowing water. Otherwise, the output is set low.
The default offset of -1 checks the block one block below the block behind the IC.
Examples
Basic setup
line1: SENSE WATER line2: [MC1260] line3: line4:
Checks for water one block below the block behind the IC.
Custom Y offset
line1: SENSE WATER line2: [MC1260] line3: 2 line4:
Checks for water two blocks above the block behind the IC.