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
# Example
Mechanics:
shiftblock:
time: 5 # Time in seconds
replace_to: test_block2 # Id of CustomBlock
Change CustomBlock if clicked with specified items
# 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
# 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
on_break
honeycomb_normal:
Mechanics:
custom_block:
type: NOTEBLOCK
hardness: 999
honeycomb_ore:
Mechanics:
custom_block:
type: NOTEBLOCK
shiftblock:
time: 5
replace_to: honeycomb_normal
on_interact: false
on_break: true
on_place: false

Block transform with on_place
on_place
honeycomb_normal:
Mechanics:
custom_block:
type: NOTEBLOCK
hardness: 999
cut_nano_flux:
Mechanics:
custom_block:
type: NOTEBLOCK
shiftblock:
time: 5
replace_to: honeycomb_normal
on_interact: false
on_break: false
on_place: true

Last updated