Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on skript load:
- register a new custom enchantment with id name "Explosive"
- set {_enchantment} to "Explosive" parsed as custom enchantment
- set max level of {_enchantment} to 3
- set rarity of {_enchantment} to 5
- set accepted items for {_enchantment} to "Pickaxes"
- set lore of {_enchantment} to "Explosive"
- on break of sandstone:
- if player's tool has custom enchantment Explosive:
- if level of custom enchantment "Explosive" is 1:
- loop blocks in radius 1 of event-block:
- if loop-block is sandstone:
- if player can hold loop-block:
- give loop-block to player
- set loop-block to air
- if player can't hold loop-block:
- cancel event
- send player title "&c&lInventory Full!" with subtitle "&4&l/sell" for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment