Skocz do zawartości
  • 0

magiczne lasso


sworip
 Udostępnij

Pytanie

Witam! Chciał bym sk który by polegał na tym że po kliknięciu prawym w obojętne zwierze np owce nasze lasso "przechowywało by" nasze zwierze do tego zwierze tamto zostawało by zabijane ale nie dawało by nam drop'u. Po kolejnym kliknięciu prawym używając lassa  nasze zwierze by się respiło. [Nie każde lasso tylko z nazwą "magiczne lasso"]

Odnośnik do komentarza
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

moge ci to napisać tylko 3 pytania:

1.lasso ma przechowywać tylko 1 zwierze czy np max 5 (wtedy zrobie gui i tam bedzie wóbór jakie chcesz zrespić)

2.można je zapisywać w lore jako kolejne linijki i teraz po angielsku czy po polsku(wiecej pisania)

3.chcesz config ? (nazwa,item,jak ma sie zapisywać.itd)?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
52 minuty temu, kaol48s napisał:

moge ci to napisać tylko 3 pytania:

1.lasso ma przechowywać tylko 1 zwierze czy np max 5 (wtedy zrobie gui i tam bedzie wóbór jakie chcesz zrespić)

2.można je zapisywać w lore jako kolejne linijki i teraz po angielsku czy po polsku(wiecej pisania)

3.chcesz config ? (nazwa,item,jak ma sie zapisywać.itd)?

Ma przechowywać tylko jedno.

Po polsku i pozwalam zby zapisywało w lorze.

Nie chcę configu.

:)

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

nie mam serwra testowego na tą wersje ale powinno działać

moby dodajesz w "on script load" chyba zrozumiesz jak masz 5 przykładów :)

Spoiler
options:
	itemek: lead
	nazwa: "&6Magiczne lasso"
	lore.pusty: "&eKliknij &bPPM &eaby zlapac moba!"
	lore.zlapany: "&eZlapano: &6%{_mob}%"
command /dak:
	trigger:
		give player {@itemek} named {@nazwa} with lore {@lore.pusty} 
on script load:
	set {moby::cow} to "krowe"
	set {moby::bat} to "nietoperza"
	set {moby::sheep} to "owce"
	set {moby::pig} to "swinie"
	set {moby::chicken} to "kurczaka"
on rightclick on entity:
	if "%type of player's tool%" is {@itemek}:
		if name of player's tool is {@nazwa}:
			if lore of player's tool is {@lore.pusty}:
				loop {moby::*}:
					if "%event-entity%" is "%loop-index%":
						set {_mob} to "%loop-value%"
						set lore of player's tool to {_lore.zlapany}
						enchant player's tool with infinity 1
						send "&eZlapales &b%loop-value%&e!"
						stop
				send "&4&lBlad&8&l: &cTego moba nie da sie zlapac na lasso!"
on rightclick with {@itemek}:
	set {_lore} to uncolored lore of player's tool
	replace all "Zlapano: " with "" in {_lore}
	loop {moby::*}:
		if "%loop-value%" is "%{_lore}%":
			spawn loop-index parsed as entity at player
			set lore of player's tool to {@lore.pusty}
			remove infinity 1 from player's tool 

 

 

Edytowane przez kaol48s
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

to zrobie ci juz cały z gui ale czy ten działa? (nie mam serwerka pod 1.11.2 wiec jak masz to podasz ip ? potestujemy u cb ;) )

 

spędziłem nad tym 3 godziny myślę że pare like od ciebie dostane ;)

moby dodajesz w on script load tak:

set {moby::NAZWA PO ANGIELKU} to "NAZWA WYSWIETLANA W GUI I LORE"

set {moby::cow} to "krowa" ale lepiej daj set {moby::cow} to "krowe" bo lore i gui wyglada tak "zlapano:" wiec dziwnie by wygladalo "zlapano: krowa" tak samo w GUI jest "Przywolaj"

 

 

