# TherCars # wersja 1.1 # by GalaxyGamer #===============LICENCJA================# # Zezwalam na: # - modyfikowanie skryptu na własne potrzeby # Nie zezwalam na: # - publikowanie skryptu bez mojej wiedzy (prośbę o publikację możesz zgłosić na email: marcin56544@wp.pl # - zarabianie na skrypcie # - podszywanie się pod autora i usuwanie informacji o autorze # - wykorzystywanie części kodu w swoich skryptach (można 1-5 linijek skopiować ;p) #=======================================# # kod: on vehicle enter: wait 0.11 second while player's vehicle is a minecart: #tu lepiej nic nie zmieniac loop 4 times: loop 10 times: {paliwo::%player%} is greater than 0: wait 0.028 second push the player's vehicle upwards with speed 0.32 wait 0.028 second push the player's vehicle in the horizontal direction of the player with speed 100 push the player's vehicle downwards at speed 0.4 block left or right or behind or forward player's vehicle is not air or long grass or 175 or water or lava: block under player's vehicle is not air or long grass or 175 or water or lava: thrust the player's vehicle 1.2 blocks upwards increase {paliwo::%player%} by -0.1 block under player is air: push the player's vehicle downwards at speed 8 block behind player's vehicle is water: increase {paliwo::%player%} by -0.2 else: send "&6&lUzyj wegla, aby zasilic samochod" to player stop increase {paliwo::%player%} by -0.5 #dalej juz mozesz zmieniac send "&6&lStan paliwa: %{paliwo::%player%}%" to player on rightclick with coal: vehicle of the player is a minecart: increase {paliwo::%player%} by 20 {paliwo::%player%} is greater than 20: send "&a&lZasililes samochod o 20 jednostek. Stan paliwa: %{paliwo::%player%}%." to player remove 1 coal:1 from the player's inventory else: send "&a&lZasililes samochod o 20 jednostek. Stan paliwa: %{paliwo::%player%}%. Wsiadz ponownie do samochodu." to player remove 1 coal from the player's inventory on rightclick with coal:1: vehicle of the player is a minecart: increase {paliwo::%player%} by 16 {paliwo::%player%} is greater than 16: send "&a&lZasililes samochod o 16 jednostek. Stan paliwa: %{paliwo::%player%}%." to player remove 1 coal:1 from the player's inventory else: send "&a&lZasililes samochod o 16 jednostek. Stan paliwa: %{paliwo::%player%}%. Wsiadz ponownie do samochodu." to player