#Is there any ways to calculate players scoreboard?
1 messages · Page 1 of 1 (latest)
Your scoreboard objectives name?@sterile mural
wave1
I want to make a wave system, i made it with one player, but when another player joins the world, the waves starts to duplicate
Each kill adds 1 wave point to the nearest player
Hmm i can do this one .
But if you explain what you want to make I can recreate it for you
Am eating. So wait a bit!
I explained it
Okay
Show me the cmd
It's actually functions
execute at @a[r=256,tag=wave1,scores={wave1=5..}] run function coliseu/wave2
titleraw @a[r=256,tag=wave1] actionbar {"rawtext":[{"text":"Mate todas as criaturas: "},{"score":{"name":"*","objective":"wave1"}}]}
Thats the main function for wave1
After the player reaches 5 it will start wave2
tag @a add wave2
tag @a remove wave1
scoreboard players set @a wave1 0
Ok now am free
This is inside wave2 function
Wave1 was triggered by cmd block ?
No
After the player is sent to the arena, wave1 starts
Hmm are you even using cmd block?
- cmd block and functions have a lots of difference in cmd . That's why am asking
In the center of the arena the main function is executed by a command block
It execute at players in a range of 256 blocks
Really?, it's just a list of commands
That's what I always thought
Nope.
Cmd block execution default it's self.
But function it's on the entity that executed/mentioned before
Is that function is created by you?
I could replace it with command blocks, but it would be huge, because I plan to add 20 waves
Yes
Then forget about the cmds . Can you explain the details what do you want to happen in each situation.
We could ignore tellraw
Eg- if a player is on the radius to the cmd he want to run these cmd ,...
Not like this
I don't know how I should explain it to you
Imagine a wave system, each wave mobs spawns and you have to kill then
Step by step process. In each situation what gonna happen what not
Killing who?
Monsters
Zombies, skeletons, creepers etc
In wave 5 a boss will spawn at the center of the arena
So you can use a entity counter on mob . And if it reaches 0 the wave1 end wave2 start
Entity counter? How that works?
/scoreboard objectives add Count dummy
In chat

/scoreboard players reset @e[family=monster] Count

/execute positioned x y z as @e[family=monster,r=<radius to x y z>] run scoreboard players add Hostile Count
This cmd can be used in a different way on function.
But that would work with more than one player?
?
It's count the entity on a radius and give that value to the dummy player
What is the dummy player? Never heard about it, at least I don't remember
Dummy player is on the scoreboard.
They are not players. But you can add /substrate values for them.
Do
/scoreboard objectives setdisplay sidebar Count
On chat
I'm opening minecraft
Invite me then 😂
That's a great idea
MrGAmEsYT6408 <- my gamertag
I'm creating a new world, the world with the addon takes too long to open
What is yours? so I can invite you
._.
On the profile
Hey, thank you for helping me with this
I will let you know if the functions worked
Have a great night
It's morning for me lol
It was 2am for me
I was so tired that I couldn't understand a thing you did
Now while I was adding functions I started understand it
Now I know how to keep it going, with that I can add infinite waves
You're a life saver
Thank you so much
Hey, I ran across another "problem", we didn't thought about what happens after the last wave, currently it just set the Count to 0, but when the count is set to 0 instantly the wave1 starts again
After the last wave, it should also teleport the player to the main lobby
I'm thinking of, instead of it setting the count to 0 after the reset, it run a function, that function would teleport the player and after that set it to 0
Then add the same cmd that used on wave but in this case tp player. And remove the end cmd that helps to go back to 0.