Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click with any pickaxe:
- cancel event
- open chest inventory with 3 rows named "&3&lENCHANTER &8| &b%name of player's tool%" to player
- loop integers from 0 to 26:
- set slot loop-value of player's current inventory to light blue glass pane named "&7"
- set slot 4 of player's current inventory to player's tool named "&3&lCURRENTLY ENCHANTING:"
- add "&7Get haste I/II when you break a block." to {_lore::*}
- if lore of player's tool doesn't contain "Haste":
- add "&7Cost: &e35XP" to {_lore::*}
- if lore of player's tool contains "Haste I":
- if lore of player's tool doesn't contain "Haste II":
- add "&7Cost: &e40XP" to {_lore::*}
- else:
- add "&7Cost: &cAlready Maxed!" to {_lore::*}
- set slot 10 of player's current inventory to sugar named "&eHaste [I-II]" with lore {_lore::*}
- delete {_lore::*}
- add "&7Mined items will go directly into your inventory." to {_lore::*}
- set {_en::*} to enchants of player's tool
- if {_en::*} doesn't contain "Fortune":
- if lore of player's tool doesn't contain "Telekenisis":
- add "&7Cost: &e40XP" to {_lore::*}
- else:
- add "&7Cost: &cAlready Maxed!" to {_lore::*}
- else:
- add "&cError: This enchant doesn't work with fortune!" to {_lore::*}
- set slot 11 of player's current inventory to hopper named "&eTelekenisis [I]" with lore {_lore::*}
- delete {_lore::*}
- add "&7Keep this item on death." to {_lore::*}
- add "&cThis enchant will not work if you're killed by a guard." to {_lore::*}
- if lore of player's tool doesn't contain "Soulbound":
- add "&7Cost: &e45XP" to {_lore::*}
- else:
- add "&7Cost: &cAlready Maxed!" to {_lore::*}
- set slot 12 of player's current inventory to ender pearl named "&eSouldbound [I]" with lore {_lore::*}
- delete {_lore::*}
- add "&7Chance to get extra XP when you mine ores." to {_lore::*}
- if lore of player's tool doesn't contain "XP Finder":
- add "&7Cost: &e25XP" to {_lore::*}
- if lore of player's tool contains "XP Finder I":
- if lore of player's tool doesn't contain "XP Finder II":
- add "&7Cost: &e35XP" to {_lore::*}
- else:
- add "&7Cost: &cAlready Maxed!" to {_lore::*}
- set slot 13 of player's current inventory to xp bottle named "&eXP Finder [I-II]" with lore {_lore::*}
- set {inv.pickaxe.open.%player%} to true
- on inventory click:
- if {inv.pickaxe.open.%player%} is set:
- cancel event
- if index of event-slot is 10:
- if lore of player's tool doesn't contain "Haste":
- if level of player >= 35:
- remove 35 from player's level
- set lore of player's tool to "%lore of player's tool%||&aHaste I"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- else:
- if lore of player's tool contains "Haste I":
- if lore of player's tool doesn't contain "Haste II":
- if level of player >= 40:
- remove 40 from player's level
- replace all "Haste I" in lore of player's tool with "Haste II"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- if index of event-slot is 11:
- if lore of player's tool doesn't contain "Telekenisis":
- if "%enchants of player's tool%" doesn't contain "Fortune":
- if level of player >= 40:
- remove 40 from player's level
- set lore of player's tool to "%lore of player's tool%||&bTelekenisis I"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- else:
- close player's inventory
- send "&e[!] This enchant doesn't work alongside fortune!"
- if index of event-slot is 12:
- if lore of player's tool doesn't contain "Soulbound":
- if level of player >= 45:
- remove 45 from player's level
- set lore of player's tool to "%lore of player's tool%||&cSoulbound I"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- if index of event-slot is 13:
- if lore of player's tool doesn't contain "XP Finder":
- if level of player >= 25:
- remove 25 from player's level
- set lore of player's tool to "%lore of player's tool%||&dXP Finder I"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- else:
- if lore of player's tool contains "XP Finder I":
- if lore of player's tool doesn't contain "XP Finder II":
- if level of player >= 35:
- remove 35 from player's level
- replace all "XP Finder I" in lore of player's tool with "XP Finder II"
- close player's inventory
- else:
- close player's inventory
- send "&e[!] You don't have enough XP for this!"
- on inventory close:
- if {inv.pickaxe.open.%player%} is set:
- delete {inv.pickaxe.open.%player%}
- on mine:
- if lore of player's tool contains "Haste I":
- if lore of player's tool doesn't contain "Haste II":
- remove haste from player
- apply haste 1 to player for 5 seconds
- else:
- remove haste from player
- apply haste 2 to player for 5 seconds
- if lore of player's tool contains "Telekenisis":
- cancel event
- if event-block is coal ore:
- give 1 coal to player
- set {_n} to a random integer from 10 to 20
- spawn {_n} of xp at event-block
- if event-block is diamond ore:
- give 1 diamond to player
- set {_n} to a random integer from 10 to 20
- spawn {_n} of xp at event-block
- if event-block is quartz ore:
- give 1 nether quartz to player
- set {_n} to a random integer from 10 to 20
- spawn {_n} of xp at event-block
- if event-block is red wool:
- give 1 apple to player
- if event-block is purple wool:
- give 1 tnt to player
- if event-block is green wool:
- give 1 arrow to player
- if event-block is lapis ore:
- give 1 lapis to player
- set {_n} to a random integer from 20 to 50
- spawn {_n} of xp at event-block
- if event-block is redstone ore:
- give 1 redstone to player
- set {_n} to a random integer from 20 to 50
- spawn {_n} of xp at event-block
- if event-block is emerald ore:
- give 1 emerald to player
- set {_n} to a random integer from 10 to 20
- spawn {_n} of xp at event-block
- else if event-block is not coal ore or diamond ore or quartz ore or red wool or purple wool or green wool or lapis ore or redstone ore or emerald ore:
- give 1 of event-block to player
- set event-block to air
- if lore of player's tool contains "XP Finder I":
- if lore of player's tool doesn't contain "XP Finder II":
- set {_n} to a random integer from 10 to 20
- spawn {_n} of xp at event-block
- else:
- set {_n} to a random integer from 10 to 30
- spawn {_n} of xp at event-block
- on death:
- loop victim's inventory:
- if lore of loop-value doesn't contain "Soulbound":
- drop loop-value at victim
- remove loop-value from victim's inventory
- else:
- if {guard.%attacker%} is set:
- drop loop-value at victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement