Guest User

Untitled

a guest
Feb 8th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. variables:
  2. {diamenty.%player%} = 0
  3. {zloto.%player%} = 0
  4. {zelazo.%player%} = 0
  5. options:
  6. diament: 2 #Ile ma byc % na drop diamentu.
  7. zloto: 3 #Ile ma byc % na drop zlota.
  8. zelazo: 5 #Ile ma byc % na drop zelaza.
  9. skrzynia: 3 #Ile ma byc % na drop skrzyni.
  10. #--------------------------------------------------------------------------------#
  11. item1: diamond pickaxe #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
  12. szansa1: 30 #Ile ma byc % na drop danego itemu
  13. item2: ender pearl #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
  14. szansa2: 30 #Ile ma byc % na drop danego itemu
  15. item3: 8 wood #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
  16. szansa3: 50 #Ile ma byc % na drop danego itemu
  17. item4: 16 arrow #Jaki ma byc item dropiony ze skrzyni (dropia losowo)
  18. szansa4: 30 #Ile ma byc % na drop danego itemu
  19. command /kamien [<text>]:
  20. trigger:
  21. if arg 1 is not set:
  22. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  23. send "&5>> &8/kamien statystyki &r- &6Pokazuje wykopane surowce."
  24. send "&5>> &8/kamien drop &r- &6Pokazuje drop ze stone."
  25. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  26. if arg 1 is "drop":
  27. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  28. send "&bDiament : &8{@diament}%"
  29. send "&6Zloto : &8{@zloto}%"
  30. send "Zelazo : &8{@zelazo}%"
  31. send "&eSkrzynia : &8{@skrzynia}%"
  32. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  33. if arg 1 is "statystyki":
  34. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  35. send "&bDiament : &8%{diamenty.%player%}%"
  36. send "&6Zloto : &8%{zloto.%player%}%"
  37. send "Zelazo : &8%{zelazo.%player%}%"
  38. send "&6=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  39. on mine of stone:
  40. if chance of {@diament}%:
  41. drop diamond
  42. add 1 to {diamenty.%player%}
  43. send "&aZnalazles&5 >> &bDiament &r[&8+1&r]"
  44. if chance of {@zelazo}%:
  45. drop iron ore
  46. add 1 to {zelazo.%player%}
  47. send "&aZnalazles&5 >> &fZelazo &r[&8+1&r]"
  48. if chance of {@zloto}%:
  49. drop gold ore
  50. add 1 to {zloto.%player%}
  51. send "&aZnalazles&5 >> &6Zloto &r[&8+1&r]"
  52. on place of 146:
  53. if player has permissions "op.op":
  54. set block to trapped chest
  55. else:
  56. cancel event
  57. send "&cNie mozez tego klasc"
  58. on mine of stone:
  59. if chance of {@skrzynia}%:
  60. set block to trapped chest
  61. execute console command "/playsound random.successful_hit %player%"
  62. on rightclick on 146:
  63. set block to air
  64. execute console command "/playsound random.successful_hit %player%"
  65. if chance of {@szansa1}%:
  66. give {@item1} to the player
  67. if chance of {@szansa2}%:
  68. give {@item2} to the player
  69. if chance of {@szansa3}%:
  70. give {@item3} to the player
  71. if chance of {@szansa4}%:
  72. give {@item4} to the player
Advertisement
Add Comment
Please, Sign In to add comment