AdamGrzegorz

skChestFinder by AdamGrzegorz

Sep 27th, 2014
1,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. # skChestFinder
  2.  
  3. options:
  4. item1: diamond
  5. item2: dirt
  6. item3: wood
  7. item4: diamond sword
  8. item5: enchanted golden apple
  9. item6: 5 diamond
  10. item7: 8 diamond
  11. item8: 11 diamond
  12. item9: diamond of infinity 10
  13. item10: apple of sharpness 5 named "omg"
  14. item11: 2 bedrock named "hehe"
  15. item12: diamond pickaxe of efficiency 200
  16. item13: 5 dirt named "siema"
  17. item14: wood of unbreaking 1
  18. item15: 7 golden sword
  19.  
  20. command /skcf [<text>] [<text>] [<item>]:
  21. permission: skcf.*
  22. permission message: &4Nie masz do tego uprawnien!
  23. aliases: skchestfinder, skchestf, skcfinder
  24. trigger:
  25. if arg 1 is not set:
  26. send "&2*******************"
  27. send "&b/skcf daj [gracz]"
  28. send "&b/skcf drop"
  29. send "&b/skcf dajklucz [gracz]"
  30. send "&b/skcf czysc"
  31. send "&2*******************"
  32. if arg 1 is "give" or "daj" or "dodaj" or "g" or "d":
  33. if arg 2 is set:
  34. give chest named "&6Tajemnicza Skrzynka" to the arg 2
  35. send "&2Gracz %arg 2% otrzymal tajemnicza skrzynie!"
  36. else:
  37. give 1 chest named "&6Tajemnicza Skrzynka" to the player
  38. send "&2Otrzymales Tajemnicza Skrzynke!"
  39. if arg 1 is "drop":
  40. send "&2Drop ze skrzynek:"
  41. send "&a%{drop::*}%"
  42. if arg 1 is "clear" or "czysc" or "wyczysc":
  43. clear {drop::*}
  44. send "&cZresetowales drop!"
  45. if arg 1 is "dajklucz":
  46. if arg 2 is set:
  47. give 1 tripwire hook of unbreaking 10 named "&6Klucz" to the arg 2
  48. send "&2Gracz %arg 2% otrzymal 1 klucz!"
  49. else:
  50. give 1 tripwire hook of unbreaking 10 named "&6Klucz" to the player
  51. send "&2Otrzymales 1 klucz!"
  52. on load:
  53. add {@item1} to {drop::*}
  54. add {@item2} to {drop::*}
  55. add {@item3} to {drop::*}
  56. add {@item4} to {drop::*}
  57. add {@item5} to {drop::*}
  58. add {@item6} to {drop::*}
  59. add {@item7} to {drop::*}
  60. add {@item8} to {drop::*}
  61. add {@item9} to {drop::*}
  62. add {@item10} to {drop::*}
  63. add {@item11} to {drop::*}
  64. add {@item12} to {drop::*}
  65. add {@item13} to {drop::*}
  66. add {@item14} to {drop::*}
  67. add {@item15} to {drop::*}
  68. stop
  69.  
  70. on place a chest:
  71. if player's tool is chest named "&6Tajemnicza Skrzynka":
  72. cancel event
  73. set event-block to air
  74. if player has tripwire hook of unbreaking 10 named "&6Klucz":
  75. remove 1 chest named "&6Tajemnicza Skrzynka" from the player
  76. remove 1 tripwire hook named "&6Klucz" from the player
  77. drop a random item out of {drop::*}
  78. show mob spawner flames at event-block
  79. else:
  80. send "&cMusisz miec klucz w ekwipunku!"
  81.  
  82. on place a tripwire hook:
  83. if player's tool is a tripwire hook named "&6Klucz":
  84. cancel event
  85. send "&cNie mozesz postawic klucza!"
  86.  
  87.  
  88.  
  89. on death:
  90. if victim is zombie or spider or skeleton or slime or ghast or horse or silverfish:
  91. chance of 0.1%:
  92. drop 1 chest named "&6Tajemnicza Skrzynka" at the victim
  93. send "&aUdalo ci sie wydropic Tajemnicza Skrzynke!" to attacker
  94. chance of 0.01%:
  95. drop 1 tripwire hook of unbreaking 10 named "&6Klucz" at the victim
  96. send "&aUdalo ci sie wydropic Klucz do Tajemniczej Skrzynki!" to attacker
Advertisement
Add Comment
Please, Sign In to add comment