Command Block Tutorial #169: Potion Shield Commands in Minecraft (1.19+)
In this video I will show how to give yourself some potion effects after blocking enemy attacks/fire with a certain shield.
Previous potion video: https://youtu.be/hBd3mlRNvcw
Commands:
To get the 6 potion shields:
* Speed Blocker Shield: /give @p minecraft:shield{Unbreakable:1b,display:{Name:"{\"text\":\"Speed Blocker Shield\"}"}}
* Counter Shield: /give @p minecraft:shield{Unbreakable:1b,display:{Name:"{\"text\":\"Counter Shield\"}"}}
* Shadow Shield: /give @p minecraft:shield{Unbreakable:1b,display:{Name:"{\"text\":\"Shadow Shield\"}"}}
* Life Support Shield: /give @p minecraft:shield{Unbreakable:1b,BlockEntityTag:{Base:0,Patterns:[{Color:14,Pattern:"sc"}]},display:{Name:"{\"text\":\"Life Support Shield\"}"}}
* Fire Shield: /give @p minecraft:shield{Unbreakable:1b,BlockEntityTag:{Base:1,Patterns:[{Color:4,Pattern:"flo"},{Color:1,Pattern:"bri"},{Color:4,Pattern:"bt"},{Color:1,Pattern:"cr"},{Color:4,Pattern:"bts"},{Color:4,Pattern:"gru"}]},display:{Name:"{\"text\":\"Fire Shield\"}"}}
* Netherite Shield: /give @p minecraft:shield{Unbreakable:1b,BlockEntityTag:{Base:15,Patterns:[{Color:7,Pattern:"bri"},{Color:7,Pattern:"cr"},{Color:15,Pattern:"gru"},{Color:7,Pattern:"gra"}]},display:{Name:"{\"text\":\"Netherite Shield\"}"}}
Scoreboard Commands:
- To add: /scoreboard objectives add Potion_Shield minecraft.used:minecraft.shield
- To remove: /scoreboard objectives remove Potion_Shield
To activate the Shields
Speed Blocker Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Speed Blocker Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /effect give @p minecraft:speed 5 1 true
Counter Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Counter Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /effect give @p minecraft:strength 2 4 true
Shadow Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Shadow Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /effect give @p minecraft:invisibility 30 1 true
3. Chain Command Block: /execute at @p run effect give @e[name=!RedstoneKnightX] minecraft:blindness 30 1 true
Life Support Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Life Support Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /execute at @p run effect give @e[type=player,distance=0..5] minecraft:regeneration 5 3 true
Fire Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Fire Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /effect give @p minecraft:fire_resistance 15 1 true
Netherite Shield:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:shield",tag:{display:{Name:"{\"text\":\"Netherite Shield\"}"}}}]}] run scoreboard players set @e[scores={Potion_Shield=1..}] Potion_Shield 0
2. Chain Command Block: /effect give @p minecraft:resistance 45 4 true
3. Chain Command Block: /effect give @p minecraft:fire_resistance 45 4 true
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.