Spoiler
options:
	itemek: lead
	ilosc.mobow.w.jednym.lassie: 10
	nazwa: "&6Magiczne lasso"
	lore.pusty: "&eKliknij &bPPM &eaby zlapac moba! (MAX 3)"
	lore.zlapany: "&eZlapano:"
	kolor.zlapanego.moba: &c
command /dak:
	trigger:
		give player {@itemek} named {@nazwa} with lore {@lore.pusty} 
on script load:
	set {moby::cow} to "krowe"
	set {moby::bat} to "nietoperza"
	set {moby::sheep} to "owce"
	set {moby::pig} to "swinie"
	set {moby::chicken} to "kurczaka"
	
on rightclick on entity:
	if "%player's tool%" is "{@itemek}":
		if "%name of player's tool%" is {@nazwa}:
			set {_lore::*} to lore of player's tool split at "||"
			if size of {_lore::*} < {@ilosc.mobow.w.jednym.lassie}+1:
				loop {moby::*}:
					if "%event-entity%" is "%loop-index%":
						set {_lore} to {@lore.zlapany}
						loop {_lore::*}:
							if "%uncolored loop-value-2%" contains "-":
								set {_lore} to "%{_lore}%||%loop-value-2%"
							else:
								set {_lore} to "%{_lore}%||{@kolor.zlapanego.moba}- %loop-value-1%"
						set lore of player's tool to {_lore}
						send "&eZlapales &b%loop-value%&e!" to player
						delete event-entity
						stop
				send "&4&lBlad&8&l: &cTego moba nie da sie zlapac na lasso!" to player
			else:
				send "&4&lBlad&8&l: &cNa to lasso mozna zlapac tylko {@ilosc.mobow.w.jednym.lassie} zwierzat!" to player
on rightclick with {@itemek}:
	if "%name of player's tool%" is {@nazwa}:
		set {_lore::*} to lore of player's tool split at "||"
		if {_lore::1} is {@lore.zlapany}:
			set {_} to 0
			open chest with 3 rows named "wybierz moba" to player
			wait 2 tick
			loop {_lore::*}:
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					if "%loop-value-2%" is "%{_mob}%":
						set {_m} to "%loop-index-2% spawn egg" parsed as item
						format slot {_} of player with {_m} named "&ePrzywolaj &c%loop-value-2%" to run "{}przekierowanie %player% zresp tajnehaslo %loop-index-2%"
						add 1 to {_}
command /zresp [<text>] [<text>]:
	trigger:
		if arg-1 is "tajnehaslo":
			spawn arg-2 parsed as entity type at player
			set {_lore::*} to lore of player's tool split at "||"
			set {_lore} to {@lore.zlapany}
			loop {_lore::*}:
				clear {_mob}
				clear {_mob2}
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					loop-index-2 is arg-2:
						set {_mob2} to loop-value-2
				if "%{_mob}%" is "%{_mob2}%":
					clear {_lore::%loop-index-1%}
					exit loop
			if size of {_lore::*} > 1:
				loop {_lore::*}:
					loop-value is not {@lore.zlapany}:
						send "%loop-value%"
						set {_lore} to "%{_lore}%||%loop-value%"
			else:
				set {_lore} to {@lore.pusty}
			set lore of player's tool to {_lore}
			close player's inventory
command /{}przekierowanie [<player>] [<text>] [<text>] [<text>]:
	executable by: console
	trigger:
		if arg-4 is set:
			execute player-arg command "%arg-2% %arg-3% %arg-4%"
			stop
		if arg-3 is set:
			execute player-arg command "%arg-2% %arg-3%"
			stop
		if arg-2 is set:
			execute player-arg command "%arg-2%"
			stop

 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler
