Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- cloud_boots: 0%
- casedrop: 10% #Drop skrzynki ze stone
- miecz_sharp_5: 0%
- koxy: 0%
- helm_prot_5: 0%
- klata_prot_5: 0%
- spodnie_prot_5: 0%
- buty_prot_5: 0%
- kilof_fortune_3: 0%
- gold_kilof_eff_6: 0%
- refy: 0%
- variables:
- {losowanie::%player%} = false
- on script load:
- clear {itemy::*}
- add diamond to {itemy::*}
- add iron ingot to {itemy::*}
- add golden ingot to {itemy::*}
- add redstone to {itemy::*}
- add tnt block to {itemy::*}
- on rightclick holding chest:
- if name of player's tool is "&3&lCS:GO CASE":
- cancel event
- if player has name tag named "&3&lCS:GO CASE KEY":
- remove name tag named "&3&lCS:GO CASE KEY" from player
- set {losowanie::%player%} to true
- open chest with 3 rows named "%name of player's tool%" to player
- remove chest named "&3&lCS:GO CASE" from player
- format slot 0 of player with red glass pane to be unstealable
- format slot 1 of player with red glass pane to be unstealable
- format slot 2 of player with red glass pane to be unstealable
- format slot 3 of player with red glass pane to be unstealable
- format slot 4 of player with green glass pane to be unstealable
- format slot 5 of player with red glass pane to be unstealable
- format slot 6 of player with red glass pane to be unstealable
- format slot 7 of player with red glass pane to be unstealable
- format slot 8 of player with red glass pane to be unstealable
- format slot 9 of player with red glass pane to be unstealable
- format slot 17 of player with red glass pane to be unstealable
- format slot 18 of player with red glass pane to be unstealable
- format slot 19 of player with red glass pane to be unstealable
- format slot 20 of player with red glass pane to be unstealable
- format slot 21 of player with red glass pane to be unstealable
- format slot 22 of player with green glass pane to be unstealable
- format slot 23 of player with red glass pane to be unstealable
- format slot 24 of player with red glass pane to be unstealable
- format slot 25 of player with red glass pane to be unstealable
- format slot 26 of player with red glass pane to be unstealable
- set {_10} to random element out of {itemy::*}
- set {_11} to random element out of {itemy::*}
- set {_12} to random element out of {itemy::*}
- set {_13} to random element out of {itemy::*}
- set {_14} to random element out of {itemy::*}
- set {_15} to random element out of {itemy::*}
- set {_16} to random element out of {itemy::*}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- wait 10 ticks
- loop random integer between 17 and 20 times:
- wait 2 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- loop random integer between 13 and 16 times:
- wait 3 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- loop random integer between 9 and 12 times:
- wait 4 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- loop random integer between 5 and 8 times:
- wait 5 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- loop random integer between 3 and 4 times:
- wait 10 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- loop random integer between 1 and 3 times:
- wait 20 ticks
- set {_16} to {_15}
- set {_15} to {_14}
- set {_14} to {_13}
- set {_13} to {_12}
- set {_12} to {_11}
- set {_11} to {_10}
- chance of {@cloud_boots}:
- set {_10} to diamond boots of unbreaking 3 named "&3&lCloud Boots"
- else if chance of {@gold_kilof_eff_6}:
- set {_10} to golden pickaxe of efficiency 6
- else if chance of {@miecz_sharp_5}:
- set {_10} to diamond sword of sharpness 5
- else if chance of {@helm_prot_5}:
- set {_10} to diamond helmet of protection 5
- else if chance of {@klata_prot_5}:
- set {_10} to diamond chestplate of protection 5
- else if chance of {@spodnie_prot_5}:
- set {_10} to diamond leggings of protection 5
- else if chance of {@buty_prot_5}:
- set {_10} to diamond boots of protection 5
- else if chance of {@kilof_fortune_3}:
- set {_10} to diamond pickaxe of fortune 3
- else if chance of {@koxy}:
- set {_10} to 2 enchanted golden apple
- else if chance of {@refy}:
- set {_10} to random integer between 1 and 5 of golden apple
- else:
- set {_10} to random element out of {itemy::*}
- set {_10} to random integer between 1 and 4 of {_10}
- format slot 10 of player with {_10} to be unstealable
- format slot 11 of player with {_11} to be unstealable
- format slot 12 of player with {_12} to be unstealable
- format slot 13 of player with {_13} to be unstealable
- format slot 14 of player with {_14} to be unstealable
- format slot 15 of player with {_15} to be unstealable
- format slot 16 of player with {_16} to be unstealable
- wait 2 seconds
- if {losowanie::%player%} is true:
- if {_13} is diamond boots of unbreaking 3 named "&3&lCloud Boots":
- broadcast "&b%player% &azdobyl nastepujacy przedmiot: &6Cloud Boots&a!"
- else:
- broadcast "&b%player% &azdobyl nastepujacy przedmiot: &6%{_13}%&a!"
- set {losowanie::%player%} to false
- if player can hold {_13}:
- add {_13} to player
- else:
- drop {_13} at player
- close player's inventory
- stop
- stop
- else:
- send "&cPotrzebujesz klucz aby otworzyc ta skrzynke."
- command /dajklucz [<player=%player%>] [<integer=1>]:
- trigger:
- if player has permissions "csgocase.givekey":
- add integer-arg of name tag named "&3&lCS:GO CASE KEY" to player-arg
- Send "&aOtrzymales &c%integer-arg%x &aklucz do skrzynki &3&lCS:GO CASE&a." to player-arg
- stop
- else:
- send "&cNie masz uprawnien do tej komendy!"
- stop
- on mine of stone:
- chance of {@casedrop}:
- drop chest named "&3&lCS:GO CASE" at event-block
- send "&aZnalazles skrzynke &3&lCS:GO CASE&a."
- on rightclick with a diamond boots:
- if player's tool is diamond boots named "<aqua><bold>Cloud Boots":
- wait a tick
- if player's tool is air:
- apply jump boost 5 to the player for 999999999 seconds
- apply speed 2 to the player for 999999999 seconds
- set {cloudbootsy.%player%.zalozone} to 1
- on inventory close:
- if boots of player is not diamond boots named "<aqua><bold>Cloud Boots":
- if {cloudbootsy.%player%.zalozone} is set:
- remove jump boost from the player
- remove speed from the player
- delete {cloudbootsy.%player%.zalozone}
- else:
- apply jump boost 5 to the player for 999999999 seconds
- apply speed 2 to the player for 999999999 seconds
- set {cloudbootsy.%player%.zalozone} to 1
- if {losowanie::%player%} is true:
- send "&cOpusciles losowanie. Losowanie zostalo przerwane!"
- add name tag named "&3CS:GO CASE KEY" to player
- set {losowanie::%player%} to false
- on damage:
- if boots of victim is diamond boots named "<aqua><bold>Cloud Boots":
- if {cloudbootsy.%victim%.zalozone} is not set:
- apply jump boost 5 to the victim for 999999999 seconds
- apply speed 2 to the victim for 999999999 seconds
- set {cloudbootsy.%victim%.zalozone} to 1
- damage cause is fall
- spawn 17 of particle smoke offset by 1, 1, 1 at location of victim
- spawn 17 of particle fireworks spark offset by 1, 1, 1 at location of victim
- spawn 17 of particle instant spell offset by 1, 1, 1 at location of victim
- spawn 17 of particle magic crit offset by 1, 1, 1 at location of victim
- spawn 17 of particle spell offset by 1, 1, 1 at location of victim
- cancel event
- else:
- if {cloudbootsy.%victim%.zalozone} is set:
- remove jump boost from the victim
- remove speed from the victim
- delete {cloudbootsy.%victim%.zalozone}
Add Comment
Please, Sign In to add comment