Saving teams
I would like to assign teams for my class for a long-term game.
I have three teams: yellow, blue and red and would like to arrange it so their name reflects the colour of their team (as well as sort out friendly fire, chat, etc.)
1) Is it possible to code this in advance so that when a player pushed a button that corresponds to their team colour get automatically assigned with all the settings as above? - if so, how does one go about this?
2) Does the game automatically save all the team details, so that when we play again the following day, we can just crack straight on?
-
I am not exactly sure this is possible
The reason for this is that Minecraft edu edition does not have teams like java, Java edition has like /team add and ectWhat you could do is set a different respawn point for each team by doing /spawnpoint <player's name> and just have colored leather armor, still, this is not exactly what you are going for, (I'm guessing) I would think it would be impossible to make the teams have PVP to each other but a way to define the teams is having all the people their own code builder open with the following code:
let pos2 = 0player.onChat("e", function () {while (true) {blocks.place(LAPIS_LAZULI_BLOCK, pos(0, 3, 0))if (pos2) {pos2 = 0blocks.replace(AIR,LAPIS_LAZULI_BLOCK,pos(2, 4, -2),pos(-2, 2, 2))}}})player.onTravelled(WALK, function () {pos2 = 1})player.onTravelled(FALL, function () {pos2 = 1})player.onTravelled(SPRINT, function () {pos2 = 1})but replace the Lapis block with whatever block the team is.somewhat for the PVP aspect, you could put a repeating command block in the team's bases (if you will have bases) that hasgamemode a @a[r=<radius>]then have another that always sets it to gamemode sNOTE: MAKE A LEVER AND MAKE THE COMMAND BLOCKS NEEDS REDSTONE(or else you are going to be in survival for a lonnggggg time)I am sorry I could not help much... if you have any more questions on the code or the command blocks just say Zachary Neal in your response
1 -
Thank you Zachary Neal, great advice!
1 -
Zachary Neal, thanks for that.
My students are iPad users and have no coding experience so I need a cleaner solution. ! Eric, it is a mix between pvp and survival.
Three tribes will teleport to their own areas during the "opening ceremony" - from this point on, they must work as a tribe to survive and explore to gain resources etc. I am then throwing in some set pieces that are coded to switch their modes to adventure when they enter that area (mini-game) and back again after. They will need to mine and build for the most part of the game.
If the team thing won't work, then hopefully the first challenge will ensure that they remain in their tribes when they log back in. The first challenge is to create their settlement which includes a bed for each tribe member - so if I am correct, once they all sleep in their bed to complete the first challenge, it will save their individual spawn points.
As the gamemode will switch throughout, will Eric's suggestion work, and if so, how do I go about this??
0 -
So can you use code builder yourself?
If so I can try to make it for all your students
(only you need to run it)0 -
Thanks Eric - I have my world set up ready with teleporters and a big firework display for the opening ceremony. The tribes are organised in real life but I just wanted it to be neat and tidy on the actual game. It's a shame that on EE we don't have the same option to have team colours etc.
In class, the students will take part in challenges that can earn them resources in the game or other rewards as they go through, depending on what they need. I have all the points written in a notepad so I can quickly teleport and hover above them to see what they are doing,
0 -
If you have a bit of Minecraft coding experience you could make an array of all your students and make it so for each var in array make it so it makes clears the block then places with a certain player ill make a demo a bit later
0 -
Oh, interesting discussion. Zachary Neal, I may try to call on you for some command block code advice for some other questions I have asked elsewhere. It looks like you have some experience with this stuff.
Though I have never really looked into or studied this, I know in Java you can create score boards to track things for games/teams etc. So is something like this NOT possible for Bedrock (and therefore MEE)?
Goodness knows I've struggled with commands (most any) in Bedrock as compared to Java and now I'm trying to figure out MEE and I'm actually struggling with coding the agent to get through the vertical maze!!!! Ugh I don't think I'm logically challenged but he is getting his head stuck in the blocks above and not moving forward properly! It must be a trick!
Anyway, back to the game at hand. Perhaps some name tagged items and then a command to test for the tags which would be different for each team? I don't know how convenient something like that would be though. I expect the score board might be useful for the game even if it doesn't take care of the teams the way it can in Java. Sorry, I'm just tossing around some Ideas and I really don't know if/how they would work for your plan so Hopefully the guys who do know will have something for you soon.
0 -
just a idea a way to display short amounts of text is saying /title <target> title(for in mid of screen)/subtitle(a bit lower)/actionbar(near hotbar) ex: /title @s actionbar {"text":"actionbar"}
you might need to do {"text":""} or just plain old /title <player> <where> <text>
0 -
Chris Fuge gave me a bunch of help over on an unrelated post but some of what he did to help me with my project could totally help you with this. Here is a link to that thread https://educommunity.minecraft.net/hc/en-us/community/posts/360074667732-Assigned-Plots-especially-for-a-Server-set-up-
He linked a video about score board commands that I found very easy to follow.
https://drive.google.com/file/d/1ND6Mq6yZ7AQjWrBBOJNcfpg0HHiQw9j0/view
0 -
Thank you, Aleece!
0 -
How can I play PvP maps with other people because I don’t have anyone to play with ?
0
Please sign in to leave a comment.
Comments
11 comments