Skocz do zawartości
  • 0

enchantowane wiadro


Studziak

Pytanie

Witam, potrzebuje skrypt na coś takiego jak enchantowane wiadro. Działa ono tak że zużywa sie ono po 250 użyciach i działa jak normalne wiadro z wodą. Jego craft wygląda następująco: 
         wiadro wody | żelazo | wiadro wody
         żelazo         | mending | żelazo
         wiadro wody| wiadro | wiadro wody 

Nazwa to zenchantowane wiadro z enchantem unbreaking 10

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on load:
	register new shapeless recipe for water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" using water bucket, iron ingot, water bucket, water bucket, enchanted book of mending 1, iron ingot, water bucket, bucket, water bucket
on bucket empty:
	if name of player's tool is "&6MEGA WIADRO":
		set {_l} to uncolored lore of player's tool
		replace all "Uzycia" and " " with "" in {_l}
		set {_l} to {_l} parsed as integer - 1
		{_l} > 0
		set player's tool to water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6%{_l}%"

 

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/#findComment-243392
Udostępnij na innych stronach

  • 0
6 godzin temu, xAxee napisał:

on load:
	register new shapeless recipe for water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" using water bucket, iron ingot, water bucket, water bucket, enchanted book of mending 1, iron ingot, water bucket, bucket, water bucket
on bucket empty:
	if name of player's tool is "&6MEGA WIADRO":
		set {_l} to uncolored lore of player's tool
		replace all "Uzycia" and " " with "" in {_l}
		set {_l} to {_l} parsed as integer - 1
		{_l} > 0
		set player's tool to water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6%{_l}%"

 

Ogólnie to receptura nie działa :(

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/#findComment-243470
Udostępnij na innych stronach

  • 0
5 godzin temu, xdzikuu napisał:

Spróbuj zrestartować serwer, użyć komendy /sk reload all, /sk reload <nazwa skryptu w którym jest receptura>

Żadne błędy nie wychodzą ale skrypt nie ma sam w sobie działania, nazwałem wiadro tak jak powinno być nazwane i nie działało, sam craft który podałem i tak nie działa :/

Edytowane przez HeezQ
HeezQ

Poprawiam błędy

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/#findComment-243535
Udostępnij na innych stronach

  • 0
on load:
	register new shaped recipe for water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" using water bucket, iron ingot, water bucket, water bucket, enchanted book of mending 1, iron ingot, water bucket, bucket, water bucket
command /wiadro [<text>]:
	permission: *
	trigger:
		add water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" to player
on bucket empty:
	if name of player's tool is "&6MEGA WIADRO":
		set {_l} to uncolored lore of player's tool
		replace all "Uzycia" and " " with "" in {_l}
		set {_l} to {_l} parsed as integer - 1
		{_l} > 0
		set player's tool to water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6%{_l}%"
W dniu 25.04.2020 o 14:50, Studziak napisał:

Żadne błędy nie wychodzą ale skrypt nie ma sam w sobie działania, nazwałem wiadro tak jak powinno być nazwane i nie działało, sam craft który podałem i tak nie działa :/

Lore też mu dałeś?

 

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/#findComment-244232
Udostępnij na innych stronach

  • 0
1 minutę temu, xAxee napisał:

on load:
	register new shaped recipe for water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" using water bucket, iron ingot, water bucket, water bucket, enchanted book of mending 1, iron ingot, water bucket, bucket, water bucket
command /wiadro [<text>]:
	permission: *
	trigger:
		add water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6250" to player
on bucket empty:
	if name of player's tool is "&6MEGA WIADRO":
		set {_l} to uncolored lore of player's tool
		replace all "Uzycia" and " " with "" in {_l}
		set {_l} to {_l} parsed as integer - 1
		{_l} > 0
		set player's tool to water bucket named "&6MEGA WIADRO" with lore "&7Uzycia &6%{_l}%"

Lore też mu dałeś?

 

raczej ta, ale dla pewności już sprawdzam i dam znać 

 

Odnośnik do komentarza
https://skript.pl/temat/38576-enchantowane-wiadro/#findComment-244234
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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