Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Pod komenda np /lowienia ma się otworzyć takie mało okno skrzynkowe 4-6 w bok
- #i tam ma byc skrzynia rybaka i gdy się na nia kliknie pojawiaja sie ity
- #jakie mozesz znalesc w tej skrzyni czyli jak wylowisz klucz
- #postawisz ta skrzynie rybaka klikniesz kluczem i sie losuje dana nagroda
- #0.5% z cobbla skrzynka rybaka named "&6Skrzynka &bRybaka"
- #--------- Itemy ---------#
- #1. 1 kox 1%
- #2. 15 diamond 15%
- #3. 32 book 5%
- #4. enchant 20%
- #5. 16 bookshelf 7%
- #6. Diamond Chestplate of protection 3 2%
- #-------------------------#
- #Wymagane pluginy:
- #Skript
- #RandomSK
- #WildSkript
- Options:
- #Komenda na sprawdzenie jakie itemki dropia ze skrzynki
- cmd: lowienie
- #Szansa na klucz z wody
- chanceKey: 10
- #Szansa na skrzynke z cobble
- chanceChest: 0.5
- item.1: enchanted golden apple
- chanceItem.1: 1
- item.2: 15 diamond
- chanceItem.2: 15
- item.3: 32 book
- chanceItem.3: 5
- item.4: enchantment table
- chanceItem.4: 20
- item.5: 16 bookshelf
- chanceItem.5: 7
- item.6: diamond chestplate of protection 3
- chanceItem.6: 2
- command /hash [<text>]:
- trigger:
- if player has permission "dawid.admin":
- if arg 1 is not set:
- send "Musisz wpisac /hash *procent*"
- stop
- if arg 1 is set:
- set {p} to arg 1
- execute console command "sk reload %script%"
- command /{@cmd}:
- trigger:
- "&6Skrzynka &bRybak".Inventory.display{player};
- command /{@cmd}2:
- trigger:
- "&6Skrzynka &bRybaka".Inventory.display{player};
- on load:
- set {_id} to "&6Skrzynka &bRybak"
- "%{_id}%".Inventory.setRow{1};
- "%{_id}%".Inventory.setItem{5, chest named "&6Skrzynka &bRybaka"};
- "%{_id}%".Inventory.setExecutor{5, "player"};
- "%{_id}%".Inventory.setCommand{5, "{@cmd}2"};
- on load:
- set {_id} to "&6Skrzynka &bRybaka"
- "%{_id}%".Inventory.setRow{1};
- "%{_id}%".Inventory.setItem{1, {@item.1}};
- "%{_id}%".Inventory.setLore{1, "&a{@chanceItem.1}%{p}%"};
- "%{_id}%".Inventory.setItem{2, {@item.2}};
- "%{_id}%".Inventory.setLore{2, "&a{@chanceItem.2}%{p}%"};
- "%{_id}%".Inventory.setItem{3, {@item.3}};
- "%{_id}%".Inventory.setLore{3, "&a{@chanceItem.3}%{p}%"};
- "%{_id}%".Inventory.setItem{4, {@item.4}};
- "%{_id}%".Inventory.setLore{4, "&a{@chanceItem.4}%{p}%"};
- "%{_id}%".Inventory.setItem{5, {@item.5}};
- "%{_id}%".Inventory.setLore{5, "&a{@chanceItem.5}%{p}%"};
- "%{_id}%".Inventory.setItem{6, {@item.6}};
- "%{_id}%".Inventory.setLore{6, "&a{@chanceItem.6}%{p}%"};
- on player fishing:
- if fishing state is caught fish:
- chance of {@chanceKey}%:
- cancel event
- give stick named "&6Klucz &bRybaka" to the player
- on break cobblestone:
- chance of {@chanceChest}%:
- give chest named "&6Skrzynka &bRybaka" to the player
- on place:
- if player's tool is chest named "&6Skrzynka &bRybaka":
- if player cannot build at event-block:
- cancel event
- set {rybak.chest.%location of event-block%} to true
- on break chest:
- if {rybak.chest.%location of event-block%} is set:
- cancel event
- set event-block to air
- give chest named "&6Skrzynka &bRybaka" to the player
- on rightclick on chest:
- if {rybak.chest.%location of event-block%} is set:
- cancel event
- if player's tool is stick named "&6Klucz &bRybaka":
- remove stick named "&6Klucz &bRybaka" from player
- clear {rybak.chest.%location of event-block%}
- set event-block to air
- loop 5 times:
- if {_set} is set:
- exit loop
- chance of {@chanceItem.1}%:
- give {@item.1} to the player
- set {_set} to true
- chance of {@chanceItem.2}%:
- give {@item.2} to the player
- set {_set} to true
- chance of {@chanceItem.3}%:
- give {@item.3} to the player
- set {_set} to true
- chance of {@chanceItem.4}%:
- give {@item.4} to the player
- set {_set} to true
- chance of {@chanceItem.5}%:
- give {@item.5} to the player
- set {_set} to true
- chance of {@chanceItem.6}%:
- give {@item.6} to the player
- set {_set} to true
- on explode:
- loop blocks in radius 5:
- if loop-block is chest:
- if {rybak.chest.%location of loop-block%} is set:
- clear {rybak.chest.%location of loop-block%}
- set loop-block to air
Advertisement
Add Comment
Please, Sign In to add comment