MC1249
| About | |
|---|---|
| ID | MC1249 |
| Type | AIZO |
| Self-Triggering | No |
| Clickable | No |
| Input | Any |
| Output | None |
| Restricted | admin placement only |
| First line | BLOCK REPLACER |
| Second line | [MC1249] |
| Third line | OnBlock / OffBlock |
| Fourth line | Delay((:Mode):Physics) |
| Craftbook Page | |
MC1249 is a Craftbook IC that replaces connected blocks between two specified block states depending on whether the input is high or low.
This IC's 3rd line is not properly implemented in 1.12.2 and will be rewritten. Below is the intended functionality
Details
- Second Line
- [MC1249]
- Third Line
*OnBlock* / *OffBlock*- Displays the current block state being iterated through, further reinforced by the block the sign is on being changed with them.
- Both block states are required and are selected through prompts when creating the IC.
OnBlockspecifies the block state used when the input is high.OffBlockspecifies the block state used when the input is low.
- Fourth Line
Delay((:Mode):Physics)Delayrequired when creating the IC.- Specifies the delay between successive layers of block replacement, in ticks.
- Must be a whole integer greater than or equal to 0.
Modeoptional; defaults to 0.- Specifies the replacement mode.
- Only mode 0 currently is implemented with working logic...
Physicsoptional; defaults to true.- Determines whether normal block physics are applied when replacing blocks.
- Accepts
trueorfalse. Can also be specified as1or0, respectively.
When triggered by an input, the IC checks the block behind it.
If the block matches the configured OffBlock state and the input is high, it is replaced with the OnBlock state.
If the block matches the configured OnBlock state and the input is low, it is replaced with the OffBlock state.
The IC also checks adjacent blocks for matching OnBlock or OffBlock states, propagating the replacement through connected blocks.
The Delay determines how long the IC waits between successive layers of replacement. A value of 0 causes the replacements to occur without an intentional delay.
If Physics is enabled, normal block physics are applied during replacement. Otherwise, block physics are suppressed.
Examples
Basic setup
Select stone bricks as the OnBlock state and cobblestone as the OffBlock state when prompted during creation.
line1: line2: [MC1249] line3: line4: 20:0:true
Replaces connected cobblestone blocks with stone bricks when the input becomes high, and replaces connected stone bricks with cobblestone when the input becomes low. Replacements propagate with a delay of 20 ticks between successive layers, with normal block physics enabled.
No delay setup
line1: line2: [MC1249] line3: line4: 0:0:true
Replaces connected blocks without an intentional delay between successive layers, with normal block physics enabled.
Physics disabled setup
line1: line2: [MC1249] line3: line4: 20:0:false
Replaces connected blocks with normal block physics suppressed.