Skocz do zawartości
  • 0

Kompas


xJedynskir

Pytanie

Witam mam problem z tym skryptem:

on join:
    add compass of unbreaking 3 to player's inventory
on quit:
    remove compass from player's inventory
on right click:
    if player's tool is compass of unbreaking 10:
        wait a tick
        open chest with 1 rows named "x" to player
        set player's current inventory's slot 4 to dirt named "Spawn"
on inventory click:
    if "%inventory name of player's current inventory%" is "x":
        cancel event
        if "%clicked slot%" is "4":
            bungeecord connect player to "two"

Chodzi o to ze po kliknieciu ppm wyswietla sie wiadomosc: Nothing to pass through!

pomoze ktos?
 

Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/
Udostępnij na innych stronach

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on join:
	add compass of unbreaking 3 to player's inventory
on quit:
	remove compass of unbreaking 3 from player's inventory
on right click:
	if player's tool is compass of unbreaking 3:
		cancel event
		wait a tick
		open chest with 1 rows named "x" to player
		set player's current inventory's slot 4 to dirt named "Spawn"
on inventory click:
	if "%inventory name of player's current inventory%" is "x":
		cancel event
		if "%clicked slot%" is "4":
			bungeecord connect player to "two"

 

Edytowane przez VIPEQ
Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/#findComment-217050
Udostępnij na innych stronach

  • 0
47 minut temu, xJedynskir napisał:

Nadal nie dziala

Słuchaj chcemy pomóc, jak wszystkim działa a tb nie, to znaczy że albo brak ci dodatku albo coś nie halo z pluginem więc:
Jaka wersja serwera?
umbaska czy skript?

Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/#findComment-217058
Udostępnij na innych stronach

  • 0

Niema wyskakujacego bledu tylko poprostu zamiast otwierania sie gui wyskakuje na czacie nothing to pass through! czyli to cos z essentials tutaj jest kod ktory mam w skrypcie:

on join:
	add compass of unbreaking 3 to player's inventory
on quit:
	remove compass of unbreaking 3 from player's inventory
on right click:
	if player's tool is compass of unbreaking 3:
		cancel event
		wait a tick
		open chest with 1 rows named "x" to player
		set player's current inventory's slot 4 to dirt named "Spawn"
on inventory click:
	if "%inventory name of player's current inventory%" is "x":
		cancel event
		if "%clicked slot%" is "4":
			bungeecord connect player to "two"
Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/#findComment-217065
Udostępnij na innych stronach

  • 0
2 minuty temu, xJedynskir napisał:

Niema wyskakujacego bledu tylko poprostu zamiast otwierania sie gui wyskakuje na czacie nothing to pass through! czyli to cos z essentials tutaj jest kod ktory mam w skrypcie:


on join:
	add compass of unbreaking 3 to player's inventory
on quit:
	remove compass of unbreaking 3 from player's inventory
on right click:
	if player's tool is compass of unbreaking 3:
		cancel event
		wait a tick
		open chest with 1 rows named "x" to player
		set player's current inventory's slot 4 to dirt named "Spawn"
on inventory click:
	if "%inventory name of player's current inventory%" is "x":
		cancel event
		if "%clicked slot%" is "4":
			bungeecord connect player to "two"

To nie essentials tylko world edit, możesz przechodzić przez ściany przy pomocy kompasu, wyłącz to w world edit i bedzie git lub po prostu gracz nie bedzie mial takiego problemu bo nie ma permisji

Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/#findComment-217066
Udostępnij na innych stronach

  • 0

A mam do ciebie jeszcze jedno pytanie jak do tego kodu dodac nazwe przedmiotu?

on join:
    add compass of unbreaking to player's inventory
on quit:
    remove compass of unbreaking from player's inventory
on right click:
    if player's tool is compass of unbreaking:
        cancel event
        wait a tick
        open chest with 1 rows named "x" to player
        set player's current inventory's slot 4 to dirt named "Spawn"
on inventory click:
    if "%inventory name of player's current inventory%" is "x":
        cancel event
        if "%clicked slot%" is "4":
            bungeecord connect player to "two"On Hunger Meter Change:
    cancel event
on damage:
    damage is caused by fall:
        cancel event
on drop of compass:
    cancel event
on right click on entity:
    if name of clicked entity contains "Survival":
        bungeecord connect player to "two"

Odnośnik do komentarza
https://skript.pl/temat/33631-kompas/#findComment-217070
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ę...