189: Detect where a snowball lands. [Minecraft Map Making]
Ep189: Executing a command at the place where a snowball lands.
Java Version: 1.19
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.
Commands used:
Setup:
IUN: scoreboard objectives add snowball used:snowball
Give snowball:
IUN: give @p snowball{checkMe:true}
Controller:
RUA: execute as @a[scores={snowball=1..}] anchored eyes at @s positioned ^ ^ ^0.5 at @e[type=snowball,nbt={Item:{tag:{checkMe:true}}},limit=1] run summon snowball ~ ~ ~ {Tags:["init","fix"],Passengers:[{id:"minecraft:area_effect_cloud",Duration:6000,Tags:["runHere"]}]}
CUA: scoreboard players reset @a snowball
CUA: execute at @e[type=snowball,tag=init] as @e[type=snowball,tag=!init,distance=..0.1,limit=1] store success entity @s Pos[1] double -2112 run data modify entity @e[type=snowball,tag=init,distance=..0.1,limit=1] Motion set from entity @s Motion
CUA: tag @e[type=snowball,tag=init] remove init
CUA: execute as @e[type=snowball,tag=fix] store result entity @s Air short -1 run data get entity @s Air
CUA: execute as @e[type=area_effect_cloud,tag=runHere] at @s unless entity @e[type=snowball,distance=..0.5,limit=1] store success entity @s Duration int 0 run particle flame ~ ~ ~ 0.5 0.5 0.5 0.01 100 normal
Other Videos By Infernal Device
Other Statistics
Minecraft Statistics For Infernal Device
At present, Infernal Device has 183,167 views spread across 870 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.