Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # REQUIRED. The friendly name of the item
- name: Magic Stick
- item:
- material: STICK
- displayName: '&bMagic Stick'
- lore:
- - '&7&7This right here'
- - '&7&7&7&7&7&7Is a magic stick'
- - '&7&7&7&7&7&7&3And this is a new line!'
- - '&7&7&7&7&bhi'
- - '&7&7&7&ahello'
- info:
- description: This is a magical stick
- usage: This stick has certain magical properties. Experiment to figure out what
- it does!
- obtaining: You can not get a magical stick
- handlers:
- rightClickAir:
- actions:
- - action: sendMessages
- prefix: true
- messages:
- - You just right-clicked with a magic stick
- - This is the second message you're getting
- rightClickBlock:
- actions:
- - ifType:
- - DIAMOND_BLOCK
- - EMERALD_BLOCK
- - GOLD_BLOCK
- action: sendMessage
- message: You just right-clicked a diamond, emerald, or gold block!
- - ifType: DIRT
- action: setBlock
- type: GRASS_BLOCK
- leftClickBlock:
- actions:
- - ifType: GRASS_BLOCK
- action: playerRunCommands
- commands:
- - customitems plugin
- - customitems inspect
- - ifType: DIAMOND_BLOCK
- action: consoleRunCommands
- commands:
- - kick {player} Never hit a diamond block with a magic stick!
- - say {player} was just kicked for hitting a diamond block with a magic stick!
- - ifType: GOLD_BLOCK
- action: runActions
- actions:
- - action: sendMessage
- message: You just hit a gold block with a magic stick, {player}
- - ifHasPermission: magicStickGoldToDiamond
- action: runActions
- actions:
- - action: cancel
- - action: setBlock
- type: DIAMOND_BLOCK
- - action: destroyItemUsed
- amount: 1
- drop:
- actions:
- - ifNotHasPermission: canDropMagicStick
- action: runActions
- actions:
- - action: sendMessage
- message: You can not drop a magical stick
- - action: cancel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement