Skocz do zawartości
  • 0

Skrypt


PronaK

Pytanie

gdy wpiszesz komende /itemy beda itemy na gildie a 2 kratki w prawo bedrock , a gdy w niego klikiesz (musisz miec itemy na gildie) zespawnij sie boss o 200 hp ktrego trza zabic .. Gdy sie zabije dostanie sie glowe ktora   jest potrzebna do zalozenia gildii

KOD:

command /itemy [<text>]:
	trigger:
		if arg 1 is not set:
			set {_item1} to cobblestone named "&c64 Bruk"
			set line 1 of lore of {_item1} to " &7%number of cobblestone in the player's inventory%/64"
			set {_item2} to 322 named "&c20 Refy"
			set line 1 of lore of {_item2} to " &7%number of 322 in the player's inventory%/20"
			set {_item3} to anvil named "&c20 Kowaldla"
			set line 1 of lore of {_item3} to " &7%number of anvil in the player's inventory%/20"
			set {_item4} to block of gold named "&c20 Bloki zlota"
			set line 1 of lore of {_item4} to " &7%number of block of gold in the player's inventory%/20"
			set {_item5} to diamond named "&c64 Diamenty"
			set line 1 of lore of {_item5} to " &7%number of diamond in the player's inventory%/64"
			set {_item6} to tnt named "&c64 Tnt"
			set line 1 of lore of {_item6} to " &7%number of tnt in the player's inventory%/64"
			set {_item7} to emerald named "&c64 Szmaragdy"
			set line 1 of lore of {_item7} to " &7%number of emerald in the player's inventory%/64"
			open chest with 1 rows named "&c&lItemy potrzebne na gildie" to player
			format gui slot 0 of player with {_item1} to run player command "/itemy"
			format gui slot 1 of player with {_item2} to run player command "/itemy"
			format gui slot 2 of player with {_item3} to run player command "/itemy"
			format gui slot 3 of player with {_item4} to run player command "/itemy"
			format gui slot 4 of player with {_item5} to run player command "/itemy"
			format gui slot 5 of player with {_item6} to run player command "/itemy"
			format gui slot 6 of player with {_item7} to run player command "/itemy"
			set {_itemy} to sponge named "&c&lBOSS"
			set line 1 of lore of {_itemy} to "&cKliknij, aby zespawnic bossa."
			set line 2 of lore of {_itemy} to "&cPo zabiciu bossa wyleci"
			set line 3 of lore of {_itemy} to "&citem potrzebny do zalozenia gildii."
			format gui slot 8 of player with 1 of {_itemy}
		if arg 1 is "8":
			if player has 64 of cobblestone:
				if player has 20 of 322:0:
					if player has 20 of anvil:
						if player has 20 of block of gold:
							if player has 64 of diamond:
								if player has 64 of tnt:
									if player has 64 of emerald:
										remove 64 of cobblestone from player's inventory
										remove 20 of 322:0 from player's inventory
										remove 20 of anvil from player's inventory
										remove 20 of block of gold from player's inventory
										remove 64 of diamond from player's inventory
										remove 64 of tnt from player's inventory
										remove 64 of emerald from player's inventory
										send "&cZ bossa wyleci item potrzebny na gildie!"
										spawn a zombie at location of player
										apply speed 2 to the last spawned entity for 1000 seconds
										apply strength 10 to the last spawned entity for 1000 seconds
										set the last spawned entity's max health to 100
										heal last spawned entity
										set the spawned zombie's display name to "&c&lAxen %spawned zombie's health%/%max health of last spawned entity%"
										set helmet of the last spawned entity to a diamond helmet
										set chestplate of last spawned entity to a diamond chestplate
										set leggings of last spawned entity to a diamond leggings
										set boots of last spawned entity to a diamond boots
										set tool of last spawned entity to a diamond sword
									else:
										send "&cNie posiadasz wszystkich itemow. /itemy"
								else:
									send "&cNie posiadasz wszystkich itemow. /itemy"
							else:
								send "&cNie posiadasz wszystkich itemow. /itemy"
						else:
							send "&cNie posiadasz wszystkich itemow. /itemy"
					else:
						send "&cNie posiadasz wszystkich itemow. /itemy"
				else:
					send "&cNie posiadasz wszystkich itemow. /itemy"
			else:
				send "&cNie posiadasz wszystkich itemow. /itemy"
on damage of creature:
	if name of victim contains "&c&lAxen":
		set name of victim to "&c&lAxen %health of victim%/%max health of victim%"
on death of creature:
	if name of victim contains "&c&lAxen":
		drop 1 of zombie head at location of victim
on inventory click:
	if inventory name of player's current inventory is "&c&lItemy potrzebne na gildie":
		cancel event
		wait 2 ticks
		execute player command "/itemy %clicked slot%"
		close inventory of player
		
										

 

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
Spoiler

options:
#BOSS efekty/hp/nazwa#

	boss.HP: 200
	boss.NAZWA: &c&lAxen %spawned zombie's health%/%max health of last spawned entity%
	boss.SPEED: 2 
	boss.STRENGHT: 10
	
#BOSS zbroja/bron#
	
	boss.HELM: diamond helmet of protection 5
	boss.KLATA: diamond chestplate of protection 5
	boss.SPODNIE: diamond leggings of protection 5
	boss.BUTY: diamond boots of protection 5
	boss.BRON: diamond sword of sharpness 10 and fire aspect 2
	
#BOSS wiadomosci#

	boss.WIADOMOSC.PRZY.POJAWIENIU: &cZ bossa wyleci item potrzebny na gildie!
	boss.WIADOMOSC.PRZY.ZABICIU: &6&lGracz %attacker% zabil BOSA!
	boss.WIADOMOSC.DO.ZABIJAJACEGO: &bBrawo zabiles bosa item potrzebny na gildie otrzymasz po wpisaniu /itemy 

#BOSS gui i nagroda za zabicie#

	boss.item.wypelnienie.gui: light gray glass pane
	boss.nagroda.ITEM: zombie head
	boss.nagroda.NAZWA: &cITEM potrzebny na gildie &b{original}
	boss.nagroda.LORE: &6Ten item jest potrzebny do||&6zalozenia gildi
command /itemy [<text>]:
	trigger:
		if {zabil::bosa::%player%} is true:
			open chest with 3 rows named "&bGratulacje :)" to player
			loop 27 times:
				format slot loop-number -1 of player with {@boss.item.wypelnienie.gui} to be unstealable
			format slot 13 of player with {@boss.nagroda.ITEM} named "{@boss.nagroda.NAZWA}" with lore "{@boss.nagroda.LORE}" to be unstealable
			unformat slot 13 of player
			stop
		if arg 1 is not set:
			set {_item1} to cobblestone named "&c64 Bruk"
			set line 1 of lore of {_item1} to " &7%number of cobblestone in the player's inventory%/64"
			set {_item2} to golden apple:0 named "&c20 Refy"
			set line 1 of lore of {_item2} to " &7%number of golden apple:0 in the player's inventory%/20"
			set {_item3} to anvil named "&c20 Kowaldla"
			set line 1 of lore of {_item3} to " &7%number of anvil in the player's inventory%/20"
			set {_item4} to block of gold named "&c20 Bloki zlota"
			set line 1 of lore of {_item4} to " &7%number of block of gold in the player's inventory%/20"
			set {_item5} to diamond named "&c64 Diamenty"
			set line 1 of lore of {_item5} to " &7%number of diamond in the player's inventory%/64"
			set {_item6} to tnt named "&c64 Tnt"
			set line 1 of lore of {_item6} to " &7%number of tnt in the player's inventory%/64"
			set {_item7} to emerald named "&c64 Szmaragdy"
			set line 1 of lore of {_item7} to " &7%number of emerald in the player's inventory%/64"
			open chest with 1 rows named "&c&lItemy potrzebne na gildie" to player
			format slot 0 of player with {_item1} to be unstealable
			format slot 1 of player with {_item2} to be unstealable
			format slot 2 of player with {_item3} to be unstealable
			format slot 3 of player with {_item4} to be unstealable
			format slot 4 of player with {_item5} to be unstealable
			format slot 5 of player with {_item6} to be unstealable
			format slot 6 of player with {_item7} to be unstealable
			set {_itemy} to sponge named "&c&lBOSS"
			set line 1 of lore of {_itemy} to "&cKliknij, aby zespawnic bossa."
			set line 2 of lore of {_itemy} to "&cPo zabiciu bossa wyleci"
			set line 3 of lore of {_itemy} to "&citem potrzebny do zalozenia gildii."
			format slot 8 of player with 1 of {_itemy} to close then run [player command "itemy booooooos"]
		if arg 1 is "booooooos":
			if player has 64 of cobblestone:
				if player has 20 of golden apple:0:
					if player has 20 of anvil:
						if player has 20 of block of gold:
							if player has 64 of diamond:
								if player has 64 of tnt:
									if player has 64 of emerald:
										remove 64 of cobblestone from player's inventory
										remove 20 of golden apple:0 from player's inventory
										remove 20 of anvil from player's inventory
										remove 20 of block of gold from player's inventory
										remove 64 of diamond from player's inventory
										remove 64 of tnt from player's inventory
										remove 64 of emerald from player's inventory
										send "{@boss.WIADOMOSC.PRZY.POJAWIENIU}"
										spawn a zombie at location of player
										apply speed {@boss.SPEED} to the last spawned entity for 1000 seconds
										apply strength {@boss.STRENGHT} to the last spawned entity for 1000 seconds
										set the last spawned entity's max health to {@boss.HP}
										heal last spawned entity
										set the spawned zombie's display name to "{@boss.NAZWA}"
										set helmet of the last spawned entity to {@boss.HELM}
										set chestplate of last spawned entity to a {@boss.KLATA}
										set leggings of last spawned entity to a {@boss.SPODNIE}
										set boots of last spawned entity to a {@boss.BUTY}
										set tool of last spawned entity to a {@boss.BRON}
									else:
										send "&cNie posiadasz wszystkich itemow. /itemy"
								else:
									send "&cNie posiadasz wszystkich itemow. /itemy"
							else:
								send "&cNie posiadasz wszystkich itemow. /itemy"
						else:
							send "&cNie posiadasz wszystkich itemow. /itemy"
					else:
						send "&cNie posiadasz wszystkich itemow. /itemy"
				else:
					send "&cNie posiadasz wszystkich itemow. /itemy"
			else:
				send "&cNie posiadasz wszystkich itemow. /itemy"
on damage of creature:
	if name of victim contains "&c&lAxen":
		set name of victim to "&c&lAxen %health of victim%/%max health of victim%"
on death of creature:
	if name of victim contains "&c&lAxen":
		broadcast ""
		broadcast "{@boss.WIADOMOSC.PRZY.ZABICIU}"
		broadcast ""
		send "{@boss.WIADOMOSC.DO.ZABIJAJACEGO}" to attacker
		set {zabil::bosa::%attacker%} to true
		clear drops
on inventory close:
	if inventory name of player's current inventory is "&bGratulacje :)":
		if slot 13 of player's current inventory is not {@boss.nagroda.ITEM} named "{@boss.nagroda.NAZWA}" with lore "{@boss.nagroda.LORE}":
			clear {zabil::bosa::%player%}

 

Proszę dodałem i poprawiłem trochę skriptu bo wywalało błędy :) w options jest naprawdę wszystko co potrzebne do ustawienia liczę na naj i plusik

Odnośnik do komentarza
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ę...