Command Block Tutorial #177: Armor Bed Commands in Minecraft (1.19+)
In this video I will show how to give yourself a full armor set when sleeping in a certain bed
Commands:
Scoreboard Commands
- To Add: /scoreboard objectives add Armor_Bed minecraft.custom:minecraft.sleep_in_bed
- To Remove: /scoreboard objectives remove Armor_Bed
* White Bed:
1. Repeater Command Block: /execute as @r at @s if block ~ ~ ~ minecraft:white_bed run execute as @r at @s if entity @s[scores={Armor_Bed=1..}] run scoreboard players set @e[scores={Armor_Bed=1..}] Armor_Bed 0
2. Chain Command Block: /item replace entity @p armor.feet with minecraft:iron_boots
3. Chain Command Block: /item replace entity @p armor.legs with minecraft:iron_leggings
4. Chain Command Block: /item replace entity @p armor.chest with minecraft:iron_chestplate
5. Chain Command Block: /item replace entity @p armor.head with minecraft:iron_helmet
* Light Blue Bed:
1. Repeater Command Block: /execute as @r at @s if block ~ ~ ~ minecraft:light_blue_bed run execute as @r at @s if entity @s[scores={Armor_Bed=1..}] run scoreboard players set @e[scores={Armor_Bed=1..}] Armor_Bed 0
2. Chain Command Block: /item replace entity @p armor.feet with minecraft:diamond_boots
3. Chain Command Block: /item replace entity @p armor.legs with minecraft:diamond_leggings
4. Chain Command Block: /item replace entity @p armor.chest with minecraft:diamond_chestplate
5. Chain Command Block: /item replace entity @p armor.head with minecraft:diamond_helmet
* Black Bed:
1. Repeater Command Block: /execute as @r at @s if block ~ ~ ~ minecraft:black_bed run execute as @r at @s if entity @s[scores={Armor_Bed=1..}] run scoreboard players set @e[scores={Armor_Bed=1..}] Armor_Bed 0
2. Chain Command Block: /item replace entity @p armor.feet with minecraft:netherite_boots
3. Chain Command Block: /item replace entity @p armor.legs with minecraft:netherite_leggings
4. Chain Command Block: /item replace entity @p armor.chest with minecraft:netherite_chestplate
5. Chain Command Block: /item replace entity @p armor.head with minecraft:netherite_helmet
* Red Bed:
1. Repeater Command Block: /execute as @r at @s if block ~ ~ ~ minecraft:red_bed run execute as @r at @s if entity @s[scores={Armor_Bed=1..}] run scoreboard players set @e[scores={Armor_Bed=1..}] Armor_Bed 0
2. Chain Command Block: /item replace entity @p armor.feet with minecraft:air
3. Chain Command Block: /item replace entity @p armor.legs with minecraft:air
4. Chain Command Block: /item replace entity @p armor.chest with minecraft:air
5. Chain Command Block: /item replace entity @p armor.head with minecraft:air
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.