Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {lvl.%player%} = 1
- {pkt.%player%} = 0
- {cb.%player%} = true
- command /punkty:
- aliases: pkt, poziom, lvl
- trigger:
- execute console command "/playsound note.pling %player%"
- send " &7&l&m------------&8> &6&lPunkty &8<&7&l&m------------"
- send " &8» &7Posiadasz: &2%{pkt.%player%}% &7pkt."
- send " &8» &7Posiadasz: &2%{lvl.%player%}% &7poziom."
- send " &7&l&m--------------------------------"
- stop
- command /cobble:
- trigger:
- if {cb.%player%} is true:
- set {cb.%player%} to false
- execute console command "/playsound note.pling %player%"
- send " &7» Wylaczyles drop cobblestone!"
- stop
- if {cb.%player%} is false:
- set {cb.%player%} to true
- execute console command "/playsound note.pling %player%"
- send " &7» Wlaczyles drop cobblestone!"
- stop
- options:
- yd: 25
- dc: 1.3
- ec: 1.6
- gc: 1.3
- ic: 2
- epc: 0.5
- command /drop [<text>]:
- trigger:
- if arg 1 is not set:
- send "&7&m-----------------&8> &2&lDrop &8<&7&m-----------------"
- send " &8» &2Diamenty:"
- send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
- send " &6+ &7Od poziomu: &6Y:<25"
- send " &6+ &7Szansa: &6{@dc} procent"
- send " &8» &2Emeraldy:"
- send " &6+ &7Wykopac mozesz: &2diamentowym, zelaznym i kamiennym kilofem&7."
- send " &6+ &7Szansa: &6{@ec} procent"
- send " &8» &2Ruda Zlota:"
- send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
- send " &6+ &7Szansa: &6{@gc} procent"
- send " &8» &2Ruda Zelaza:"
- send " &6+ &7Wykopac mozesz: &2diamentowym, zelaznym i kamiennym kilofem&7."
- send " &6+ &7Szansa: &6{@ic} procent"
- send " &8» &2Perla Endermana:"
- send " &6+ &7Wykopac mozesz: &2diamentowym i zelaznym kilofem&7."
- send " &6+ &7Szansa: &6{@epc} procent"
- send "&7&m----------------------------------------"
- execute console command "/playsound note.pling %player%"
- on mine of diamond ore:
- cancel event
- set block to air
- send " &6» &7Drop z tej rudy jest wylaczony!"
- send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
- stop
- on mine of emerald ore:
- cancel event
- set block to air
- send " &6» &7Drop z tej rudy jest wylaczony!"
- send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
- stop
- on mine of gold ore:
- cancel event
- set block to air
- send " &6» &7Drop z tej rudy jest wylaczony!"
- send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
- stop
- on mine of iron ore:
- cancel event
- set block to air
- send " &6» &7Drop z tej rudy jest wylaczony!"
- send " &6» &7Aby zobaczyc procent szans na drop wpisz &2/drop&7!"
- stop
- on mine of stone:
- cancel event
- set block to air
- damage player's tool by 1
- if {cb.%player%} is true:
- drop 1 cobblestone
- give 2 xp to the player
- if chance of 100%:
- if chance of {@epc}%:
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 ender pearl to the player's inventory
- give 25 xp to the player
- add 26 to {pkt.%player%}
- send " &6» &7Trafiles na: &2perle endermana &7(&6+&326 pkt&7)"
- stop
- if chance of {@ic}%:
- if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
- add 1 iron ore to the player's inventory
- give 2 xp to the player
- add 3 to {pkt.%player%}
- send " &6» &7Trafiles na: &2rude zelaza &7(&6+&33 pkt&7)"
- stop
- if chance of {@gc}%:
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 gold ore to the player's inventory
- give 5 xp to the player
- add 6 to {pkt.%player%}
- send " &6» &7Trafiles na: &2rude zlota &7(&6+&36 pkt&7)"
- stop
- if chance of {@ec}%:
- if player is holding diamond pickaxe or iron pickaxe:
- if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
- add 1 emerald to the player's inventory
- give 4 xp to the player
- add 5 to {pkt.%player%}
- send " &6» &7Trafiles na: &2emerald &7(&6+&35 pkt&7)"
- stop
- if chance of {@dc}%:
- if player's y-coordinate is less than {@yd}:
- if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- chance of 20%:
- add 3 diamond to the player's inventory
- give 17 xp to the player
- add 18 to {pkt.%player%}
- send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
- stop
- chance of 10%:
- add 4 diamond to the player's inventory
- give 26 xp to the player
- add 27 to {pkt.%player%}
- send " &6» &7Trafiles na: &24 diamenty &7(&6+&327 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- chance of 20%:
- add 3 diamond to the player's inventory
- give 17 xp to the player
- add 18 to {pkt.%player%}
- send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if {cb.%player%} is false:
- give 2 xp to the player
- if chance of 100%:
- if chance of {@epc}%:
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 ender pearl to the player's inventory
- give 25 xp to the player
- add 26 to {pkt.%player%}
- send " &6» &7Trafiles na: &2perle endermana &7(&6+&326 pkt&7)"
- stop
- if chance of {@ic}%:
- if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
- add 1 iron ore to the player's inventory
- give 2 xp to the player
- add 3 to {pkt.%player%}
- send " &6» &7Trafiles na: &2rude zelaza &7(&6+&33 pkt&7)"
- stop
- if chance of {@gc}%:
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 gold ore to the player's inventory
- give 5 xp to the player
- add 6 to {pkt.%player%}
- send " &6» &7Trafiles na: &2rude zlota &7(&6+&36 pkt&7)"
- stop
- if chance of {@ec}%:
- if player is holding diamond pickaxe or iron pickaxe:
- if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
- add 1 emerald to the player's inventory
- give 4 xp to the player
- add 5 to {pkt.%player%}
- send " &6» &7Trafiles na: &2emerald &7(&6+&35 pkt&7)"
- stop
- if chance of {@dc}%:
- if player's y-coordinate is less than {@yd}:
- if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- chance of 20%:
- add 3 diamond to the player's inventory
- give 17 xp to the player
- add 18 to {pkt.%player%}
- send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
- stop
- chance of 10%:
- add 4 diamond to the player's inventory
- give 26 xp to the player
- add 27 to {pkt.%player%}
- send " &6» &7Trafiles na: &24 diamenty &7(&6+&327 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- chance of 20%:
- add 3 diamond to the player's inventory
- give 17 xp to the player
- add 18 to {pkt.%player%}
- send " &6» &7Trafiles na: &23 diamenty &7(&6+&318 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
- chance of 30%:
- add 2 diamond to the player's inventory
- give 12 xp to the player
- add 13 to {pkt.%player%}
- send " &6» &7Trafiles na: &22 diamenty &7(&6+&313 pkt&7)"
- stop
- else:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if player is holding diamond pickaxe or iron pickaxe:
- add 1 diamond to the player's inventory
- give 6 xp to the player
- add 7 to {pkt.%player%}
- send " &6» &7Trafiles na: &2diament &7(&6+&37 pkt&7)"
- stop
- if {pkt.%player%} is larger than 60:
- if {lvl.%player%} is less than 2:
- set {lvl.%player%} to 2
- send " &6» &7Awansowales na: &32 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 120:
- if {lvl.%player%} is less than 3:
- set {lvl.%player%} to 3
- send " &6» &7Awansowales na: &33 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 180:
- if {lvl.%player%} is less than 4:
- set {lvl.%player%} to 4
- send " &6» &7Awansowales na: &34 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 240:
- if {lvl.%player%} is less than 5:
- set {lvl.%player%} to 5
- send " &6» &7Awansowales na: &35 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 320:
- if {lvl.%player%} is less than 6:
- set {lvl.%player%} to 6
- send " &6» &7Awansowales na: &36 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 460:
- if {lvl.%player%} is less than 7:
- set {lvl.%player%} to 7
- send " &6» &7Awansowales na: &37 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 580:
- if {lvl.%player%} is less than 8:
- set {lvl.%player%} to 8
- send " &6» &7Awansowales na: &38 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 760:
- if {lvl.%player%} is less than 9:
- set {lvl.%player%} to 9
- send " &6» &7Awansowales na: &39 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 960:
- if {lvl.%player%} is less than 10:
- set {lvl.%player%} to 10
- send " &6» &7Awansowales na: &310 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 1140:
- if {lvl.%player%} is less than 11:
- set {lvl.%player%} to 11
- send " &6» &7Awansowales na: &311 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 1320:
- if {lvl.%player%} is less than 12:
- set {lvl.%player%} to 12
- send " &6» &7Awansowales na: &312 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 1540:
- if {lvl.%player%} is less than 13:
- set {lvl.%player%} to 13
- send " &6» &7Awansowales na: &313 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 1760:
- if {lvl.%player%} is less than 14:
- set {lvl.%player%} to 14
- send " &6» &7Awansowales na: &314 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 1980:
- if {lvl.%player%} is less than 15:
- set {lvl.%player%} to 15
- send " &6» &7Awansowales na: &315 Poziom&7!"
- broadcast "&7Gracz &3%player% &7awansowal na &315 poziom&7!"
- stop
- if {pkt.%player%} is larger than 2180:
- if {lvl.%player%} is less than 16:
- set {lvl.%player%} to 16
- send " &6» &7Awansowales na: &316 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 2300:
- if {lvl.%player%} is less than 17:
- set {lvl.%player%} to 17
- send " &6» &7Awansowales na: &317 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 2520:
- if {lvl.%player%} is less than 18:
- set {lvl.%player%} to 18
- send " &6» &7Awansowales na: &318 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 2740:
- if {lvl.%player%} is less than 19:
- set {lvl.%player%} to 19
- send " &6» &7Awansowales na: &319 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 2960:
- if {lvl.%player%} is less than 20:
- set {lvl.%player%} to 20
- send " &6» &7Awansowales na: &320 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 3180:
- if {lvl.%player%} is less than 21:
- set {lvl.%player%} to 21
- send " &6» &7Awansowales na: &321 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 3400:
- if {lvl.%player%} is less than 22:
- set {lvl.%player%} to 22
- send " &6» &7Awansowales na: &322 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 3620:
- if {lvl.%player%} is less than 23:
- set {lvl.%player%} to 23
- send " &6» &7Awansowales na: &323 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 3840:
- if {lvl.%player%} is less than 24:
- set {lvl.%player%} to 24
- send " &6» &7Awansowales na: &324 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 4060:
- if {lvl.%player%} is less than 25:
- set {lvl.%player%} to 25
- send " &6» &7Awansowales na: &325 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 4280:
- if {lvl.%player%} is less than 26:
- set {lvl.%player%} to 26
- send " &6» &7Awansowales na: &326 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 4500:
- if {lvl.%player%} is less than 27:
- set {lvl.%player%} to 27
- send " &6» &7Awansowales na: &327 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 4720:
- if {lvl.%player%} is less than 28:
- set {lvl.%player%} to 28
- send " &6» &7Awansowales na: &328 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 4940:
- if {lvl.%player%} is less than 29:
- set {lvl.%player%} to 29
- send " &6» &7Awansowales na: &329 Poziom&7!"
- stop
- if {pkt.%player%} is larger than 5160:
- if {lvl.%player%} is less than 30:
- set {lvl.%player%} to 30
- send " &6» &7Awansowales na: &630 Poziom&7!"
- broadcast "&7Gracz &3%player% &7awansowal na &330 poziom&7!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement