Skocz do zawartości
  • 0

Nieenchantowalny kilof


Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on enchant:
	if lore of event-item contains "&cNie można zenchantować":
		send "&cNie możesz zenchantować tego przedmiotu."
		cancel event
command /kilof:
	trigger:
		add diamond pickaxe of efficiency 3 and unbreaking 2 named "&aStartowy kilof" with lore "&cNie można zenchantować" to player
on inventory click:
	if type of clicked inventory is anvil inventory:
		if index of clicked slot is 2:
			if lore of slot 0 of current inventory contains "&cNie można zenchantować":
				if slot 1 of current inventory is diamond pickaxe:
					if enchantments of slot 1 of current inventory is set:
						send "&cNie możesz zenchantować tego przedmiotu."
						cancel event
				else if slot 1 of current inventory is enchanted book:
					send "&cNie możesz zenchantować tego przedmiotu."
					cancel event
			else if lore of slot 1 of current inventory contains "&cNie można zenchantować":
				if slot 0 of current inventory is diamond pickaxe:
					if enchantments of slot 0 of current inventory is set:
						send "&cNie możesz zenchantować tego przedmiotu."
						cancel event
					else:
						set lore of slot 2 of current inventory to "&cNie można zenchantować"

 

Odnośnik do komentarza
https://skript.pl/temat/48739-nieenchantowalny-kilof/#findComment-303676
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ę...