Just some idea's for the sensor block and the motivation for them:
This one can be connected to the same blocks as the normal one but instead of reading from connected activation blocks it sets them for a certain percentage closest to the measured percentage.
This will have to be done in a certain order like closest activation block is 0% and furthest is 100%
- Inverted mode - When this is enabled the sensor block will work inverted so not >= but <=.
- This would be really useful to detect when something is below, let's say, 25% and trigger logic based on this
- More advanced compared mode - Compare the state between two blocks, emit HIGH signal when they are equal and LOW signal when they are not. (Opposite when inverted)
- This would be really useful for comparing cargo for example, compare if the contents are the same. This would be really useful in automated factories for detecting if the required ingredients are there.
- Maybe a GUI, because if you want to check if a storage contains one hull block (0.1 mass == 0.1 % in cargo block) you have to place 1000 activation blocks and have only 1 turned on to detect it.
- Connect to weapon/tool blocks to detect when they are used and for how much % they are charged. For example for detecting how much the jump drive is charged.
- Connect to rail to detect speed of docked entity moving over the connected rail.
- Connect to turret axis/rotation rail to detect the amount of rotation.
This one can be connected to the same blocks as the normal one but instead of reading from connected activation blocks it sets them for a certain percentage closest to the measured percentage.
This will have to be done in a certain order like closest activation block is 0% and furthest is 100%