Suggestion Open

~onBlockInteract with <skill.var.block-type> Trigger

#10175 opened by G14Moon 4 hours ago

G14Moonreported this suggestion

This should not be the only way to add interactions to blocks.

Mythic

Incinerate:
  Command:
    Id: incinerate
  Skills:
  - consumeHeldItem{a=64}
  - sound{s=entity.blaze.shoot;p=2;v=0.25} @selfLocation

Skript

on rightclick:
    if event-world is "Lobby":
        if event-block is lava_cauldron:
                cancel event
                make player execute command
"/incinerate"

Please give us a trigger that makes it easy to add mechanics to block interactions, like:

Incinerate:
    Global: true
    Spell: true
    Trigger: ~onBlockInteract
    Conditions:
    - TriggeringBlockType{b=LAVA_CAULDRON} true
    Skills:
        - consumeHeldItem{a=64}
        - sound{s=entity.blaze.shoot;p=2;v=0.25} @selfLocation
Sign in to join the discussion.