Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===========================#
- # ChestDrop by dawid26pl #
- # Version 2.0 #
- # Skript 2.1.2 #
- #===========================#=============================================#
- # Zakaz podszywania sie pod tworce i kopiowania skryptu dla celow wlasnych#
- #=========================================================================#
- on load:
- set {dropchance} to 1.5
- set {name} to "ChestDrop.sk"
- set {tag} to "&c[&4Chest&cDrop]&a"
- set {autor} to "&4&ldawid26pl&f"
- wait 6 tick
- broadcast "%{tag}% Skrypt Zaladowany"
- on mine stone:
- chance of {dropchance}%:
- give 1 chest of unbreaking 5 with lore "&aOtworz ta skrzynie prawym przyciskiem||&eDostaniesz fajne rzeczy" named "%{tag}%" to the player
- on rightclick:
- if player is holding chest of unbreaking 5:
- give a random item of {chestdropdrop::*} to player
- send "%{tag}% Dostales item" to player
- remove 1 chest of unbreaking 5 from player
- command /chestdrop [<text="help">] [<items>]:
- permission: chestdrop.admin
- permission message: %{tag}% Nie masz dostepu
- trigger:
- if arg 1 is not set:
- send "&4Blad:&cNieznana komenda,lub zla nazwa item'a !" to the player
- stop
- else if arg 1 is "help":
- send "&c ==--- %{tag}% &c---==="
- send "&4/chestdrop add < Item > -&cDodanie nowego item'a do losowania." to the player
- send "&4/chestdrop drop < Drop > -&cZmienienie dropu skrzynek,drop to %{dropchance}%." to the player
- send "&4/chestdrop remove < Item > -&cUsuwanie item'a z losowania" to the player
- send "&4/chestdrop reload -&c Resetowanie skryptu" to the player
- send "&4Lista item'ow z losowania:&c %{chestdropdrop::*}%" to the player
- send "&4Pamietaj ze aby dodac item musi byc po angielsku!." to the player
- send "&4Skript by dawid26pl" to the player
- else if arg 1 is "drop":
- if arg 2 is not set:
- send "&4Blad:&cNie podano dropi" to the player
- else:
- set {dropchance} to arg 2
- send "&aZmieniono drop skrzyni na %arg 2% " to the player
- else if arg 1 is "add":
- if arg 2 is not set:
- send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
- else:
- add arg 2 to {chestdropdrop::*}
- send "&aDodano ' %arg 2% ' do dropu z skrzyni" to the player
- else if arg 1 is "remove":
- if argument 2 is not set:
- send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
- else:
- remove arg 2 from {chestdropdrop::*}
- send "&cUsunieto ' %arg 2% ' z dropu z skrzyni" to the player
- else if arg 1 is "reload":
- execute console command "/skript reload %{name}%"
Advertisement
Add Comment
Please, Sign In to add comment