options:
	itemek: lead
	ilosc.mobow.w.jednym.lassie: 10
	nazwa: "&6Magiczne lasso"
	lore.pusty: "&eKliknij &bPPM &eaby zlapac moba! (MAX 3)"
	lore.zlapany: "&eZlapano:"
	kolor.zlapanego.moba: &c
command /dak:
	trigger:
		give player {@itemek} named {@nazwa} with lore {@lore.pusty} 
on script load:
	set {moby::cow} to "krowe"
	set {moby::bat} to "nietoperza"
	set {moby::sheep} to "owce"
	set {moby::pig} to "swinie"
	set {moby::chicken} to "kurczaka"
	
on rightclick on entity:
	if "%player's tool%" is "{@itemek}":
		if "%name of player's tool%" is {@nazwa}:
			cancel event
			set {_lore::*} to lore of player's tool split at "||"
			if size of {_lore::*} < {@ilosc.mobow.w.jednym.lassie}+1:
				loop {moby::*}:
					if "%event-entity%" is "%loop-index%":
						set {_lore} to {@lore.zlapany}
						loop {_lore::*}:
							if "%uncolored loop-value-2%" contains "-":
								set {_lore} to "%{_lore}%||%loop-value-2%"
							else:
								set {_lore} to "%{_lore}%||{@kolor.zlapanego.moba}- %loop-value-1%"
						set lore of player's tool to {_lore}
						send "&eZlapales &b%loop-value%&e!" to player
						delete event-entity
						stop
				send "&4&lBlad&8&l: &cTego moba nie da sie zlapac na lasso!" to player
			else:
				send "&4&lBlad&8&l: &cNa to lasso mozna zlapac tylko {@ilosc.mobow.w.jednym.lassie} zwierzat!" to player
on rightclick with {@itemek}:
	if "%name of player's tool%" is {@nazwa}:
        cancel event
		set {_lore::*} to lore of player's tool split at "||"
		if {_lore::1} is {@lore.zlapany}:
			set {_} to 0
			open chest with 3 rows named "wybierz moba" to player
			wait 2 tick
			loop {_lore::*}:
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					if "%loop-value-2%" is "%{_mob}%":
						set {_m} to "%loop-index-2% spawn egg" parsed as item
						format slot {_} of player with {_m} named "&ePrzywolaj &c%loop-value-2%" to run "{}przekierowanie %player% zresp tajnehaslo %loop-index-2%"
						add 1 to {_}
command /zresp [<text>] [<text>]:
	trigger:
		if arg-1 is "tajnehaslo":
			spawn arg-2 parsed as entity type at player
			set {_lore::*} to lore of player's tool split at "||"
			set {_lore} to {@lore.zlapany}
			loop {_lore::*}:
				clear {_mob}
				clear {_mob2}
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					loop-index-2 is arg-2:
						set {_mob2} to loop-value-2
          				send "uwolniles %loop-value-2%"
				if "%{_mob}%" is "%{_mob2}%":
					clear {_lore::%loop-index-1%}
					exit loop
			if size of {_lore::*} > 1:
				loop {_lore::*}:
					loop-value is not {@lore.zlapany}:
						set {_lore} to "%{_lore}%||%loop-value%"
			else:
				set {_lore} to {@lore.pusty}
			set lore of player's tool to {_lore}
			close player's inventory
command /{}przekierowanie [<player>] [<text>] [<text>] [<text>]:
	executable by: console
	trigger:
		if arg-4 is set:
			execute player-arg command "%arg-2% %arg-3% %arg-4%"
			stop
		if arg-3 is set:
			execute player-arg command "%arg-2% %arg-3%"
			stop
		if arg-2 is set:
			execute player-arg command "%arg-2%"
			stop

 

Proszę ;) wytabuj bo na fonie edytowalem i taba nie ma

Edytowane przez kaol48s
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
8 godzin temu, kaol48s napisał:
Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Pokaż ukrytą zawartość

