Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &b|&8 JetPack &b|&7
- on script load:
- 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
- on rightclick with diamond boots of infinity 10:
- cancel event
- name of player's tool is not "&8&lJetPack &8(Paliwo: &2LEER&8)":
- {jp.wlaczony.%player%} is not set:
- set {jp.wlaczony.%player%} to true
- loop 5 times:
- wait a seconds
- player's tool is diamond boots of infinity 10:
- set {_num} to 5
- set {_paliwo} to loop-number
- set {paliwoo.%player%} to {_num}-{_paliwo}
- set name of player's tool to "&8&lJetPack &8(Paliwo: &2%{paliwoo.%player%}%L&8)"
- set {god.%player%} to true
- push the player in direction of player with speed 2.0
- else:
- send "{@tag} &cMusisz trzymac Jetpack w dloni!"
- delete {jp.wlaczony.%player%}
- stop
- {jp.wlaczony.%player%} is true:
- delete {jp.wlaczony.%player%}
- set name of player's tool to "&8&lJetPack &8(Paliwo: &2LEER&8)"
- send "{@tag} &cSkonczylo ci sie paliwo! :("
- wait 1 second
- delete {god.%player%}
- else:
- send "{@tag} &cJuz uzywasz Jetpacka!"
- else:
- send "{@tag} Nie masz benzyny! Wpisz /odnow aby odnowic! CENA: 10 wegla"
- command odnow:
- trigger:
- player's tool is diamond boots of infinity 10:
- 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)":
- player has 10 coal:
- set name of player's tool to "&8&lJetPack &8(Paliwo: &25L&8)"
- remove 10 coal from player
- send "{@tag}&a Zatankowales jetpack!"
- else:
- send "{@tag}&c Potrzebujesz 10 sztuk wegla!"
- else:
- send "{@tag} &cNie mozesz zatankowac pelnego jetpacka!"
- else:
- send "{@tag} &cMusisz trzymac jetpack aby go zatankowac!"
- on damage of player:
- damage is caused by fall:
- {god.%victim%} is true:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement