Advertisement
haverex

Untitled

Oct 6th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. on rightclick on entity:
  2. entity's display name is "Kowal Teodor":
  3. set {item.%player%} to false
  4. clear {itemid.%player%}
  5. execute console command "kowal 1 %player%"
  6.  
  7.  
  8.  
  9.  
  10.  
  11. on inventory click:
  12. if clicked item is any sword or axe:
  13. if "%clicked type%" is "RIGHT":
  14. set {_Slot} to clicked slot
  15. set {itemid.%player%} to clicked item
  16. set slot {_Slot} of player to air
  17. set {item.%player%} to true
  18. execute console command "kowal 1 %player%"
  19.  
  20.  
  21. command /kowal [<text>] [<player>]:
  22. permission: admin
  23. trigger:
  24. if arg 1 is "oddaj":
  25. send "dziala" to player-arg
  26. give 1 of {itemid.%player-arg%} to player-arg
  27. set {item.%player-arg%} to false
  28. clear {itemid.%player-arg%}
  29. execute console command "kowal 1 %player-arg%"
  30. if arg 1 is "1":
  31. open chest with 3 rows named "&6&lKowal Teodor" to player-arg
  32. wait 2 tick
  33. play "CHEST_OPEN" to player-arg at volume 1
  34. format slot 17 of player-arg with 1 of 35:5 named "&6&lUlepsz" with lore "&b=======================================||&2Ulepszenie na 1:||&aKamien 10x||&2Ulepszenie na 2:||&aMagiczna stal 3x||&2Ulepszenie na 3:||&aKrwawy Kamień 2x||&a||&cJeżeli ulepszenie się niepowodzi item zostanie usunięty||&b=======================================" to close then run ""
  35. format slot 0 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  36. format slot 1 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  37. format slot 2 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  38. format slot 9 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  39. format slot 11 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  40. format slot 18 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  41. format slot 19 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  42. format slot 20 of player-arg with 1 of 160:0 named "&2" with lore "" to be unstealable
  43. format slot 22 of player-arg with 1 of anvil named "&6&lSystem ulepszania" with lore "&b=======================================||&2Ulepszenie na 1:||&aSzansa 50%%||&aPodnosi Atak/Obrone o 2%%||&2Ulepszenie na 2:||&aSzansa 30%%||&aPodnosi Atak/Obrone o 1%%||&aZmniejsza szybkosc ataku o 2%%||&2Ulepszenie na 3:||&aSzans: 10%%||&aPodnosi Wszystkie atrybuty o 4%%||&b=======================================" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement