Advertisement
Guest User

Skrypt na Jetpack by AdamGrzegorz

a guest
Sep 14th, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. options:
  2. tag: &b|&8 JetPack &b|&7
  3.  
  4. on script load:
  5. register new shaped recipe for diamond boots of infinity 10 named "&8&lJetPack &8(Paliwo: &25L&8)" using redstone torch, flint, redstone torch, lava bucket, air, lava bucket, redstone, redstone, redstone
  6. on rightclick with diamond boots of infinity 10:
  7. cancel event
  8. name of player's tool is not "&8&lJetPack &8(Paliwo: &2LEER&8)":
  9. {jp.wlaczony.%player%} is not set:
  10. set {jp.wlaczony.%player%} to true
  11. loop 5 times:
  12. wait a seconds
  13. player's tool is diamond boots of infinity 10:
  14. set {_num} to 5
  15. set {_paliwo} to loop-number
  16. set {paliwoo.%player%} to {_num}-{_paliwo}
  17. set name of player's tool to "&8&lJetPack &8(Paliwo: &2%{paliwoo.%player%}%L&8)"
  18. set {god.%player%} to true
  19. push the player in direction of player with speed 2.0
  20. else:
  21. send "{@tag} &cMusisz trzymac Jetpack w dloni!"
  22. delete {jp.wlaczony.%player%}
  23. stop
  24. {jp.wlaczony.%player%} is true:
  25. delete {jp.wlaczony.%player%}
  26. set name of player's tool to "&8&lJetPack &8(Paliwo: &2LEER&8)"
  27. send "{@tag} &cSkonczylo ci sie paliwo! :("
  28. wait 1 second
  29. delete {god.%player%}
  30. else:
  31. send "{@tag} &cJuz uzywasz Jetpacka!"
  32. else:
  33. send "{@tag} Nie masz benzyny! Wpisz /odnow aby odnowic! CENA: 10 wegla"
  34. command odnow:
  35. trigger:
  36. player's tool is diamond boots of infinity 10:
  37. name of player's tool is "&8&lJetPack &8(Paliwo: &21L&8)" or "&8&lJetPack &8(Paliwo: &22L&8)" or "&8&lJetPack &8(Paliwo: &23L&8)" or "&8&lJetPack &8(Paliwo: &24L&8)" or "&8&lJetPack &8(Paliwo: &2LEER&8)":
  38. player has 10 coal:
  39. set name of player's tool to "&8&lJetPack &8(Paliwo: &25L&8)"
  40. remove 10 coal from player
  41. send "{@tag}&a Zatankowales jetpack!"
  42. else:
  43. send "{@tag}&c Potrzebujesz 10 sztuk wegla!"
  44. else:
  45. send "{@tag} &cNie mozesz zatankowac pelnego jetpacka!"
  46. else:
  47. send "{@tag} &cMusisz trzymac jetpack aby go zatankowac!"
  48.  
  49. on damage of player:
  50. damage is caused by fall:
  51. {god.%victim%} is true:
  52. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement