How to calculate multiple objectives into team scores – Minecraft Command Blocks Guide



Minecraft Viki (video wiki) ➜ https://minecraft.viki.gg

#teamscores #minecraft #commandblock

In this lesson we learn how to create teams and track multiple objectives of multiple people within a team.
Then combine them into a team score.

Working with command blocks might look difficult, but once you get the hang of it, it becomes relatively easy. In our command blocks guides we aim to cover the basics and not only show how it’s done but also teach you how to do it.
To say it in a famous saying: Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
All command are made for minecraft 1.16 and specifically made in 1.16.5

All command lessons are made in the engine room of a Minecraft minigame completely created with command blocks and will help visualize how to effectively use it in a mini game or on a server.

0:00 Intro & Example
3:04 Setting up the scoreboard

10:07 Creating operations and teams

All tutorials are made in the Forgotten Colonies server, read more about it here:
https://www.forgottencolonies.com/

Check out the entire playlist here:
https://www.youtube.com/watch?v=x_l5RCVrdlE&list=PLHd3EltAylPSbwBEpmOnOgI–sXhiBtrG

In this guide we learn the following things:
– How to make scoreboard objectives
– How to display objectives on the sidebar
– How to set values for objectives
– How to use scoreboard operation to calculate team scores
– How to modify scoreboard objectives
– How to create, modify, leave and join teams

Commands used:
Add scoreboard objectives
– scoreboard objectives add test_calc dummy
– scoreboard objectives add test_score dummy
– scoreboard objectives add tDiamondOre minecraft.mined:minecraft.diamond_ore
– scoreboard objectives add bDiamondOre minecraft.used:minecraft.diamond_ore {“text”:”Diamond Ore Placed”,”color”:”red”}

Set display on sidebar
– scoreboard objectives setdisplay sidebar test_calc

Set values in objectives
– scoreboard players set aqua test_calc 0
– scoreboard players set aqua tDiamondOre 1

Modify scoreboard objectives
– scoreboard objectives modify tDiamondOre displayname “Diamond Ore Mined”
– scoreboard objectives modify tDiamondOre displayname {“text”:”Diamond Ore Mined”,”color”:”aqua”}

Set operations to calculate the team score
– scoreboard players operation aqua test_calc += @a[team=aqua] tDiamondOre
– scoreboard players operation aqua test_calc -= @a[team=aqua] pDiamondOre
– scoreboard players operation aqua test_score = aqua test_calc

team commands
– team add aqua
– team join aqua
– team join aqua aqua
– team join aqua Skylords
– team modify aqua color aqua
– team leave aqua

Reset scores
– scoreboard players reset aqua

Subscribe! Subscribing is free and helps us grow

Join our discord:
https://discord.gg/CDtGd7x

Join this channel to get access to perks:
https://www.youtube.com/channel/UCxnPA3lQx8rBUzEpdIgzOaA/join

source

5 thoughts on “How to calculate multiple objectives into team scores – Minecraft Command Blocks Guide”

  1. When I use this calc, each player is adding the total team scores, so the score is multiplying by the number of players there are. Would you please let me know, what am I doing wrong? Thank you

    Reply

Leave a Comment