# ShiftBlock

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="/files/pNtv4cXHtrrcrlg6QrpC" 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="/files/BFRSgkBtiUYhPPMXhmX4" alt="" width="640"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nexoaddon.gitbook.io/docs/mechanics/shiftblock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
