BreakfastDeliqht

Untitled

Jun 15th, 2018
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. on skript load:
  2. register a new custom enchantment with id name "Explosive"
  3. set {_enchantment} to "Explosive" parsed as custom enchantment
  4. set max level of {_enchantment} to 3
  5. set rarity of {_enchantment} to 5
  6. set accepted items for {_enchantment} to "Pickaxes"
  7. set lore of {_enchantment} to "Explosive"
  8.  
  9. on break of sandstone:
  10. if player's tool has custom enchantment Explosive:
  11. if level of custom enchantment "Explosive" is 1:
  12. loop blocks in radius 1 of event-block:
  13. if loop-block is sandstone:
  14. if player can hold loop-block:
  15. give loop-block to player
  16. set loop-block to air
  17. if player can't hold loop-block:
  18. cancel event
  19. send player title "&c&lInventory Full!" with subtitle "&4&l/sell" for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment