> For the complete documentation index, see [llms.txt](https://nexoaddon.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nexoaddon.gitbook.io/docs/mechanics/shiftblock.md).

# ShiftBlock

Temporarily change the CustomBlock or Furniture to another one!

Change CustomBlock or Furniture to another one for specified time and add new Mechanic to your server!

### Change CustomBlock

<pre class="language-yaml"><code class="lang-yaml"># Example

Mechanics:
<strong>  shiftblock:
</strong>    time: 5                      # Time in seconds
    replace_to: test_block2      # Id of CustomBlock
</code></pre>

### Change CustomBlock if clicked with specified items

```yaml
# Example

Mechanics:
  custom_block:
    type: NOTEBLOCK
  shiftblock:
    time: 60                     # Time in seconds
    replace_to: test_block2      # Id of CustomBlock
    items:                       # Allow to use this Mechanic only using those items
    - forest_axe                 # Nexo Item
    - PAPER                      # Vanilla Material
```

### Shift triggers

```yaml
# Example

Mechanics:
  custom_block:
    type: NOTEBLOCK
  shiftblock:
    time: 5                      # Time in seconds
    replace_to: test_block2      # Id of CustomBlock      

    on_interact: true            # true is default
    on_break: false              # false is default
    on_place: false              # false is default
```

### Use Case examples

#### Resource generation with `on_break`

```yaml
honeycomb_normal:
  Mechanics:
    custom_block:
      type: NOTEBLOCK
      hardness: 999
```

```yaml
honeycomb_ore:
  Mechanics:
    custom_block:
      type: NOTEBLOCK
    shiftblock:
      time: 5
      replace_to: honeycomb_normal
      on_interact: false
      on_break: true
      on_place: false
```

<figure><img src="https://4179595020-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCKPUSq10oq4Caxl6Izvn%2Fuploads%2Fgit-blob-f3b118214ca7495dbe429f54e04014fc371ff85d%2Fon_break.gif?alt=media" alt="" width="640"><figcaption></figcaption></figure>

#### ‎ ‎ Block transform with `on_place`

```yaml
honeycomb_normal:
  Mechanics:
    custom_block:
      type: NOTEBLOCK
      hardness: 999
```

```yaml
cut_nano_flux:
  Mechanics:
    custom_block:
      type: NOTEBLOCK
    shiftblock:
      time: 5
      replace_to: honeycomb_normal
      on_interact: false
      on_break: false
      on_place: true
```

<figure><img src="https://4179595020-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCKPUSq10oq4Caxl6Izvn%2Fuploads%2Fgit-blob-b82674ea54d99ef59ecbdd39eb76e35d3fc8da1f%2Fon_place.gif?alt=media" alt="" width="640"><figcaption></figcaption></figure>
