Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Skrypt na losowe tp za pomocą komendy.


In-ferN-O

Rekomendowane odpowiedzi

Opublikowano

options:
    x_min: 500 #LosowyTP Gracz min. odleglosc X
    x_max: 1000 #LosowyTP Gracz max. odleglosc X
    z_min: 500 #LosowyTP Gracz min. odleglosc Z
    z_max: 1000 #LosowyTP Gracz max. odleglosc Z
Command /losowytp:
    trigger:
        if player has permissions "losowytp.komenda":
            set {_x} to random integer between {@x_min} and {@x_max}
            set {_y} to 256
            set {_z} to random integer between {@z_min} and {@z_max}
            execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"

Opublikowano


options:

xMin: -5000

xMax: 5000

zMin: -5000

zMax: 5000

yMin: 70

yMax: 90

world: world

aliases:

blocktpr = 1, 2, 3, 4, 12, 13, 49, 7, 8, 5, 18, 172, 24, 9

on rightclick on stone button:

block behind target block is sponge:

set {_targetx} to a random integer between {@xMin} and {@xMax}

set {_targetz} to a random integer between {@zMin} and {@zMax}

set {_targety} to a random integer between {@yMin} and {@yMax}

set {_random.pos} to location at {_targetx}, {_targety}, {_targetz}

biome at {_random.pos} is ocean or river or deep ocean:

send "&4Blad! &cLokacja znajduje sie na oceanie!"

else:

loop blocks above the block at location of {_random.pos}:

if block at location of loop-block is blocktpr:

if block above the block at location of loop-block is air or water:

if block 1 above the block at location of loop-block is air:

if block 2 above the block at location of loop-block is air:

set {_pos} to block above the block at location of loop-block

apply speed 3 to the player for 15 seconds

apply regeneration 10 to the player for 10 seconds

send "&7Przeteleportowano na kordynaty &6x: %{_targetx}% z: %{_targetz}%&7!"

add 64 cooked porkchop to player

teleport player to {_pos}

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...