How to /testfor snowball a snowball hitting the ground or mobs? [duplicate]
I decided to make a snowball grenade, but I stuck at how to /testfor the snowball when it hits a mob or the ground. Is there a scoreboard command that can help me? For example
/scoreboard players set @e[type=snowball] hit 1 {onground:1b}
Best Answer
Constantly teleport an invisible entity to the snowball. Execute off of the invisible entity and test for the snowball. If it's not there, it's hit the ground.
Pictures about "How to /testfor snowball a snowball hitting the ground or mobs? [duplicate]"
![How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Woman and Child Playing in Snow How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Woman and Child Playing in Snow](/assets/images/how_to_testfor_snowball_a_snowball_hitting_the_ground_or_mobs_duplicate_1.jpeg)
![How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Delighted multiethnic girlfriends in outerwear laughing widely while having fun together in winter snowy park How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Delighted multiethnic girlfriends in outerwear laughing widely while having fun together in winter snowy park](/assets/images/how_to_testfor_snowball_a_snowball_hitting_the_ground_or_mobs_duplicate_2.jpeg)
![How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Laughing female friends in warm clothes standing near stone wall covered with snow and playing snowballs in winter How to /testfor snowball a snowball hitting the ground or mobs? [duplicate] - Laughing female friends in warm clothes standing near stone wall covered with snow and playing snowballs in winter](/assets/images/how_to_testfor_snowball_a_snowball_hitting_the_ground_or_mobs_duplicate_3.jpeg)
How do you know if a snowball hits the ground in Minecraft?
Repeating, Unconditional, Needs Redstone: execute at @e[type=minecraft:armor_stand,tag=grenade] unless entity @e[type=minecraft:snowball,distance=.. 2] run summon tnt. Chain, Unconditional, Always Active: kill @e[type=minecraft:armor_stand,tag=grenade]How do you increase snowball damage in Minecraft?
So, let's get started!7 fun Snowball commands
More answers regarding how to /testfor snowball a snowball hitting the ground or mobs? [duplicate]
Answer 2
Or else use fire. Try something like /execute @[type=snowball] ~ ~ ~ /setblock ~ ~ ~ fire And then test if the fire was placed or not with conditional or something along those lines. Idea from TheRedEngineer Check this video:
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Victoria Borodinova, Victoria Borodinova, Liza Summer, Liza Summer
