Jump to content

A minigame skript (not a full skript just the first part)


MarkusWWWW

Recommended Posts

 

So basically if 20 players are detected standing on a diamond block
It will display in chat/action bar how many players there are currently
then itll play a sound (idrc whatever you want)
and teleport 50% of players to 0 60 0 the other 50% will be tped to 1 80 1
 

Link to comment
Share on other sites

18 hours ago, MarkusWWWW said:

 

So basically if 20 players are detected standing on a diamond block
It will display in chat/action bar how many players there are currently
then itll play a sound (idrc whatever you want)
and teleport 50% of players to 0 60 0 the other 50% will be tped to 1 80 1
 

Untested but parsed in parser.skunity.com

 

options:
	world: world

every 10 ticks:
	loop all players where [block below input is a diamond block]:
		add loop-player to {_list::*}
	send action bar "&6Players Waiting: &e&l%size of {_list::*}%" to {_list::*}
	if size of {_list::*} = 20:
		set {_index} to 1
		loop {_list::*}:
			if {_index} is 1:
				set {_index} to 0
				add (loop-value parsed as player) to {_group1::*}
			else:
				add 1 to {_index}
				add (loop-value parsed as player) to {_group2::*}
		teleport {_group1::*} to location(0, 60, 0, world("{@world}"))
		teleport {_group2::*} to location(1, 80, 1, world("{@world}"))
		play sound "entity.firework_rocket.blast" at {_group1::*} for {_group1::*}
		play sound "entity.firework_rocket.blast" at {_group2::*} for {_group2::*}

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

wouldn't this also work if one player stands on the diamond block for 200 ticks in total? I think you would need to clear the list every time so that there are no duplicates. I might be wrong, but its just what I am assuming.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

5 minutes ago, BanditEagle said:

wouldn't this also work if one player stands on the diamond block for 200 ticks in total? I think you would need to clear the list every time so that there are no duplicates. I might be wrong, but its just what I am assuming.

Its a temporary variable, so it clears once it stops running

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

10 hours ago, AgentGamerPro said:

Its a temporary variable, so it clears once it stops running

oh yeah your right my bad

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...