NexoAddon
PolymartSpigotDiscordGithubNexo
  • NexoAddon
  • Components
    • equippable
    • fertilizer
    • jukebox_playable
    • skull_value
  • Mechanics
    • Aura
    • BedrockBreak
    • BigMining
    • BlockAura
    • BottledExp
    • Custom Block Experience
    • Decay
    • Infested
    • KillMessage
    • MiningTools
    • Remember
    • Repair
    • ShiftBlock
    • Signal
    • SpawnerBreak
    • Stackable
    • Unstackable
    • VeinMiner
  • Populators
    • Block Populators
  • Recipes
    • Smithing Recipe
  • Commands
    • Totem Command
  • Settings
    • Double Hit Destroy
    • Bossbar
    • Count shears as silktouch
    • Prevent furniture breaks
    • Delay of Aura Mechanic
    • Default config.yml
Powered by GitBook
On this page
  • Change CustomBlock
  • Change CustomBlock if clicked with specified items
  • Shift triggers
  • Use Case examples
Edit on GitHub
  1. Mechanics

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

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

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
PreviousRepairNextSignal

Last updated 3 months ago