MarkusWWWW Posted May 11, 2022 Posted May 11, 2022 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
Pryzmm Posted May 11, 2022 Posted May 11, 2022 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::*} Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present
BanditEagle Posted May 12, 2022 Posted May 12, 2022 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#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle
Pryzmm Posted May 12, 2022 Posted May 12, 2022 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 Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present
BanditEagle Posted May 13, 2022 Posted May 13, 2022 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#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now