235: Last player in the arena. [Minecraft Map Making]
Ep235: Checking which player is the last to be inside an arena.
Java Version: 1.19
Requested by: Riyoku
Commands, builds and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" with the appropriate angled bracket. Ascii code: 62
Commands used:
Setup:
IUN: scoreboard objectives add count dummy
CUA: scoreboard objectives add died deathCount
Displaying the score:
IUN: scoreboard objectives setdisplay sidebar count
Hiding the score:
IUN: scoreboard objectives setdisplay sidebar
Summon marker:
IUN: summon armor_stand x y z {Tags:["middle"]}
Summon marker:
IUN: summon armor_stand x y z {Tags:["middle"]}
Teleport players:
IUN: tp @a x y z
Controller [Distance from marker]:
RUA: execute store result score players.alive count at @e[tag=middle] if entity @a[distance=0..1.5]
CUA: execute if score players.alive count matches 1 at @e[tag=middle] as @a[distance=0..1.5] run tag @s add winner
CCA: tp @a[tag=winner] x y z
CCA: say @a[tag=winner] is the winner
CUA: tag @a remove winner
Controller [Distance from coordinates]:
RUA: execute store result score players.alive count positioned x y z if entity @a[distance=0..1.5]
CUA: execute if score players.alive count matches 1 positioned x y z as @a[distance=0..1.5] run tag @s add winner
CCA: tp @a[tag=winner] x y z
CCA: say @a[tag=winner] is the winner
CUA: tag @a remove winner
Controller [Area]:
RUA: execute store result score players.alive count if entity @a[x=14,y=56,z=328,dx=2,dy=2,dz=2]
CUA: execute if score players.alive count matches 1 run tag @a[x=14,y=56,z=328,dx=2,dy=2,dz=2] add winner
CCA: tp @a[tag=winner] x y z
CCA: say @a[tag=winner] is the winner
CUA:tag @a remove winner
Controller [Deaths]:
RUA: execute store result score players.alive count if entity @a[scores={died=0}]
CUA: execute if score players.alive count matches 1 run tag @a[scores={died=0}] add winner
CCA: tp @a[tag=winner] x y z
CCA: say @a[tag=winner] is the winner
CUA: tag @a remove winner
CUA: scoreboard players set @a died 0
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 181,722 views spread across 860 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.