Skocz do zawartości
  • 0

format slot


nuxiK
 Udostępnij

Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	nazwa-inv: &6Test
	nazwa-1: TEST1
	nazwa-2: TEST2
	lore-1: LOREE
	lore-2: LOREE
on rightclick with anvil:
	close player's inventory
	set {_1} to "Enchantment Table" parsed as item
	set name of {_1} to "{@nazwa-2}"
	set lore of {_1} to "{@lore-2}"
	set {_2} to "Paper" parsed as item
	set name of {_2} to "{@nazwa-1}"
	set lore of {_2} to "{@lore-1}"
	open chest with 3 rows named "{@nazwa-inv}" to player
	loop 27 times:
		set player's current inventory's slot (loop-number - 1) to gray glass pane named "&6Click to close"
	set player's current inventory's slot 12 to {_1}
	set player's current inventory's slot 13 to {_2}
on inventory click:
	if inventory name of current inventory of player is "{@nazwa-inv}":
		cancel event
		close player's inventory
		if clicked slot is not 12 or 13:
			stop
		else:
			if clicked slot is 12:
				execute player command "test2"
			else:
				execute player command "test1"

Proszę :D

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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