Skocz do zawartości
  • 0

Problem ze skryptem na auta


kubusiek06x

Pytanie

Hej znalazłem na necie skrypt i chciałbym żeby zwykłym węglem się nie dało uzupełniać paliwa tylko Węglem który się nazywa Gaz

Spoiler

# TherCars
# wersja 1.1
# by GalaxyGamer
# kod:
on vehicle enter:
        wait 0.11 second
        while player's vehicle is a minecart:
                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
                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 named 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

 

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
# TherCars
# wersja 1.1
# by GalaxyGamer
# kod:
on vehicle enter:
        wait 0.11 second
        while player's vehicle is a minecart:
                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
                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 named 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:
       if player's tool is coal named "Gaz":
                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

 

Edytowane przez Inkrypto
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...