Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {diamenty.%player%} = 0
- {zloto.%player%} = 0
- {zelazo.%player%} = 0
- options:
- diament: 2 #Ile ma byc % na drop diamentu.
- zloto: 3 #Ile ma byc % na drop zlota.
- zelazo: 5 #Ile ma byc % na drop zelaza.
- skrzynia: 3 #Ile ma byc % na drop skrzyni.
- #--------------------------------------------------------------------------------#
- item1: diamond pickaxe #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
- szansa1: 30 #Ile ma byc % na drop danego itemu
- item2: ender pearl #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
- szansa2: 30 #Ile ma byc % na drop danego itemu
- item3: 8 wood #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
- szansa3: 50 #Ile ma byc % na drop danego itemu
- item4: 16 arrow #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
- szansa4: 30 #Ile ma byc % na drop danego itemu
- command /kamien [<text>]:
- trigger:
- if arg 1 is not set:
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- send "&5>> &8/kamien statystyki &r- &6Pokazuje wykopane surowce."
- send "&5>> &8/kamien drop &r- &6Pokazuje drop ze stone."
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- if arg 1 is "drop":
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- send "&bDiament : &8{@diament}%"
- send "&6Zloto : &8{@zloto}%"
- send "Zelazo : &8{@zelazo}%"
- send "&eSkrzynia : &8{@skrzynia}%"
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- if arg 1 is "statystyki":
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- send "&bDiament : &8%{diamenty.%player%}%"
- send "&6Zloto : &8%{zloto.%player%}%"
- send "Zelazo : &8%{zelazo.%player%}%"
- send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- on mine of stone:
- if chance of {@diament}%:
- drop diamond
- add 1 to {diamenty.%player%}
- send "&aZnalazles&5 >> &bDiament &r[&8+1&r]"
- if chance of {@zelazo}%:
- drop iron ore
- add 1 to {zelazo.%player%}
- send "&aZnalazles&5 >> &fZelazo &r[&8+1&r]"
- if chance of {@zloto}%:
- drop gold ore
- add 1 to {zloto.%player%}
- send "&aZnalazles&5 >> &6Zloto &r[&8+1&r]"
- on place of 146:
- if player has permissions "op.op":
- set block to trapped chest
- else:
- cancel event
- send "&cNie mozez tego klasc"
- on mine of stone:
- if chance of {@skrzynia}%:
- set block to trapped chest
- execute console command "/playsound random.successful_hit %player%"
- on rightclick on 146:
- set block to air
- execute console command "/playsound random.successful_hit %player%"
- if chance of {@szansa1}%:
- give {@item1} to the player
- if chance of {@szansa2}%:
- give {@item2} to the player
- if chance of {@szansa3}%:
- give {@item3} to the player
- if chance of {@szansa4}%:
- give {@item4} to the player
Advertisement
Add Comment
Please, Sign In to add comment