knugi

Uniwersalny generator [Skript] [Minecraft]

Nov 10th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. #Skrypt zrobiony przez Knugi
  2. #Pluginy wymagane:
  3. #-Skript
  4. #-SkQuerry
  5.  
  6.  
  7. options:
  8. #----------Opcje ogólne---------#
  9.  
  10. prefix: &a[&cCegla&a] &7 #Prefix na wiadomosciach
  11. block: end stone #Block (staly) jaki ma byc uzywany za stoniarke
  12. named: &cCeglarka #Nazwa bloku stoniarki
  13. blockup: brick #Angielskie nazwy !!
  14. replace: 3 #Czas po jakim ma się odrodzić blok
  15. chance: 100 #Procenty szansy wylocenia spowrotem ceglarki
  16. variables: generator.k #Nazwa variablesu // Radzę nie zmieniać :) // Przydatne jak chcemy mieć np z tego skryptu stoniarke i inne rzeczy :)
  17.  
  18. #----------Wiadomości-----------#
  19. placeCannot: &7Nie mozesz postawic tutaj ceglarki
  20. createSuc: &7Utworzono ceglarke
  21. createFail: &cCos zle robisz...
  22. breakBlock: &7Usunales ceglarke
  23.  
  24. #----------Crafting-------------#
  25. 1.slot.item: cobblestone #Item jaki ma byc ustawiony w craftingu w slocie 1
  26. 2.slot.item: cobblestone #Item jaki ma byc ustawiony w craftingu w slocie 2
  27. 3.slot.item: cobblestone
  28. 4.slot.item: cobblestone
  29. 5.slot.item: cobblestone
  30. 6.slot.item: cobblestone
  31. 7.slot.item: cobblestone
  32. 8.slot.item: cobblestone
  33. 9.slot.item: cobblestone
  34.  
  35. #----------Kod------------------#
  36. on place of {@block}:
  37. if name of player's tool is "{@named}":
  38. if player cannot build at event-block:
  39. send "{@prefix}{@placeCannot}"
  40. stop
  41. if block above event-block is air:
  42. loop {{@variables}::*}:
  43. if location of block below event-block is loop-value:
  44. send "{@prefix}{@createFail}"
  45. cancel event
  46. stop
  47. set block above event-block to {@blockup}
  48. add location of event-block to {{@variables}::*}
  49. send "{@prefix}{@createSuc}"
  50. stop
  51. send "{@prefix}{@createFail}"
  52. cancel event
  53. stop
  54. on break of {@block}:
  55. loop {{@variables}::*}:
  56. if location of event-block is loop-value:
  57. cancel event
  58. set event-block to air
  59. set block above event-block to air
  60. remove location of event-block from {{@variables}::*}
  61. chance of {@chance}%:
  62. drop {@block} named "{@named}"
  63. loop 1 times:
  64. send "{@prefix}{@breakBlock}"
  65.  
  66. on break of {@blockup}:
  67. loop {{@variables}::*}:
  68. if location of block below event-block is loop-value:
  69. loop {@replace} times:
  70. wait 1 second
  71. if block below event-block is not {@block}:
  72. stop
  73. set event-block to {@blockup}
  74. on script load:
  75. register new shaped recipe for {@block} named "{@named}" using {@1.slot.item}, {@2.slot.item}, {@3.slot.item}, {@4.slot.item}, {@5.slot.item}, {@6.slot.item}, {@7.slot.item}, {@8.slot.item}, {@9.slot.item}
Advertisement
Add Comment
Please, Sign In to add comment