Command Block Tutorial #280: Improved Smoke Bomb Commands in Minecraft (1.21.5+)
In this video I will show an updated version of how to get an item that allows you to get away easily and blindside your enemies.
Previous smoke bomb video: • Command Block Tutorial #134: Smoke Bomb Co...
Scoreboard Commands:
To add: /scoreboard objectives add Smoke_Bombs minecraft.used:minecraft.snowball
To remove: /scoreboard objectives remove Smoke_Bombs
To get the Smoke Bomb:
/give @p snowball[custom_name={"bold":true,"color":"gray","italic":false,"text":"Ninja Smoke Bomb"},custom_data={Smoke_Bomb:1b},enchantment_glint_override=true] 1
To activate the Smoke Bomb:
1. Repeater Command Block: /execute at @p run execute if entity @p[nbt={SelectedItem:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}}] run execute as @e[type=minecraft:snowball] at @s run summon area_effect_cloud ~ ~ ~ {Particle:{type:"block",block_state:"minecraft:air"},Duration:2,Tags:["smoke_bomb"]}
2. Repeater Command Block: /execute at @p run execute if entity @p[nbt={SelectedItem:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}}] run execute as @e[type=minecraft:snowball] at @s run particle minecraft:smoke ~ ~ ~ 0.1 0.1 0.1 0.01 15 force
3. Repeater Command Block: /execute at @p run execute if entity @p[nbt={SelectedItem:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}}] run execute unless entity @e[type=snowball,nbt={Item:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}}]
4. Impulse Command Block: /execute as @e[type=minecraft:area_effect_cloud,tag=smoke_bomb] at @s unless entity @e[type=minecraft:snowball,distance=..3] run effect give @e[tag=Smoke_Bomb_Thrower,distance=0..3] minecraft:invisibility 15 1 true
5. Impulse Command Block: /execute as @e[type=minecraft:area_effect_cloud,tag=smoke_bomb] at @s unless entity @e[type=minecraft:snowball,distance=..3] run particle smoke ~ ~ ~ 1 1 1 1 2500
6. Impulse Command Block: /execute as @e[type=minecraft:area_effect_cloud,tag=smoke_bomb] at @s unless entity @e[type=minecraft:snowball,distance=..3] run effect give @e[tag=!Smoke_Bomb_Thrower,distance=0..3] minecraft:blindness 15 1 true
7. Impulse Command Block: /execute at @p[tag=Smoke_Bomb_Thrower] run tag @p[tag=Smoke_Bomb_Thrower] remove Smoke_Bomb_Thrower
8. Repeater Command Block: /execute at @p run execute if entity @p[nbt={SelectedItem:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}}]
9. Repeater Command Block: /execute as @r at @s if entity @s[scores={Smoke_Bombs=1..}] run scoreboard players set @e[scores={Smoke_Bombs=1..}] Smoke_Bombs 0
10. Chain Command Block: /execute at @p run item replace entity @p weapon.mainhand with minecraft:snowball[custom_name={"bold":true,"color":"gray","italic":false,"text":"Ninja Smoke Bomb"},custom_data={Smoke_Bomb:1b},enchantment_glint_override=true]
11. Chain Command Block: /execute at @p run tag @p add Smoke_Bomb_Thrower
12. Repeater Command Block: /execute at @p[tag=Smoke_Bomb_Thrower] run execute if entity @e[type=snowball,nbt={Item:{id:"minecraft:snowball",count:1,components:{"minecraft:custom_data":{Smoke_Bomb:1b}}}},distance=4..]
13. Impulse Command Block: /execute at @p[tag=Smoke_Bomb_Thrower] run tag @p[tag=Smoke_Bomb_Thrower] add Too_Far
14. Impulse Command Block: /execute at @p[tag=Too_Far] run tag @p[tag=Too_Far] remove Too_Far
15. Repeater Command Block: /execute as @e[type=minecraft:area_effect_cloud,tag=smoke_bomb] at @s unless entity @e[type=minecraft:snowball,distance=..3] run effect clear @e[tag=Too_Far,distance=0..3] minecraft:invisibility
Music:
1. Gaming Sound FX:
Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
• Monkeys Spinning Monkeys (Kevin MacLeod) -...
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.