Adding and Removing Teams - Create Your Own Minigame - Paper 1.17 - Minecraft Command Blocks - Ep. 4
Inactive teams tend to get removed, so let's start using repeat command blocks to ensure teams always exist.
With that same feature we easily reset the teams when the game stops to be instantly rebuild in a new team.
But first let's add a teleport into our written command book.
The server we run is brandnew Paper Spigot 1.17 Java Edition Minecraft
Read more at: https://papermc.io/
Using Notepadd++ which your can get from here:
- https://notepad-plus-plus.org/downloads/
You will learn the following things:
➡️ Adding a teleport onclick event to a written book
➡️ Changing the display name color of a book
➡️ Using Repeat command blocks
➡️ Creating and modifying teams
➡️ Set world guard region flags in command blocks
➡️ Remove all entities from a team using the asterix
0:00 Intro
0:38 Add Teleport to book
2:37 Spawn corrections
3:53 Teleport everyone to spawn on stop command
5:01 Fix inactive teams dissapearing
8:00 Removing teams on stop command
9:20 Adding Placeholder player to teams
14:06 Disabling PVP and spawn exit
#team #commandblock #minecraft
Commands used:
𝗪𝗿𝗶𝘁𝘁𝗲𝗻 𝗕𝗼𝗼𝗸
📇 give @p[gamemode=creative,distance=..3] minecraft:written_book{pages:["[{text:'Game Mechanics\\n\\n'}, {text:'Start\\n\\n', color:green, bold:true, clickEvent:{action:'run_command', value:'/setblock 46 60 58 minecraft:redstone_block replace'}},{text:'Stop\\n\\n', color:red, bold:true, clickEvent:{action:'run_command', value:'/setblock 52 60 58 minecraft:redstone_block replace'}}]","[{text:'Teleports\\n\\n'}, {text:'Engine\\n\\n', color:aqua, bold:true, clickEvent:{action:'run_command', value:'/teleport @s 54 61 63'}}]"],title:"Operations Manual",author:"Reaper Iru",display:{Name:'{"text":"Operation Guide", "color":"red"}'}} 1
𝗧𝗲𝗮𝗺 𝗰𝗼𝗺𝗺𝗮𝗻𝗱𝘀 (repeat)
📇 team add yourteamname
📇 team join yourteamname yourscoreboardname
📇 team modify yourteamname displayName {"text":"yourdisplayname", "color":"yourdisplaycolor"}
📇 team modify yourteamname color yourteamcolor
📇 team modify yourteamname friendlyFire false
𝗦𝘁𝗼𝗽 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀
📇 teleport @a ~ ~ ~
📇 rg flag -w "yourworldname" yourworldspawnname pvp deny
📇 rg flag -w "yourworldname" yourworldspawnname exit deny
📇 team remove yourteamname (add command blocks for all your teams)
📇 scoreboard players reset * inTeam
𝗦𝘁𝗮𝗿𝘁 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀
📇 rg flag -w "yourworldname" yourworldspawnname exit allow
Subscribe! Subscribing is free and helps us grow
❤️ https://www.youtube.com/channel/UCxnPA3lQx8rBUzEpdIgzOaA?sub_confirmation=1
Join our discord:
💬 https://discord.gg/mA6mtMq
Join this channel to get access to perks:
💸 https://www.youtube.com/channel/UCxnPA3lQx8rBUzEpdIgzOaA/join
Other Videos By Forgotten Games
Other Statistics
Minecraft Statistics For Forgotten Games
Forgotten Games presently has 156,090 views for Minecraft across 40 videos, with His channel uploaded over 1 day worth of Minecraft videos. This makes up 5.18% of the content that Forgotten Games has uploaded to YouTube.