Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- add 1 to {zaladowanych}
- wait 0.5 seconds
- make console execute command "sk enable zrobione/duzypiec"
- command changedrop [<text>]:
- permission: op
- aliases: drop
- trigger:
- if arg 1 isn't set:
- wait 2 ticks
- close player's inventory
- open chest with 4 rows named "zmiendrop" to player
- wait 2 ticks
- "%inventory name of current inventory of player%" contains "zmiendrop"
- format slot 0 of player with 1 of trapped chest named "Zmien drop w skrzynkach" to be unstealable
- format slot 2 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.skrzynie"]
- format slot 3 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.skrzynie"]
- format slot 4 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.skrzynie"]
- format slot 9 of player with 1 of melon block named "Zmien drop w beczkach" to be unstealable
- format slot 11 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.beczki"]
- format slot 12 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.beczki"]
- format slot 13 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.beczki"]
- format slot 18 of player with 1 of jukebox named "Zmien drop w rad beczkach" to be unstealable
- format slot 20 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.radioaktywne"]
- format slot 21 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.radioaktywne"]
- format slot 22 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.radioaktywne"]
- format slot 27 of player with 1 of 35:9 named "Zmien drop w zrzutach" to be unstealable
- format slot 29 of player with 1 of chest named "&aKliknij &7aby zmienic drop ogolny" to close then run [make player execute command "changedrop drop.zrzut"]
- format slot 30 of player with 1 of book named "&aKliknij &7aby zmienic drop schematow" to close then run [make player execute command "changedrop schematy.zrzut"]
- format slot 31 of player with 1 of diamond pickaxe named "&aKliknij &7aby zmienic drop broni" to close then run [make player execute command "changedrop bronie.zrzut"]
- else if "%arg 1%" contains ("drop" or "schematy" or "bronie") and ("zrzut" or "beczki" or "radioaktywne" or "skrzynie"):
- ("world" parsed as world) has metadata "zmiendrop":
- set {_w} to ("world" parsed as world)
- "%metadata value ""zmiendrop"" of {_w}%" isn't "%player%"
- send "&b&l>> &e%metadata value ""zmiendrop"" of {_w}% &czmienia aktualnie drop! Poczekaj chwile!"
- stop
- set metadata value "zmiendrop" of ("world" parsed as world) to "%player%"
- wait 2 ticks
- open chest with 15 rows named "&2Dropik &e%arg 1%" to player
- wait 2 ticks
- set {_slot} to 0
- loop {%arg 1%::*}:
- set slot {_slot} of player's current inventory to loop-value
- add 1 to {_slot}
- on inventory close:
- "%inventory name of current inventory of player%" contains "&2Dropik"
- set {_name::*} to ("%inventory name of current inventory of player%" parsed as text) split at " &e"
- delete {%{_name::2}%::*}
- set {_nr} to 1
- loop all items in player's current inventory:
- set {%{_name::2}%::%{_nr}%} to loop-value
- add 1 to {_nr}
- delete metadata value "zmiendrop" of ("world" parsed as world)
- wait 2 ticks
- run player command "drop" as op
- on click on melon block or jukebox:
- if player has invisibility:
- cancel event
- send "&cNie mozesz tego robic bedac ukrytym."
- stop
- cancel event
- add event-location to {beczki.%id of event-block%::*}
- if "%metadata value ""ranga"" of player%" contains "vip+" or "youtube":
- set {_add.1} to 1
- set {_add.2} to 3+{drop.1.%id of event-block%}
- set {_add.3} to 2
- else if "%metadata value ""ranga"" of player%" contains "vip":
- set {_add.1} to 1
- set {_add.2} to 1.5+{drop.2.%id of event-block%}
- set {_add.3} to 1
- else:
- set {_add.1} to 0
- set {_add.2} to 0
- set {_add.3} to 0
- if "%metadata value ""reputacja"" of player%" is "-4":
- set {_drop.all} to 2
- else:
- set {_drop.all} to 1
- chance of 4%:
- run player command "dropcase" as op
- if id of event-block is 103:
- set {_loopy} to (((random integer between 1 and 3)+({_add.1}-{drop.3.%id of event-block%}))/{_drop.all})
- loop {_loopy} times:
- set {_dropped} to (random element out of {drop.beczki::*})
- if id of {_dropped} is between 298 and 317:
- delete {_dalej}
- chance of 12%:
- set {_dalej} to true
- {_dalej} is set
- set {_lvl} to random integer between 1 and 5
- enchant {_rand} with (unbreaking 1) or (protection 1) or (projectile protection 1)
- loop ({_lvl}+1) times:
- chance of 25%:
- enchant {_rand} with (unbreaking 1) or (unbreaking 3) or (unbreaking 1) or (unbreaking 2) or (unbreaking 1) or (unbreaking 2)
- chance of 25%:
- enchant {_rand} with (protection 1) or (protection 3) or (protection 1) or (protection 2) or (protection 1) or (protection 2)
- chance of 25%:
- enchant {_rand} with (projectile protection 1) or (projectile protection 3) or (projectile protection 1) or (projectile protection 2) or (projectile protection 1) or (projectile protection 2)
- if id of {_rand} is 301 or 305 or 309 or 313:
- chance of 25%:
- enchant {_rand} with (feather falling 1) or (feather falling 3) or (feather falling 1) or (feather falling 2) or (feather falling 1) or (feather falling 2)
- set {_kolor.5} and {_kolor.1} and {_kolor.2} and {_kolor.3} and {_kolor.4} to "&7"
- loop {_lvl} times:
- set {_kolor.%loop-value-2%} to "&6"
- if {_lvl} is 1:
- set {_prefix} to "&8&lCommon"
- else if {_lvl} is 2:
- set {_prefix} to "&7&lUncommon"
- else if {_lvl} is 3:
- set {_prefix} to "&2&lRare"
- else if {_lvl} is 4:
- set {_prefix} to "&b&lUnique"
- else if {_lvl} is 5:
- set {_prefix} to "&6&lLegendary"
- set {_rand} to {_rand} with lore "%lore of {_rand}%|| %{_kolor.1}%✯ %{_kolor.2}%✯ %{_kolor.3}%✯ %{_kolor.4}%✯ %{_kolor.5}%✯ &f&l>> %{_prefix}%"
- set {_dropped} to {_rand}
- drop {_dropped} at location of event-block
- chance of ((22.5+{_add.2}-{drop.5.%id of event-block%})/{_drop.all})%:
- drop (random element out of {schematy.beczki::*}) at location of event-block
- chance of ((16.5+{_add.3}-({drop.5.%id of event-block%}/2))/{_drop.all})%:
- set {_bron} to random element out of {bronie.beczki::*}
- "%1st line of lore of {_bron}%" contains "losuj":
- chance of 30%:
- set {_rand} to 0
- else:
- chance of 30%:
- set {_rand} to 1
- else:
- chance of 30%:
- set {_rand} to 3
- else:
- chance of 20%:
- set {_rand} to 4
- else:
- chance of 10%:
- set {_rand} to 5
- else:
- set {_rand} to 2
- run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
- else:
- drop {_bron} over player
- else if id of event-block is 84:
- set {_loopy} to (((random integer between 1 and 2)+({_add.1}-{drop.3.%id of event-block%}))/{_drop.all})
- loop {_loopy} times:
- drop (random element out of {drop.radioaktywne::*}) at location of event-block
- chance of ((22.5+{_add.2}-{drop.5.%id of event-block%})/{_drop.all})%:
- drop (random element out of {schematy.radioaktywne::*}) at location of event-block
- chance of ((15.5+{_add.3}-({drop.5.%id of event-block%}/2))/{_drop.all})%:
- set {_bron} to random element out of {bronie.radioaktywne::*}
- "%1st line of lore of {_bron}%" contains "losuj":
- chance of 30%:
- set {_rand} to 0
- else:
- chance of 30%:
- set {_rand} to 1
- else:
- chance of 30%:
- set {_rand} to 3
- else:
- chance of 20%:
- set {_rand} to 4
- else:
- chance of 10%:
- set {_rand} to 5
- else:
- set {_rand} to 2
- run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
- else:
- drop {_bron} over player
- play raw sound "mob.zombie.woodbreak" at location of player with pitch 1 volume 3
- set event-block to air
- command skrzynie:
- permission: op
- trigger:
- #make console execute command "dajinfo 1 pl Skrzynie w lokacjach zostaly odnowione!"
- #make console execute command "dajinfo 1 en Chests in rad-towns are restocked!"
- loop {skrzynie::*}:
- set block at loop-value to trapped chest
- remove loop-value from {skrzynie::*}
- command beczki:
- permission: op
- trigger:
- #make console execute command "dajinfo 1 pl Beczki w lokacjach zostaly odnowione!"
- #make console execute command "dajinfo 1 en Barrels in bandit-towns are restocked!"
- loop {beczki.103::*}:
- set block at loop-value to melon block
- remove loop-value from {beczki.103::*}
- loop {beczki.84::*}:
- set block at loop-value to jukebox
- remove loop-value from {beczki.84::*}
- on rightclick on trapped chest:
- (block to the right of event-block) and (block to the left of event-block) isn't trapped chest
- if player has invisibility:
- cancel event
- send "&cNie mozesz tego robic bedac ukrytym."
- stop
- cancel event
- add event-location to {skrzynie::*}
- set event-block to air
- set {_add.1} and {_add.2} and {_add.3} to 0
- if "%metadata value ""ranga"" of player%" contains "vip+" or "youtube":
- set {_add.1} to (1 or 2 or 3)
- set {_add.2} to 8
- set {_add.3} to 4
- else if "%metadata value ""ranga"" of player%" contains "vip":
- set {_add.1} to (1 or 2)
- set {_add.2} to 4
- set {_add.3} to 2
- else:
- set {_add.1} to 0
- set {_add.2} to 0
- set {_add.3} to 0
- if "%metadata value ""reputacja"" of player%" is "-4":
- set {_drop.all} to 2
- else:
- set {_drop.all} to 1
- chance of 4%:
- run player command "dropcase" as op
- drop (random element out of {drop.beczki::*}) at location of event-block
- loop (((random integer between 2 and 3)+{_add.1})/{_drop.all}) times:
- set {_dropped} to (random element out of {drop.beczki::*})
- if id of {_dropped} is between 298 and 317:
- chance of 12%:
- set {_lvl} to random integer between 1 and 5
- enchant {_rand} with (unbreaking 1) or (protection 1) or (projectile protection 1)
- loop ({_lvl}+1) times:
- chance of 25%:
- enchant {_rand} with (unbreaking 1) or (unbreaking 3) or (unbreaking 1) or (unbreaking 2) or (unbreaking 1) or (unbreaking 2)
- chance of 25%:
- enchant {_rand} with (protection 1) or (protection 3) or (protection 1) or (protection 2) or (protection 1) or (protection 2)
- chance of 25%:
- enchant {_rand} with (projectile protection 1) or (projectile protection 3) or (projectile protection 1) or (projectile protection 2) or (projectile protection 1) or (projectile protection 2)
- if id of {_rand} is 301 or 305 or 309 or 313:
- chance of 25%:
- enchant {_rand} with (feather falling 1) or (feather falling 3) or (feather falling 1) or (feather falling 2) or (feather falling 1) or (feather falling 2)
- set {_kolor.5} and {_kolor.1} and {_kolor.2} and {_kolor.3} and {_kolor.4} to "&7"
- loop {_lvl} times:
- set {_kolor.%loop-value-2%} to "&6"
- if {_lvl} is 1:
- set {_prefix} to "&8&lCommon"
- else if {_lvl} is 2:
- set {_prefix} to "&7&lUncommon"
- else if {_lvl} is 3:
- set {_prefix} to "&2&lRare"
- else if {_lvl} is 4:
- set {_prefix} to "&b&lUnique"
- else if {_lvl} is 5:
- set {_prefix} to "&6&lLegendary"
- set {_rand} to {_rand} with lore "%lore of {_rand}%|| %{_kolor.1}%✯ %{_kolor.2}%✯ %{_kolor.3}%✯ %{_kolor.4}%✯ %{_kolor.5}%✯ &f&l>> %{_prefix}%"
- set {_dropped} to {_rand}
- drop {_dropped} at location of event-block
- chance of ((35+{_add.2})/{_drop.all})%:
- drop (random element out of {schematy.skrzynie::*}) at location of event-block
- chance of ((25+{_add.3})/{_drop.all})%:
- set {_bron} to random element out of {bronie.skrzynie::*}
- if player is player:
- "%1st line of lore of {_bron}%" contains "losuj":
- chance of 30%:
- set {_rand} to 0
- else:
- chance of 30%:
- set {_rand} to 1
- else:
- chance of 30%:
- set {_rand} to 3
- else:
- chance of 20%:
- set {_rand} to 4
- else:
- chance of 10%:
- set {_rand} to 5
- else:
- set {_rand} to 2
- run player command "bron %2th line of lore of {_bron}% %{_rand}%" as op
- else:
- drop {_bron} over player
- play raw sound "mob.zombie.woodbreak" at location of player with pitch 1 volume 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement