kpreid/cubes — Issue #9: Add neighboring-block sensors
Author: kpreid
Created: 2012-01-20 03:59:42+00:00
State: open
Labels: feature

Add a circuit behavior which detects the ID of the adjacent block in a given direction. This will allow blocks to interact with each other, using become or set-subdatum as outputs.

Since there is no circuit in ID_EMPTY to become something else, there also needs to be a primitive behavior to turn adjacent ID_EMPTY blocks into other blocks. Should this also be capable of altering non-empty cubes? Doing so would make some things simpler, but allows non-CA (evaluation-order-dependent) interactions (though this already does — if two blocks try to convert the same air block, who wins?).