Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pcase [<offlineplayer>] [<integer>] [<text>]:
- aliases: premiumcase, casee
- trigger:
- player has permission "case":
- arg 2 is not set:
- send " &8» &7Poprawne uzycie: &6/premiumcase <nick/all> <ilosc>"
- stop
- arg 1 is "all":
- loop all players:
- loop-player can hold arg 2 of chest named "&9&lPremiumCase":
- give loop-player arg 2 of chest named "&9&lPremiumCase"
- else:
- drop arg 2 of chest named "&9&lPremiumCase" at loop-player
- broadcast "&8» &7Caly serwer otrzymal &9&lPremiumCase &8(&c%arg 2%x&8)&7."
- execute player command "stb all &8» &7Caly serwer otrzymal &c%arg 2%x &9&lPremiumCase"
- execute player command "tb all &5&lCASE"
- stop
- arg 1 is not online:
- send "&cPodany gracz jest offline"
- stop
- set {_n} to arg 1's name
- loop all players:
- loop-player's name is "%{_n}%":
- set {_p} to loop-player
- send "&aDales %arg 1% %arg 2%x &9&lPremiumCase"
- send " &8» &7Otrzymales: &c%arg 2%x &l" to {_p}
- arg 1 can hold arg 2 of chest named "&9&lPremiumCase":
- give arg 2 of chest named "&9&lPremiumCase" to {_p}
- else:
- drop arg 2 of chest named "&9&lPremiumCase" at {_p}
- stop
- send "&8» &cNie masz dostepu do tej komendy! &7(case)"
- stop
- on place:
- block under event-block is end stone:
- stop
- block is not chest:
- stop
- player's tool is not chest named "&9&lPremiumCase":
- player's tool is not chest named "&9&lPrrrr":
- stop
- set event-block to air
- set {_i} to 0
- chance of 55%:
- drop diamond helmet of protection 4 and unbreaking 3 at event-block
- drop diamond chestplate of protection 4 and unbreaking 3 at event-block
- drop diamond leggings of protection 4 and unbreaking 3 at event-block
- drop diamond boots of protection 4 and unbreaking 3 at event-block
- drop 373:8233 at event-block
- drop 373:8233 at event-block
- add 1 to {_i}
- chance of 80%:
- drop 373:8233 at event-block
- drop 373:8233 at event-block
- drop 373:8226 at event-block
- drop 373:8226 at event-block
- add 1 to {_i}
- chance of 15%:
- drop diamond leggings of protection 4 and unbreaking 3 at event-block
- add 1 to {_i}
- chance of 15%:
- drop diamond boots of protection 4 and unbreaking 3 at event-block
- add 1 to {_i}
- chance of 20%:
- drop 64 emerald at event-block
- add 1 to {_i}
- chance of 20%:
- drop 64 gold block at event-block
- add 1 to {_i}
- chance of 20%:
- drop 64 emerald at event-block
- add 1 to {_i}
- chance of 40%:
- drop diamond pickaxe of efficiency 6, fortune 3 and unbreaking 3 at event-block
- add 1 to {_i}
- chance of 40%:
- drop diamond pickaxe of efficiency 6, fortune 3 and unbreaking 3 at event-block
- add 1 to {_i}
- chance of 60%:
- drop diamond sword of sharpness 5 and fire aspect 2 at event-block
- add 1 to {_i}
- chance of 0.001%:
- add 1 to {_i}
- chance of 50%:
- drop 64 emerald block at event-block
- add 1 to {_i}
- chance of 50%:
- drop 64 tnt at event-block
- add 1 to {_i}
- chance of 30%:
- drop 16 ender pearl at event-block
- add 1 to {_i}
- chance of 2%:
- drop beacon at event-block
- send "&f&lCraft&7&l-&2&l4U&F&L.PL &8» &7Gracz &6%player% &7wydropil &bBEACON'a &7z &9&lPREMIUMCASE&7!" to all players
- add 1 to {_i}
- chance of 2%:
- drop diamond pickaxe of efficiency 10, fortune 3 and unbreaking 3 at event-block
- send "&f&lCraft&7&l-&2&l4U&F&L.PL &8» &7Gracz &6%player% &7wydropil &bKILOF 10/3/3 &7z &9&lPREMIUMCASE&7!" to all players
- add 1 to {_i}
- if {_i} is 0:
- show mob spawner at event-block
Advertisement
Add Comment
Please, Sign In to add comment