Advertisement
Guest User

Untitled

a guest
Jan 8th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. command /rune [<text>] [<text>]:
  2. aliases: runes
  3. permission: runes.runes
  4. trigger:
  5. if arg-1 is not set:
  6. open chest with 1 row named "Runes" to player
  7. format slot 0 of player with prismarine shard named "&b&lOptic Rune (&c&lStrength&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Strength IV" to be unstealable
  8. format slot 1 of player with prismarine shard named "&b&lOptic Rune (&7&lResistance&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Resistance II" to be unstealable
  9. format slot 2 of player with prismarine shard named "&b&lOptic Rune (&d&lRegeneration&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Regeneration II" to be unstealable
  10. format slot 3 of player with prismarine shard named "&b&lOptic Rune (&a&lSpeed&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Speed IV" to be unstealable
  11. format slot 7 of player with book named "&b&lRunes Help" with lore "||&fObatin||&7You can obtain these runes||&7through crafting rune fragments||&7together and making a rune.||||&fFragments||&7You can obtain rune fragments||&7through crates, bundles and lootboxes||&7you can also buy them with xp.||||&fCrafting||&7You will need 9 of one fragment||&7then go to /blacksmith to craft them." to be unstealable
  12. format slot 8 of player with arrow named "&c&lExit" with lore "&7Click to close" to close
  13. if arg-1 is "give":
  14. if arg-2 is "strength":
  15. give 1 prismarine shard named "&b&lOptic Rune (&c&lStrength&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Strength IV" to player
  16.  
  17. on right click:
  18. if event-item is prismarine shard named "&b&lOptic Rune (&c&lStrength&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Strength IV":
  19. if {strength::%player%::active} is true:
  20. set {strength::%player%::active} to false
  21. set {strength1::%player%::active} to false
  22. message ""
  23. message "&b&l(!) Optic Rune:&b You have &cdisabled&b your strength rune!"
  24. message ""
  25. remove strength from player
  26. else:
  27. if {strength::%player%::active} is false:
  28. set {strength::%player%::active} to true
  29. set {strength1::%player%::active} to true
  30. message ""
  31. message "&b&l(!) Optic Rune:&b You have &aenabled&b your strength rune!"
  32. message ""
  33. apply strength 4 to the player for 999 days
  34. on any movement:
  35. if {strength::%player%::active} is true:
  36. loop all items in player's inventory:
  37. if loop-item is a prismarine shard named "&b&lOptic Rune (&c&lStrength&b&l)" with lore "&7Keep this item in your inventory.||&7Can be used by anyone to gain||&7a passive advantage against enemies!||||&b&lRune Bonus:|| &b&l*&b Strength IV":
  38. stop
  39. else:
  40. message ""
  41. message "&b&l(!) Optic Rune:&b You have &cdisabled&b your strength rune!"
  42. message ""
  43. remove strength from player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement