knugi

Uniwersalny generator [Skript] [Minecraft]

Nov 10th, 2014
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 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. #shaped - na idealnym ustawieniu
  26. #shapeless - na obojetnie jakim ustawieniu
  27.  
  28. craft: shapeless # shaped/shapeless
  29. 1.slot.item: cobblestone
  30. 2.slot.item: cobblestone
  31. 3.slot.item: cobblestone
  32. 4.slot.item: cobblestone
  33. 5.slot.item: cobblestone
  34. 6.slot.item: cobblestone
  35. 7.slot.item: cobblestone
  36. 8.slot.item: air
  37. 9.slot.item: cobblestone
  38.  
  39. #----------Kod------------------#
  40. on place of {@block}:
  41. if name of player's tool is "{@named}":
  42. if player cannot build at event-block:
  43. send "{@prefix}{@placeCannot}"
  44. stop
  45. if block above event-block is air:
  46. loop {{@variables}::*}:
  47. if location of block below event-block is loop-value:
  48. send "{@prefix}{@createFail}"
  49. cancel event
  50. stop
  51. set block above event-block to {@blockup}
  52. add location of event-block to {{@variables}::*}
  53. send "{@prefix}{@createSuc}"
  54. stop
  55. send "{@prefix}{@createFail}"
  56. cancel event
  57. stop
  58. on break of {@block}:
  59. loop {{@variables}::*}:
  60. if location of event-block is loop-value:
  61. cancel event
  62. set event-block to air
  63. set block above event-block to air
  64. remove location of event-block from {{@variables}::*}
  65. chance of {@chance}%:
  66. drop {@block} named "{@named}"
  67. loop 1 times:
  68. send "{@prefix}{@breakBlock}"
  69.  
  70. on break of {@blockup}:
  71. loop {{@variables}::*}:
  72. if location of block below event-block is loop-value:
  73. loop {@replace} times:
  74. wait 1 second
  75. if block below event-block is not {@block}:
  76. stop
  77. set event-block to {@blockup}
  78. on script load:
  79. register new {@craft} 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