Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {joined::%player%} = "False"
- {crate} = "False"
- {booster.active} = 0
- on chat:
- cancel event
- broadcast "&8[&e%{level::%player%}%&8] %colored player's prefix% &e%player% &8» &7%message%"
- on first join:
- set slot 0 of player's inventory to 1 diamond pickaxe of efficiency 2 named "&fDiamond Pickaxe"
- set {joined::%player%} to "True"
- command /pickaxe [<player>]:
- trigger:
- if arg 1 is not set:
- if {joined::%player%} is "True":
- send "&e(!) You should already have a pickaxe, if this is wrong contact an admin"
- if {joined::%player%} is "False":
- set slot 0 of player's inventory to 1 diamond pickaxe of efficiency 2 named "&fDiamond Pickaxe"
- set {joined::%player%} to "True"
- if arg 1 is set:
- if player has permission "pickaxe.others":
- if {joined::%arg 1%} is "True":
- send "&e(!) That person should already have a pickaxe" to player
- if {joined::%arg 1%} is "False":
- set slot 0 of arg 1's inventory to 1 diamond pickaxe of efficiency 2 named "&fDiamond Pickaxe"
- set {joined::%arg 1%} to "True"
- command /testy:
- trigger:
- set {joined::%player%} to "False"
- on break:
- repair tool of player
- if event-block is coal ore:
- cancel drops
- add 1 to {blocks::%player%}
- add 1 to {exp::%player%}
- give 1 coal ore to player
- chance of 0.5%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 1":
- chance of 1%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 2":
- chance of 2%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 3":
- chance of 3%:
- set event-block to sponge
- if event-block is stone:
- cancel drops
- add 1 to {blocks::%player%}
- add 1 to {exp::%player%}
- give 1 stone to player
- chance of 0.5%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 1":
- chance of 0.6%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 2":
- chance of 0.8%:
- set event-block to sponge
- if "%lore of player's tool%" contains "&eLuck 3":
- chance of 1%:
- set event-block to sponge
- if event-block is sponge:
- cancel drops
- set {luckyblock} to random integer between 3 and 7
- if {luckyblock} is 3:
- send "&e(!) Lucky Block &8» &e3 tokens"
- add 3 to {tokens::%player%}
- if {luckyblock} is 4:
- send "&e(!) Lucky Block &8» &e4 tokens"
- add 4 to {tokens::%player%}
- if {luckyblock} is 5:
- send "&e(!) Lucky Block &8» &e5 tokens"
- add 5 to {tokens::%player%}
- if {luckyblock} is 6:
- send "&e(!) Lucky Block &8» &e6 tokens"
- add 6 to {tokens::%player%}
- if {luckyblock} is 7:
- send "&e(!) Lucky Block &8» &e7 tokens"
- add 7 to {tokens::%player%}
- if player has enough space for 1 stone:
- if player has enough space for 1 coal ore:
- stop
- else:
- send player title "&7" with subtitle "&cInventory is Full" for 2 seconds
- on break of stone or coal ore:
- if player is holding pickaxe:
- set name of player's tool to "&e&lPickaxe &8» &eBlocks: &6%{blocks::%player%}% &8» &eExp: &6%{exp::%player%}%/%{expneeded::%player%}%"
- command /join:
- trigger:
- set {joined::%player%} to "False"
- # Selling #
- command /rewards:
- trigger:
- open chest with 3 rows named " &0&nReward Shop" to player
- format slot 10 of player with 1 emerald named "&6&lReward ##1 &e(Click to redeem)" with lore "&7||&eObjective: &fEarn 25 harvesting levels||&7||&eReward: &f$1000||&7" to run [make player execute command "/reward1"]
- format slot 11 of player with 1 emerald named "&6&lReward ##2 &e(Click to redeem)" with lore "&7||&eObjective: &fEarn 100 harvesting levels||&7||&eReward: &f$5000||&7" to run [make player execute command "/reward2"]
- format slot 12 of player with 1 emerald named "&6&lReward ##3 &e(Click to redeem)" with lore "&7||&eObjective: &fEarn 500 harvesting levels||&7||&eReward: &f1 Iron Key||&7" to run [make player execute command "/reward3"]
- command /reward1:
- trigger:
- if {reward1::%player%} is "True":
- send "&e(!) You have already redeemed this reward"
- stop
- if {harvest::%player%} is less than 24:
- send "&e(!) You do not have enough levels to redeem this"
- if {harvest::%player%} is more than 24:
- set {reward1::%player%} to "True"
- send "&e(!) Here is your reward"
- remove 25 from {harvest::%player%}
- add 1000 to player's balance
- command /reward2:
- trigger:
- if {reward2::%player%} is "True":
- send "&e(!) You have already redeemed this reward"
- stop
- if {harvest::%player%} is less than 99:
- send "&e(!) You do not have enough levels to redeem this"
- if {harvest::%player%} is more than 99:
- set {reward2::%player%} to "True"
- send "&e(!) Here is your reward"
- remove 100 from {harvest::%player%}
- add 5000 to player's balance
- command /reward3:
- trigger:
- if {reward3::%player%} is "True":
- send "&e(!) You have already redeemed this reward"
- stop
- if {harvest::%player%} is less than 499:
- send "&e(!) You do not have enough levels to redeem this"
- if {harvest::%player%} is more than 499:
- set {reward3::%player%} to "True"
- send "&e(!) Here is your reward"
- remove 500 from {harvest::%player%}
- make console execute command "/key give %player% iron"
- command /key [<text>] [<player>] [<text>]:
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- send ""
- send "&e(!) /key <give/list> [<player>] [<keyname>]"
- send ""
- if arg 1 is "list":
- send ""
- send "&e(!) List of keys:"
- send ""
- send "&7(!) &bDiamond"
- send "&7(!) &6Gold"
- send "&7(!) &fIron"
- send ""
- if arg 1 is "give":
- if arg 2 is set:
- if arg 3 is "iron":
- give 1 light gray dye named "&f&lIron Key &7(Click on crate to redeem)" to arg 2
- if arg 1 is "give":
- if arg 2 is set:
- if arg 3 is "gold":
- give 1 orange dye named "&6&lGold Key &7(Click on crate to redeem)" to arg 2
- if arg 1 is "give":
- if arg 2 is set:
- if arg 3 is "diamond":
- give 1 light blue dye named "&b&lDiamond Key &7(Click on crate to redeem)" to arg 2
- command /crate:
- permission: crate.admin
- trigger:
- give 1 magma_block named "&6Crate &7(Place to set a crate)" to player
- command /cratereset:
- permission: crate.admin
- trigger:
- set {crate} to "False"
- delete holo object "crate"
- on place of magma_block:
- if player's tool is magma_block named "&6Crate &7(Place to set a crate)":
- set {crate} to location of event-block
- on rightclick on magma_block:
- if {crate} is set:
- if player's tool is light gray dye named "&f&lIron Key &7(Click on crate to redeem)":
- set {ironcrate} to random integer between 1 and 5
- remove 1 light gray dye from player
- if {ironcrate} is 1:
- send "&e(!) You have just opened an iron crate and got $1000"
- add 1000 to player's balance
- stop
- if {ironcrate} is 2:
- send "&e(!) You have just opened an iron crate and got $2000"
- add 2000 to player's balance
- stop
- if {ironcrate} is 3:
- send "&e(!) You have just opened an iron crate and got $3000"
- add 3000 to player's balance
- stop
- if {ironcrate} is 4:
- send "&e(!) You have just opened an iron crate and got $5000"
- add 5000 to player's balance
- stop
- if {ironcrate} is 5:
- send "&e(!) You have just opened an iron crate and got 50 harvest levels"
- add 50 to {harvest::%player%}
- stop
- every minute:
- make console execute command "/mrl reset Coal -s"
- on join:
- set player's gamemode to creative
- # Selling #
- options:
- coalore: 2 # Prices
- ironore: 3 # Prices
- stone: 1 # Prices
- coalorebooster1: 4 # Prices
- ironorebooster1: 6 # Prices
- stonebooster1: 2 # Prices
- coalorebooster2: 6 # Prices
- ironorebooster2: 9 # Prices
- stonebooster2: 3 # Prices
- coalorebooster3: 8 # Prices
- ironorebooster3: 12 # Prices
- stonebooster3: 4 # Prices
- command /sell <player>:
- permission: sell.use
- permission message: &e(!) Purchase a rank to use the command
- executable by: console
- trigger:
- if arg 1 is set:
- if {booster.active} is equal to 1:
- if amount of coal ore in arg 1's inventory is less than 1:
- if amount of stone in arg 1's inventory is less than 1:
- if amount of iron ore in arg 1's inventory is less than 1:
- send "&e(!) Please mine some blocks before trying to sell" to arg 1
- stop
- set {_stone} to number of stone in arg 1's inventory
- set {_coalore} to number of coal ore in arg 1's inventory
- set {_value1} to {@stonebooster1} * {_stone}
- set {_value2} to {@coalorebooster1} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore from arg 1's inventory
- add {_money} to arg 1's balance
- set action bar of arg 1 to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 1 Booster)"
- stop
- if {booster.active} is equal to 2:
- if amount of coal ore in arg 1's inventory is less than 1:
- if amount of stone in arg 1's inventory is less than 1:
- if amount of iron ore in arg 1's inventory is less than 1:
- send "&e(!) Please mine some blocks before trying to sell" to arg 1
- stop
- set {_stone} to number of stone in arg 1's inventory
- set {_coalore} to number of coal ore in arg 1's inventory
- set {_value1} to {@stonebooster2} * {_stone}
- set {_value2} to {@coalorebooster2} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore from arg 1's inventory
- add {_money} to arg 1's balance
- set action bar of arg 1 to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 2 Booster)"
- stop
- if {booster.active} is equal to 3:
- if amount of coal ore in arg 1's inventory is less than 1:
- if amount of stone in arg 1's inventory is less than 1:
- if amount of iron ore in arg 1's inventory is less than 1:
- send "&e(!) Please mine some blocks before trying to sell" to arg 1
- stop
- set {_stone} to number of stone in arg 1's inventory
- set {_coalore} to number of coal ore in arg 1's inventory
- set {_value1} to {@stonebooster3} * {_stone}
- set {_value2} to {@coalorebooster3} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore from arg 1's inventory
- add {_money} to arg 1's balance
- set action bar of arg 1 to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 3 Booster)"
- stop
- if amount of coal ore in arg 1's inventory is less than 1:
- if amount of stone in arg 1's inventory is less than 1:
- if amount of iron ore in arg 1's inventory is less than 1:
- send "&e(!) Please mine some blocks before trying to sell" to arg 1
- stop
- set {_stone} to number of stone in arg 1's inventory
- set {_coalore} to number of coal ore in arg 1's inventory
- set {_value1} to {@stone} * {_stone}
- set {_value2} to {@coalore} * {_coalore}
- set {_money1} to {_stone}
- set {_money2} to {_coalore}
- set {blocks} to {_value2} + {_value1}
- set {_money} to {_money2} + {_money1}
- remove all stone and coal ore from arg 1's inventory
- add {_money} to arg 1's balance
- set action bar of arg 1 to "&eSold &fx%{_money}% &eblocks for &f$%{blocks}% &ewith (* 0 Booster)"
- stop
- command /booster [<text>] [<text>] [<offlineplayer>]:
- permission: boosters.use
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- if player has the permission "boosters.use":
- open chest with 5 rows named "&7Boosters" to player
- format slot 11 of player with 1 emerald named "&6Booster &e##1" with lore "&7Click to enable a *1 booster" to run [make console execute "/booster global 1 %player%"]
- format slot 13 of player with 1 emerald named "&6Booster &e##2" with lore "&7Click to enable a *2 booster" to run [make console execute "/booster global 2 %player%"]
- format slot 15 of player with 1 emerald named "&6Booster &e##3" with lore "&7Click to enable a *3 booster" to run [make console execute "/booster global 3 %player%"]
- format slot 30 of player with 1 compass named "&6Stop the current booster" with lore "&7%{booster.scoreboard}%" to run [make player execute "/booster stop"]
- format slot 32 of player with 1 book named "&6Check the current active booster" to run [make player execute "/booster current"]
- if arg 1 is "global":
- if arg 2 is "1":
- if {booster} is "True":
- send "&e(!) A booster has already been activated"
- stop
- broadcast ""
- broadcast "&e(!) %arg 3% has activated a 1x Booster"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "True"
- add 1 to {booster.active}
- wait 60 minutes
- broadcast ""
- broadcast "&e(!) %arg 3%'s 1x Booster has ended"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "False"
- set {booster.active} to 0
- if arg 2 is "2":
- if {booster} is "True":
- send "&e(!) A booster has already been activated"
- stop
- broadcast ""
- broadcast "&e(!) %arg 3% has activated a 2x Booster"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "True"
- add 2 to {booster.active}
- wait 60 minutes
- broadcast ""
- broadcast "&e(!) %arg 3%'s 2x Booster has ended"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "False"
- set {booster.active} to 0
- if arg 2 is "3":
- if {booster} is "True":
- send "&e(!) A booster has already been activated"
- stop
- broadcast ""
- broadcast "&e(!) %arg 3% has activated a 3x Booster"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "True"
- add 3 to {booster.active}
- wait 60 minutes
- broadcast ""
- broadcast "&e(!) %arg 3%'s 3x Booster has ended"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- set {booster} to "False"
- set {booster.active} to 0
- if arg 1 is "stop":
- broadcast ""
- broadcast "&e(!) %player% has ended the booster"
- broadcast "&7(!) Force stopped by an admin"
- broadcast ""
- set {booster} to "False"
- set {booster.active} to 0
- if arg 1 is "current":
- broadcast ""
- broadcast "&e(!) There is currently a a %{booster.scoreboard}% booster active"
- broadcast ""
- stop
- every 1 minute:
- loop all players:
- if {booster.active} is equal to 1:
- broadcast ""
- broadcast "&e(!) A booster of 1x is active"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- stop
- if {booster.active} is equal to 2:
- broadcast ""
- broadcast "&e(!) A booster of 2x is active"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- stop
- if {booster.active} is equal to 3:
- broadcast ""
- broadcast "&e(!) A booster of 3x is active"
- broadcast "&7(!) This booster will last for 60 minutes"
- broadcast ""
- stop
- every tick:
- if {booster.active} is equal to 1:
- set {booster.scoreboard} to "1x"
- if {booster.active} is equal to 2:
- set {booster.scoreboard} to "2x"
- if {booster.active} is equal to 3:
- set {booster.scoreboard} to "3x"
- if {booster.active} is less than 1:
- set {booster.scoreboard} to "0x"
- on rightclick on sign:
- 2nd line of clicked block is "&3[Sell All]":
- make console execute command "/sell %player%"
- set line 3 of clicked block to "&8%player%"
- command /test:
- trigger:
- add 1000 to {tokens::%player%}
Advertisement
Add Comment
Please, Sign In to add comment