Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- nopermission: &3| &bCrates &3| &cYou don't have permission to execute this command.
- prefix: &3| &bCrates &3|
- on load:
- broadcast "&3| &bCrates &3|&7 Crates have been loaded Successfully!"
- broadcast "&3| &bCrates &3|&7 Created by Benzy"
- command /crate <players>:
- permission: crate.give
- permission message: {@nopermission}
- trigger:
- open chest with 1 row named "&bCrate for %arg-1%" to player
- wait 5 tick
- format slot 0 of player with white glass pane named "&0-" to close
- format slot 1 of player with white glass pane named "&0-" to close
- format slot 2 of player with white glass pane named "&0-" to close
- format slot 3 of player with chest named "&3Default Crate" to close then run [console command "give %arg-1% chest 1 name:&3Default_Crate lore:&bRight_click_to_unlock"]->[send "{@prefix} &7You where given a &3Default Crate" to arg-1]->[send "{@prefix} &7You gave %arg-1% a &3Default Crate"]
- format slot 4 of player with chest named "&5Dank Crate" to close then run [console command "give %arg-1% chest 1 name:&5Dank_Crate lore:&bRight_click_to_unlock"]->[send "{@prefix} &7You where given a &5Dank Crate" to arg-1]->[send "{@prefix} &7You gave %arg-1% a &5Dank Crate"]
- format slot 5 of player with chest named "&cRankup Crate" to close then run [console command "give %arg-1% chest 1 name:&cRankup_Crate lore:&bRight_click_to_unlock"]->[send "{@prefix} &7You where given a &cRankup Crate" to arg-1]->[send "{@prefix} &7You gave %arg-1% a &cRankup Crate"]
- format slot 6 of player with white glass pane named "&0-" to close
- format slot 7 of player with white glass pane named "&0-" to close
- format slot 8 of player with white glass pane named "&0-" to close
- command /crates:
- permission: crate.give
- permission message: {@nopermission}
- trigger:
- message "&7&m--------------------------------"
- message " &cRankup &8, &5Dank &8, &3Default"
- message "&7&m--------------------------------"
- on rightclick:
- player is holding chest named "&3Default Crate" with lore "&bRight click to unlock"
- remove 1 chest named "&3Default Crate" with lore "&bRight click to unlock" from player
- set {default} to a random integer between 1 and 5
- if {default} is 1:
- execute console command "/eco give %player% 100"
- send "{@prefix}&7 You have unlocked &a$100"
- if {default} is 2:
- execute console command "/give %player% DIAMOND 1"
- send "{@prefix}&7 You have unlocked a &bDiamond"
- if {default} is 3:
- execute console command "/eco give %player% 2000"
- send "{@prefix}&7 You have unlocked &a$2000"
- if {default} is 4:
- execute console command "/eco give %player% 5000"
- send "{@prefix}&7 You have unlocked &a$5000"
- if {default} is 5:
- execute console command "/eco give %player% 10000"
- send "{@prefix}&7 You have unlocked &a$10000"
- on rightclick:
- player is holding chest named "&5Dank Crate" with lore "&bRight click to unlock"
- remove 1 chest named "&5Dank Crate" with lore "&bRight click to unlock" from player
- set {dank} to a random integer between 1 and 5
- if {dank} is 1:
- execute console command "/eco give %player% 100"
- send "{@prefix}&7 You have unlocked &a$100"
- if {dank} is 2:
- execute console command "/give %player% DIAMOND 1"
- send "{@prefix}&7 You have unlocked a &bDiamond"
- if {dank} is 3:
- execute console command "/eco give %player% 2000"
- send "{@prefix}&7 You have unlocked &a$2000"
- if {dank} is 4:
- execute console command "/eco give %player% 5000"
- send "{@prefix}&7 You have unlocked &a$5000"
- if {dank} is 5:
- execute console command "/eco give %player% 10000"
- send "{@prefix}&7 You have unlocked &a$10000"
- on rightclick:
- player is holding chest named "&cRankup Crate" with lore "&bRight click to unlock"
- remove 1 chest named "&cRankup Crate" with lore "&bRight click to unlock" from player
- set {rankup} to a random integer between 1 and 5
- if {default} is 1:
- execute console command "/eco give %player% 100"
- send "{@prefix}&7 You have unlocked &a$100"
- if {rankup} is 2:
- execute console command "/give %player% DIAMOND 1"
- send "{@prefix}&7 You have unlocked a &bDiamond"
- if {rankup} is 3:
- execute console command "/eco give %player% 2000"
- send "{@prefix}&7 You have unlocked &a$2000"
- if {rankup} is 4:
- execute console command "/eco give %player% 5000"
- send "{@prefix}&7 You have unlocked &a$5000"
- if {rankup} is 5:
- execute console command "/eco give %player% 10000"
- send "{@prefix}&7 You have unlocked &a$10000"
Add Comment
Please, Sign In to add comment