can someone tell me what i am doing wrong here? its not cancelling the event and is dropping the default block. I feel i am missing something simple here.
thanks
I am guessing its soemthing to do with storing block info, maybe like NBT but looking around a cant seem to find any real docs on it.
any help will be awesome!
thanks
Code:
options:
block: light gray glazed terracotta
name: "&b&lGravity Generator"
lore: "&7This item restores earth like gravity."
on block place of {@block}:
if the 1st line of the tool's lore is {@lore}:
send "&dCosmic &8» &b&lGravity Generator &7has been placed." to player
stop
on block break of {@block}:
if the 1st line of the tool's lore is {@lore}:
cancel event
set event-block to air
wait 3 tick
give player 1 {@block} named {@name} with lore {@lore}
send "&dCosmic &8» &b&lGravity Generator &7has been removed." to player
stop
if the 1st line of the tool's lore is not {@lore}:
stop
I am guessing its soemthing to do with storing block info, maybe like NBT but looking around a cant seem to find any real docs on it.
any help will be awesome!