Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- spells: &8[&dSpells&8] »
- gems: &8[&aGems&8] »
- on load:
- set {spells::cd} to 1 second
- command /spell [<text>]:
- permission: *
- trigger:
- if arg is "dark":
- give player enchanted book named "&8&lDark Combustion" lored "&7Blocks: &b0"
- on rightclick on stone or iron ore with enchanted book:
- if {spell::timer::%uuid of player%} isn't set:
- set {_wait} to {spells::cd}
- else:
- set {_wait} to difference between {spell::timer::%uuid of player%} and now
- if {_wait} >= {spells::cd}:
- if name of event-item is "&8&lDark Combustion":
- loop blocks in radius 1 around event-location:
- give 1 of loop-block to player
- set {_i} to a random integer between 1 and 10000
- if {_i} <= 76:
- if {_i} < 26:
- if {_i} < 26:
- if {_i} = 1:
- give player emerald named "&d&lMythical Gem"
- send "{@gems} &7You found a &d&lMythical Gem!"
- else:
- give player emerald named "&b&lRare Gem"
- send "{@gems} &7You found a &b&lRare Gem!"
- else:
- give player emerald named "&7&lUncommon Gem"
- send "{@gems} &7You found an &7&lUncommon Gem!"
- else:
- give player emerald named "&a&lCommon Gem"
- send "{@gems} &7You found a &a&lCommon Gem!"
- set loop-block to air
- add 1 to {_amount}
- create fake explosion at loop-block's location
- set {_l} to uncolored line 1 of lore of player's tool
- replace all "Blocks: " in {_l} with ""
- set {_l} to {_l} parsed as number
- add {_amount} to {_l}
- set line 1 of lore of player's tool to "&7Blocks: &b%{_l}%"
- set {spell::timer::%uuid of player%} to now
- else:
- send "{@spells} &cPlease wait %difference between {_wait} and {spells::cd}% to cast a spell again"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement