Nahrát soubory do „“
							parent
							
								
									8cd8cf0283
								
							
						
					
					
						commit
						5d801e1c5f
					
				|  | @ -0,0 +1,382 @@ | |||
| variables: | ||||
| 	{move} = false | ||||
| 	{winner} = false | ||||
| 	{alive} = 30 | ||||
| 	{block} = false | ||||
| 	{pvp} = true | ||||
| 	{hneda} = 0 | ||||
| 	{siva} = 0 | ||||
| 	{ruzova} = 0 | ||||
| 	{modra} = 0 | ||||
| 	{zelena} = 0 | ||||
| 	{oranzova} = 0 | ||||
| 	{zlta} = 0 | ||||
| 	{fialova} = 0 | ||||
| 	{cervena} = 0 | ||||
| 	{cierna} = 0 | ||||
| 
 | ||||
| command /parkour: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		if player is op: | ||||
| 			add all players to {_players::*} | ||||
| 			wait 1 second | ||||
| 			execute console command "effect clear @a" | ||||
| 			send title "&a&lParkour" with subtitle "&7konec hlasování" to {_players::*} for 3 seconds | ||||
| 			wait 5 seconds | ||||
| 			set {winner} to false | ||||
| 			set {move} to true | ||||
| 			wait 0.1 second | ||||
| 			teleport all players to {parkour} | ||||
| 			set gamemode of {_players::*} to survival  | ||||
| 			clear inventory of {_players::*}  | ||||
| 			loop all players: | ||||
| 				set {checkpoint.%loop-player%} to location of loop-player | ||||
| 				give 1 emerald named "&eReturn to &6&lCheckpoint" to loop-player  | ||||
| 			wait 0.1 second | ||||
| 			add all players to {_players::*} | ||||
| 			wait 10 seconds | ||||
| 			add all players to {_players::*} | ||||
| 			play sound "entity.player.levelup" to {_players::*} at volume 1 at pitch 1 | ||||
| 			send title "&2&l3" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 			wait 1 second | ||||
| 			play sound "entity.player.levelup" to {_players::*} at volume 1 at pitch 1 | ||||
| 			add all players to {_players::*} | ||||
| 			send title "&e&l2" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 			wait 1 second | ||||
| 			play sound "entity.player.levelup" to {_players::*} at volume 1 at pitch 1 | ||||
| 			add all players to {_players::*} | ||||
| 			send title "&c&l1" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 			wait 1 second | ||||
| 			add all players to {_players::*} | ||||
| 			play sound "entity.dragon_fireball.explode" to {_players::*} at volume 1 at pithc  | ||||
| 			send title "&5&lSTART!" with subtitle "" to {_players::*} for 1 second | ||||
| 			set {move} to false | ||||
| 			apply invisibility 1 to {_players::*} for 9999 seconds | ||||
| 			apply glowing 1 to {_players::*} for 9999 seconds | ||||
| 			 | ||||
| 
 | ||||
| on any movement: | ||||
| 	if {move} = true: | ||||
| 		cancel event | ||||
| 	else if {move} = false: | ||||
| 		stop | ||||
| 
 | ||||
| command /debug: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		set {move} to false | ||||
| 		set {winner} to false | ||||
| 
 | ||||
| on damage: | ||||
| 	if victim or attacker is in world "lobby": | ||||
| 		cancel event | ||||
| 	if victim or attacker is in world "CHQ": | ||||
| 		if attacker is not player: | ||||
| 			teleport victim to {checkpoint.%victim%} | ||||
| 		else: | ||||
| 			cancel event | ||||
| 	else: | ||||
| 		stop | ||||
| 
 | ||||
| on place: | ||||
| 	if player is in world "CHQ" or "lobby": | ||||
| 		cancel event | ||||
| 	else: | ||||
| 		stop | ||||
| 
 | ||||
| on break: | ||||
| 	if player is in world "CHQ" or "lobby": | ||||
| 		cancel event | ||||
| 	else: | ||||
| 		stop | ||||
| 
 | ||||
| on join: | ||||
| 	set join message to "&a&l➜ &f%player%" | ||||
| 	teleport player to {lobby} | ||||
| 
 | ||||
| on quit: | ||||
| 	set leave message to "&c&l➜ &f%player%" | ||||
| 
 | ||||
| on any interaction:	 | ||||
| 	if player is in world "lobby": | ||||
| 		cancel event | ||||
| 	else: | ||||
| 		stop | ||||
| 
 | ||||
| command /sg: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		loop all players: | ||||
| 			#if loop player has permission "op": | ||||
| 				teleport loop-player to {SG} | ||||
| 				set gamemode of loop-player to spectator | ||||
| 		wait 1 second | ||||
| 		add all players to {_players::*}  | ||||
| 		send title "&6&lSurvival Games" with subtitle "&7konec hlasování" to {_players::*} for 3 seconds | ||||
| 		wait 5 seconds | ||||
| 		execute {_players::*} command "survivalgames join CSYT" | ||||
| 
 | ||||
| command /title [<text>]: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		add all players to {_players::*} | ||||
| 		send title "%colored arg-1%" to {_players::*} for 5 seconds | ||||
| 
 | ||||
| on step on gold block: | ||||
| 	if player is in world "CHQ": | ||||
| 		if gamemode of player is not spectator: | ||||
| 			set {checkpoint.%player%} to location of player | ||||
| 			send player title "&6&lCHECKPOINT!" with subtitle "" for 3 seconds | ||||
| 				add all players to {_players::*}: | ||||
| 					if name of {_players::*} is "zucky35", "RealKaxy", "NeXuSoveVidea" or "SkeletonCZ123": | ||||
| 						add 150 to {hneda} | ||||
| 					if name of {_players::*} is "Freaster", "chromifaj" or "CrazyYs_": | ||||
| 						add 150 to {siva} | ||||
| 					if name of {_players::*} is "Peterino_", "Nevimas", or "Maniak_CZech": | ||||
| 						add 150 to {ruzova} | ||||
| 					if name of {_players::*} is "itz_zuri", "ItzPikachu__", or "Itz_Matyas": | ||||
| 						add 150 to {modra} | ||||
| 					if name of {_players::*} is "BleskMichalek", "90Tom" or "goodmine_cz": | ||||
| 						add 150 to {zelena} | ||||
| 					if name of {_players::*} is "Jacobik_YT", "GREENOVEC", or "TPeck7_": | ||||
| 						add 150 to {oranzova} | ||||
| 					if name of {_players::*} is "Rhyverr", "uuiztrr" or "XbowmannX": | ||||
| 						add 150 to {zlta} | ||||
| 					if name of {_players::*} is "KirighayaKazuto", "___N1ght___", or "Xawerius": | ||||
| 						add 150 to {fialova} | ||||
| 					if name of {_players::*} is "Leonardo1YT", "JirkoslavCZ", or "NotBenok": | ||||
| 						add 150 to {cervena} | ||||
| 					if name of {_players::*} is "Tejficek", "Foxi779", or "Banankooo": | ||||
| 						add 150 to {cierna} | ||||
| 
 | ||||
| on drop: | ||||
| 	if player is in world "CHQ": | ||||
| 		cancel event | ||||
| 	else: | ||||
| 		stop | ||||
| 
 | ||||
| on right click: | ||||
| 	if player is in world "CHQ": | ||||
| 		if player is holding emerald named "&eReturn to &6&lCheckpoint": | ||||
| 			teleport player to {checkpoint.%player%} | ||||
| 
 | ||||
| on step on diamond block: | ||||
| 	if player is in world "CHQ": | ||||
| 		if gamemode of player is not spectator: | ||||
| 			if {winner} = false: | ||||
| 				clear inventory of player | ||||
| 				set gamemode of player to spectator | ||||
| 				execute console command "effect clear %player%" | ||||
| 				set {winner} to true | ||||
| 				add all players to {_players::*} | ||||
| 				send title "&e&l%player%" with subtitle "&6dokončil Parkour jako první" | ||||
| 				broadcast "&e&l%player% &6dokončil parkour 1." | ||||
| 				if name of player is "zucky35", "RealKaxy", "NeXuSoveVidea" or "SkeletonCZ123": | ||||
| 					add 500 to {hneda} | ||||
| 				if name of player is "Freaster", "chromifaj" or "CrazyYs_": | ||||
| 					add 500 to {siva} | ||||
| 				if name of player is "Peterino_", "Nevimas", or "Maniak_CZech": | ||||
| 					add 500 to {ruzova} | ||||
| 				if name of player is "itz_zuri", "ItzPikachu__", or "Itz_Matyas": | ||||
| 					add 500 to {modra} | ||||
| 				if name of player is "BleskMichalek", "90Tom" or "goodmine_cz": | ||||
| 					add 500 to {zelena} | ||||
| 				if name of player is "Jacobik_YT", "GREENOVEC", or "TPeck7_": | ||||
| 					add 500 to {oranzova} | ||||
| 				if name of player is "Rhyverr", "uuiztrr" or "XbowmannX": | ||||
| 					add 500 to {zlta} | ||||
| 				if name of player is "KirighayaKazuto", "___N1ght___", or "Xawerius": | ||||
| 					add 500 to {fialova} | ||||
| 				if name of player is "Leonardo1YT", "JirkoslavCZ", or "NotBenok": | ||||
| 					add 500 to {cervena} | ||||
| 				if name of player is "Tejficek", "Foxi779", or "Banankooo": | ||||
| 					add 500 to {cierna}  | ||||
| 			if {winner} = true: | ||||
| 				clear inventory of player | ||||
| 				set gamemode of player to spectator | ||||
| 				execute console command "effect clear %player%" | ||||
| 				add all players to {_players::*} | ||||
| 				send title "&e&l%player%" with subtitle "&6dokončil parkour" to {_players::*} | ||||
| 				broadcast "&e&l%player% &6dokončil parkour." | ||||
| 				if name of player is "zucky35", "RealKaxy", "NeXuSoveVidea" or "SkeletonCZ123": | ||||
| 					add 300 to {hneda} | ||||
| 				if name of player is "Freaster", "chromifaj" or "CrazyYs_": | ||||
| 					add 300 to {siva} | ||||
| 				if name of player is "Peterino_", "Nevimas", or "Maniak_CZech": | ||||
| 					add 300 to {ruzova} | ||||
| 				if name of player is "itz_zuri", "ItzPikachu__", or "Itz_Matyas": | ||||
| 					add 300 to {modra} | ||||
| 				if name of player is "BleskMichalek", "90Tom" or "goodmine_cz": | ||||
| 					add 300 to {zelena} | ||||
| 				if name of player is "Jacobik_YT", "GREENOVEC", or "TPeck7_": | ||||
| 					add 300 to {oranzova} | ||||
| 				if name of player is "Rhyverr", "uuiztrr" or "XbowmannX": | ||||
| 					add 300 to {zlta} | ||||
| 				if name of player is "KirighayaKazuto", "___N1ght___", or "Xawerius": | ||||
| 					add 300 to {fialova} | ||||
| 				if name of player is "Leonardo1YT", "JirkoslavCZ", or "NotBenok": | ||||
| 					add 300 to {cervena} | ||||
| 				if name of player is "Tejficek", "Foxi779", or "Banankooo": | ||||
| 					add 300 to {cierna} | ||||
| 
 | ||||
| command /lobby: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		if name of player is "NeXuSoveVidea": | ||||
| 			add all players to {_players::*} | ||||
| 			execute console command "survivalgames stop CSYT" | ||||
| 			execute {_players::*} command "blockparty leave" | ||||
| 			wait 0.1 second | ||||
| 			execute console command "effect clear @a" | ||||
| 			teleport all players to {lobby} | ||||
| 			set gamemode of {_players::*} to survival | ||||
| 			clear inventory of {_players::*} | ||||
| 			send title "&4&lKONEC HRY" with subtitle "" to {_players::*} | ||||
|             execute console command "effect clear %{_players::*}%" | ||||
| 			send "&c&m-----&b&lBody&c&m-----" to {_players::*} | ||||
| 			send "<##772208>Hnedy: &b%{hneda}%" to {_players::*} | ||||
| 			send "&7Sivy: &b%{siva}%" to {_players::*} | ||||
| 			send "&dRuzovy: &b%{ruzova}%" to {_players::*} | ||||
| 			send "&bModry: &b%{modra}%" to {_players::*} | ||||
| 			send "&aZeleny: &b%{zelena}%" to {_players::*} | ||||
| 			send "&6Oranzovy: &b%{oranzova}%" to {_players::*} | ||||
| 			send "&eZlty: &b%{zlta}%" to {_players::*} | ||||
| 			send "&5Fialovy: &b%{fialova}%" to {_players::*} | ||||
| 			send "&cCerveny: &b%{cervena}%" to {_players::*} | ||||
| 			send "&0Cierny: &b%{cierna}%" to {_players::*} | ||||
| 		else: | ||||
| 			send "/drzpicu" | ||||
| 
 | ||||
| command /pointrunner: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		add all players to {_players::*} | ||||
| 		wait 1 second | ||||
| 		send title "&b&lPoint Runner" with subtitle "&7konec hlasování" to {_players::*} for 3 seconds | ||||
| 		wait 5 seconds | ||||
| 		set {move} to true | ||||
| 		teleport all players to {pointrun} | ||||
| 		wait 10 seconds | ||||
| 		send title "&2&l3" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&e&l2" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&c&l1" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&5&lStart!" with subtitle "" to {_players::*} for 1 second | ||||
| 		send "&e&lBLOCKY ZACNOU MIZET ZA 5 SEKUND!" to {_players::*} | ||||
| 		set {move} to false | ||||
| 		wait 5 seconds | ||||
| 		send title "" with subtitle "&c&lBlocky se začínají propadat" to {_players::*} for 3 seconds | ||||
| 
 | ||||
| on break: | ||||
| 	if player is in world "vote": | ||||
| 		cancel event | ||||
| 
 | ||||
| on place: | ||||
| 	if player is in world "vote": | ||||
| 		cancel event | ||||
| 
 | ||||
| on damage: | ||||
| 	if victim is in world "vote": | ||||
| 		cancel event | ||||
| 
 | ||||
| on death: | ||||
| 	if attacker and victim is in world "KB": | ||||
| 		if name of attacker is "zucky35", "RealKaxy", "NeXuSoveVidea" or "SkeletonCZ123": | ||||
| 			add 150 to {hneda} | ||||
| 		if name of attacker is "Freaster", "chromifaj" or "CrazyYs_": | ||||
| 			add 150 to {siva} | ||||
| 		if name of attacker is "Peterino_", "Nevimas", or "Maniak_CZech": | ||||
| 			add 150 to {ruzova} | ||||
| 		if name of attacker is "itz_zuri", "ItzPikachu__", or "Itz_Matyas": | ||||
| 			add 150 to {modra} | ||||
| 		if name of attacker is "BleskMichalek", "90Tom" or "goodmine_cz": | ||||
| 			add 150 to {zelena} | ||||
| 		if name of attacker is "Jacobik_YT", "GREENOVEC", or "TPeck7_": | ||||
| 			add 150 to {oranzova} | ||||
| 		if name of attacker is "Rhyverr", "uuiztrr" or "XbowmannX": | ||||
| 			add 150 to {zlta} | ||||
| 		if name of attacker is "KirighayaKazuto", "___N1ght___", or "Xawerius": | ||||
| 			add 150 to {fialova} | ||||
| 		if name of attacker is "Leonardo1YT", "JirkoslavCZ", or "NotBenok": | ||||
| 			add 150 to {cervena} | ||||
| 		if name of attacker is "Tejficek", "Foxi779", or "Banankooo": | ||||
| 			add 150 to {cierna} | ||||
| 		set gamemode of victim to spectator | ||||
| 	if attacker and victim is in world "sg": | ||||
| 		if name of attacker is "zucky35", "RealKaxy", "NeXuSoveVidea" or "SkeletonCZ123": | ||||
| 			add 150 to {hneda} | ||||
| 		if name of attacker is "Freaster", "chromifaj" or "CrazyYs_": | ||||
| 			add 150 to {siva} | ||||
| 		if name of attacker is "Peterino_", "Nevimas", or "Maniak_CZech": | ||||
| 			add 150 to {ruzova} | ||||
| 		if name of attacker is "itz_zuri", "ItzPikachu__", or "Itz_Matyas": | ||||
| 			add 150 to {modra} | ||||
| 		if name of attacker is "BleskMichalek", "90Tom" or "goodmine_cz": | ||||
| 			add 150 to {zelena} | ||||
| 		if name of attacker is "Jacobik_YT", "GREENOVEC", or "TPeck7_": | ||||
| 			add 150 to {oranzova} | ||||
| 		if name of attacker is "Rhyverr", "uuiztrr" or "XbowmannX": | ||||
| 			add 150 to {zlta} | ||||
| 		if name of attacker is "KirighayaKazuto", "___N1ght___", or "Xawerius": | ||||
| 			add 150 to {fialova} | ||||
| 		if name of attacker is "Leonardo1YT", "JirkoslavCZ", or "NotBenok": | ||||
| 			add 150 to {cervena} | ||||
| 		if name of attacker is "Tejficek", "Foxi779", or "Banankooo": | ||||
| 			add 150 to {cierna} | ||||
| 
 | ||||
| command /kb: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		wait 1 second | ||||
| 		add all players to {_players::*} | ||||
| 		send title "&e&lKnockBack Battle" with subtitle "&7konec hlasování" to {_players::*} for 3 seconds | ||||
| 		wait 3 seconds | ||||
| 		send title "&a&lKOLO 1/2" with subtitle "" to {_players::*} | ||||
| 		execute console command "effect clear @a" | ||||
| 		clear inventory of {_players::*} | ||||
| 		set gamemode of {_players::*} to survival | ||||
| 		set {pvp} to false | ||||
| 		teleport all players to {kb} | ||||
| 		#loop all players: | ||||
| 			#if loop-player has permission "op": | ||||
| 				#set gamemode of loop-player to spectator | ||||
| 		apply resistance 999 to {_players::*} for 9999 seconds | ||||
| 		apply saturation 999 to {_players::*} for 9999 seconds | ||||
| 		wait 10 seconds | ||||
| 		send title "&2&l3" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&e&l2" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&c&l1" with subtitle "&7začínáme za" to {_players::*} for 1 second | ||||
| 		wait 1 second | ||||
| 		send title "&5&lSTART!" with subtitle "" to {_players::*} for 1 second | ||||
| 		set {pvp} to true | ||||
| 		give 1 stick of knockback 5 to all players | ||||
| 
 | ||||
| 
 | ||||
| on damage: | ||||
| 	if {pvp} = false: | ||||
| 		cancel event | ||||
| 	else if {pvp} = true: | ||||
| 		stop | ||||
| 
 | ||||
| command /points [<text>] [<text>] [<text>]: | ||||
| 	permission: op | ||||
| 	trigger: | ||||
| 		if arg-1 is not set: | ||||
| 			send "&c/points <nazov_teamu> &7- počet bodov teamu" | ||||
| 			send "&c/points <nazov_teamu> set <pocet> &7- nastaví teamu počet coinov" | ||||
| 		if arg-1 is set: | ||||
| 			if arg-2 is not set: | ||||
| 				send "&eTento team má &6%{%arg-1%}% &ecoinov" | ||||
| 			if arg-2 is "set": | ||||
| 				if arg-3 is not set: | ||||
| 					send "&c/points <nazov_teamu> &7- počet bodov teamu" | ||||
| 					send "&c/points <nazov_teamu> set <pocet> &7- prida coiny teamu" | ||||
| 					send "&c/points <nazov_teamu> remove <pocet> &7- zoberie teamu coiny" | ||||
| 				if arg-3 is set: | ||||
| 					send "&eTonto team má teraz &6%arg-3% &ecoinov." | ||||
| 					set {%arg-1%} to arg-3 | ||||
		Loading…
	
		Reference in New Issue