MC1249

From MinecraftOnline
Jump to navigation Jump to search
Block Replacer
About
ID MC1249
Type AIZO
Self-Triggering No
Clickable No
Input Any
Output None
Restricted admin placement only
Sign Format
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.
      • OnBlock specifies the block state used when the input is high.
      • OffBlock specifies the block state used when the input is low.
  • Fourth Line
    • Delay((:Mode):Physics)
      • Delay required 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.
      • Mode optional; defaults to 0.
        • Specifies the replacement mode.
        • Only mode 0 currently is implemented with working logic...
      • Physics optional; defaults to true.
        • Determines whether normal block physics are applied when replacing blocks.
        • Accepts true or false. Can also be specified as 1 or 0, 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.

See Also