knugi

Untitled

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