options:
	itemek: lead
	ilosc.mobow.w.jednym.lassie: 10
	nazwa: "&6Magiczne lasso"
	lore.pusty: "&eKliknij &bPPM &eaby zlapac moba! (MAX 3)"
	lore.zlapany: "&eZlapano:"
	kolor.zlapanego.moba: &c
command /dak:
	trigger:
		give player {@itemek} named {@nazwa} with lore {@lore.pusty} 
on script load:
	set {moby::cow} to "krowe"
	set {moby::bat} to "nietoperza"
	set {moby::sheep} to "owce"
	set {moby::pig} to "swinie"
	set {moby::chicken} to "kurczaka"
	
on rightclick on entity:
	if "%player's tool%" is "{@itemek}":
		if "%name of player's tool%" is {@nazwa}:
			cancel event
			set {_lore::*} to lore of player's tool split at "||"
			if size of {_lore::*} < {@ilosc.mobow.w.jednym.lassie}+1:
				loop {moby::*}:
					if "%event-entity%" is "%loop-index%":
						set {_lore} to {@lore.zlapany}
						loop {_lore::*}:
							if "%uncolored loop-value-2%" contains "-":
								set {_lore} to "%{_lore}%||%loop-value-2%"
							else:
								set {_lore} to "%{_lore}%||{@kolor.zlapanego.moba}- %loop-value-1%"
						set lore of player's tool to {_lore}
						send "&eZlapales &b%loop-value%&e!" to player
						delete event-entity
						stop
				send "&4&lBlad&8&l: &cTego moba nie da sie zlapac na lasso!" to player
			else:
				send "&4&lBlad&8&l: &cNa to lasso mozna zlapac tylko {@ilosc.mobow.w.jednym.lassie} zwierzat!" to player
on rightclick with {@itemek}:
	if "%name of player's tool%" is {@nazwa}:
        cancel event
		set {_lore::*} to lore of player's tool split at "||"
		if {_lore::1} is {@lore.zlapany}:
			set {_} to 0
			open chest with 3 rows named "wybierz moba" to player
			wait 2 tick
			loop {_lore::*}:
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					if "%loop-value-2%" is "%{_mob}%":
						set {_m} to "%loop-index-2% spawn egg" parsed as item
						format slot {_} of player with {_m} named "&ePrzywolaj &c%loop-value-2%" to run "{}przekierowanie %player% zresp tajnehaslo %loop-index-2%"
						add 1 to {_}
command /zresp [<text>] [<text>]:
	trigger:
		if arg-1 is "tajnehaslo":
			spawn arg-2 parsed as entity type at player
			set {_lore::*} to lore of player's tool split at "||"
			set {_lore} to {@lore.zlapany}
			loop {_lore::*}:
				clear {_mob}
				clear {_mob2}
				set {_mob} to "%uncolored loop-value%"
				replace all "- " with "" in {_mob}
				loop {moby::*}:
					loop-index-2 is arg-2:
						set {_mob2} to loop-value-2
          				send "uwolniles %loop-value-2%"
				if "%{_mob}%" is "%{_mob2}%":
					clear {_lore::%loop-index-1%}
					exit loop
			if size of {_lore::*} > 1:
				loop {_lore::*}:
					loop-value is not {@lore.zlapany}:
						set {_lore} to "%{_lore}%||%loop-value%"
			else:
				set {_lore} to {@lore.pusty}
			set lore of player's tool to {_lore}
			close player's inventory
command /{}przekierowanie [<player>] [<text>] [<text>] [<text>]:
	executable by: console
	trigger:
		if arg-4 is set:
			execute player-arg command "%arg-2% %arg-3% %arg-4%"
			stop
		if arg-3 is set:
			execute player-arg command "%arg-2% %arg-3%"
			stop
		if arg-2 is set:
			execute player-arg command "%arg-2%"
			stop

 

Proszę ;) wytabuj bo na fonie edytowalem i taba nie ma

Nadal usuwa lasso :/

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ę...