433: Alternate smoke bomb. [Minecraft Map Making]

Subscribers:
3,860
Published on ● Video Link: https://www.youtube.com/watch?v=VVzeTl2JH7Q



Duration: 0:00
280 views
23


Membership:
Ep433: A new version of the smoke bomb that is better for performance.

00:00 Intro
00:50 Setup
01:10 Give smoke bomb
02:45 Controller
11:45 Waffling

Version: 1.21

Command help: GalSergey

Previous version - 366: Smoke Bomb. Updated to 1.21:    • 366: Smoke Bomb. Updated to 1.21. [Mi...  
Pre 1.20.5 version - 52: Smoke bomb:    • 52: Smoke bomb [Minecraft Map Making]  

Commands, builds, hacks and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.176.10:28386
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" and "less than" with the appropriate angled bracket.

Commands used:

Setup:
IUN: scoreboard objectives add smoke_bomb dummy

Give:
IUN: give @s gray_dye[custom_data={bomb:"smoke"},item_name='"Smoke Bomb"',lore=['"Throw it for big smoke."']]

Controller:
RUA: execute as @e[type=item] unless score @s smoke_bomb = @s smoke_bomb if predicate
{condition:"minecraft:entity_properties",entity:"this",predicate:{slots:{contents:{items:"minecraft:gray_dye",count:1,
predicates:{"minecraft:custom_data":"{bomb:'smoke'}"}}},flags:{is_on_ground:true}}} store success entity @s PickupDelay short 32767
store success entity @s Age short 5900 store success score @s smoke_bomb at @s run playsound minecraft:block.fire.extinguish ambient @a ~ ~ ~ 1 0

CUA: execute at @e[type=item,scores={smoke_bomb=1}] run particle campfire_cosy_smoke ~ ~0.5 ~ 1 1 1 0 100