Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.94 KB | None | 0 0
  1. # REQUIRED. The friendly name of the item
  2. name: Magic Stick
  3. item:
  4.   material: STICK
  5.   displayName: '&bMagic Stick'
  6.   lore:
  7.  - '&7&7This right here'
  8.   - '&7&7&7&7&7&7Is a magic stick'
  9.   - '&7&7&7&7&7&7&3And this is a new line!'
  10.   - '&7&7&7&7&bhi'
  11.   - '&7&7&7&ahello'
  12. info:
  13.   description: This is a magical stick
  14.   usage: This stick has certain magical properties. Experiment to figure out what
  15.     it does!
  16.   obtaining: You can not get a magical stick
  17. handlers:
  18.   rightClickAir:
  19.     actions:
  20.     - action: sendMessages
  21.       prefix: true
  22.       messages:
  23.      - You just right-clicked with a magic stick
  24.       - This is the second message you're getting
  25.   rightClickBlock:
  26.     actions:
  27.     - ifType:
  28.      - DIAMOND_BLOCK
  29.       - EMERALD_BLOCK
  30.       - GOLD_BLOCK
  31.       action: sendMessage
  32.       message: You just right-clicked a diamond, emerald, or gold block!
  33.     - ifType: DIRT
  34.       action: setBlock
  35.       type: GRASS_BLOCK
  36.   leftClickBlock:
  37.     actions:
  38.     - ifType: GRASS_BLOCK
  39.       action: playerRunCommands
  40.       commands:
  41.      - customitems plugin
  42.       - customitems inspect
  43.     - ifType: DIAMOND_BLOCK
  44.       action: consoleRunCommands
  45.       commands:
  46.      - kick {player} Never hit a diamond block with a magic stick!
  47.       - say {player} was just kicked for hitting a diamond block with a magic stick!
  48.     - ifType: GOLD_BLOCK
  49.       action: runActions
  50.       actions:
  51.       - action: sendMessage
  52.         message: You just hit a gold block with a magic stick, {player}
  53.       - ifHasPermission: magicStickGoldToDiamond
  54.         action: runActions
  55.         actions:
  56.         - action: cancel
  57.         - action: setBlock
  58.           type: DIAMOND_BLOCK
  59.         - action: destroyItemUsed
  60.           amount: 1
  61.   drop:
  62.     actions:
  63.     - ifNotHasPermission: canDropMagicStick
  64.       action: runActions
  65.       actions:
  66.       - action: sendMessage
  67.         message: You can not drop a magical stick
  68.       - action: cancel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement