The water sensor mod provides a robust, efficient, no-fuss water sensor that switches nearby levers on when water is next to it. I made this sensor to replace all other buggy, inefficient sensor types, such as the boats-on-pressure-plates sensor, or the CraftBook IC 0260, which needs to be registered with the CraftBook thread (making it incompatable with instance dungeon plugins like TempleCraft and DungeonBuilder.) Now we can all make water temples!
The sensor is made by placing a Lapiz Lazuli block (configurable) next to where water will flow, and then placing a lever next to the Lapiz block. When water flows next to the block, the lever will be turned on. When there is no more water next to the sensor block, the lever is turned off. Here's an example of how the sensor might be placed in a redstone system:
Code is hosted at https://github.com/Chrisknyfe/WaterSensor. I use maven to build the repository into a jar.
Features of the sensor:
- Detects water without those gorram glitchy boats.
- Creates no extra threads, allocates no extra memory.
- You don't have to register each sensor using a sign or a command
- Works with dungeon building plugins like DungeonBuilder and TempleCraft.
This is my first bukkit plugin ever. In the future, I'd like to add a light sensor and a lava sensor to the plugin as well.
Known Issues (both caused by me not having a robust way to detect water draining completely empty...):
- Flickering when water is draining next to the sensor.
- Sensor won't turn levers off if two water blocks drain next to the sensor at the same time.
- Doesn't detect still water? (unverified)
- Doesn't detect waterfalls.
- Lava sensor
- Light sensor
Let me know if you find any bugs, or have any further suggestions for simple sensors you think are missing from Minecraft.