knugi

Untitled

Jul 5th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. on craft:
  2. if event-item is anvil:
  3. cancel event
  4. close player's inventory
  5. remove 4 iron ingot and 3 iron block from player
  6. set {_x} to chest with 1 rows named "&9Wybierz kowadlo"
  7. loop 9 times:
  8. set slot loop-number - 1 of {_x} to gray glass
  9. set slot 2 of {_x} to anvil:0 with lore "&7Wybierz to jezeli chcesz aby:||&7 Stworzone kowadlo bylo &fzwykle."
  10. set slot 6 of {_x} to anvil:0 named "&aNaprawa" with lore "&7Wybierz to jezeli chesz aby:||&7 Stworzone kowadlo bylo &anaprawcze"
  11. open {_x} to player
  12. on inventory click:
  13. if inventory name of player's current inventory is "&9Wybierz kowadlo":
  14. cancel event
  15. if clicked slot is 2:
  16. set {temp.%player%} to true
  17. close player's inventory
  18. give anvil:0 to player
  19. stop
  20. if clicked slot is 6:
  21. set {temp.%player%} to true
  22. close player's inventory
  23. give anvil:0 named "&aKowadlo Naprawcze" to player
  24. stop
  25. stop
  26. on inventory close:
  27. if inventory name of player's current inventory is "&9Wybierz kowadlo":
  28. if {temp.%player%} is set:
  29. clear {temp.%player%}
  30. stop
  31. wait 2 tick
  32. set {_x} to chest with 1 rows named "&9Wybierz kowadlo"
  33. loop 9 times:
  34. set slot loop-number - 1 of {_x} to gray glass
  35. set slot 2 of {_x} to anvil:0 with lore "&7Wybierz to jak chcesz aby:||&7 Stworzone kowadlo bylo &fzwykle."
  36. set slot 6 of {_x} to anvil:0 named "&aNaprawa" with lore "&7Wybierz to jak chesz aby:||&7 Stworzone kowadlo bylo &anaprawcze"
  37. open {_x} to player
  38. on place:
  39. if player's tool is anvil:
  40. if name of player's tool is "&aKowadlo Naprawcze":
  41. add location of event-block to {anvil::*}
  42. stop
  43. on break:
  44. if event-block is anvil or anvil:1:
  45. if player cannot build at event-block:
  46. cancel event
  47. send "&6&lTeren&8: Nie mozesz tu niszczyc!"
  48. stop
  49. loop {anvil::*}:
  50. if "%location of event-block%" is "%loop-value%":
  51. remove loop-value from {anvil::*}
  52. cancel event
  53. set event-block to air
  54. drop anvil:0 named "&aKowadlo Naprawcze"
  55. stop
  56. on rightclick on a 145, 145:1 or 145:2 or 145:3:
  57. loop {anvil::*}:
  58. if "%location of event-block%" is "%loop-value%":
  59. cancel event
  60. if player's balance is larger than or equal to 200:
  61. if player's held item is sword or pickaxe or axe or hoe or fishing_rod or bow or chestplate or boots or helmet or leggings or shovel:
  62. execute player command "/repair" with permission "essentials.repair"
  63. execute console command "eco take %player% 200"
  64. stop
  65. send "&6Nie trzymasz żadnego przedmiotu"
  66. stop
  67. send "&6Nie posiadasz $200!"
  68. stop
Advertisement
Add Comment
Please, Sign In to add comment