Minecraft Blogs / Article

How to make exploding snowballs when you throw them (only 2 commands)

  • 27,434 views, 14 today
  • 13
  • 4
  • 13
Veritas025 avatar Veritas025
Level 54 : Grandmaster Engineer
36
Command block setupundefined

Commands
Ok so set Set up the command blocks in your minecraft world like the picture shows Then add a 4 repeater clock (2 repeaters on each side) and set the tick delay to 3.
So in the left command block (attachted to the clock) put in 
/execute @e[type=Snowball] ~ ~ ~ summon PrimedTnt
and then in the command block attatched to the repeater put
/kill @e[type=Snowball] 
So what this does wherever there is a snowball it will blow up when the command block is activated that's why we want a slow clock.

     
      Or if you want to use an extra command block (so tough) You can have a normal clock the fastest one possible do
/testfor @e[type=Snowball] then after about 5 or 6 ticks however many repeaters you want to delay then do the  execute above. So let's say you use 5 repeaters on maximim delay. So that is 2.0 seconds. So after the snowball is alive for 2 seconds it will explode and then have a command block right next to it doing /kill @e[type=Arrow]
Tags

1 Update Logs

Update #1 : by Veritas025 05/05/2015 12:59:37 pmMay 5th, 2015

Explained how to use testfor, and added better thumbnail

Create an account or sign in to comment.

1
12/18/2015 11:35 am
Level 1 : New Miner
TheMasterChief1
TheMasterChief1 avatar
i am making an op pvp and want gernades...but they will sometimes explode in the air,therefor killing yourself do you know how to make them explode on impact?
1
11/18/2014 4:38 pm
Level 14 : Journeyman Engineer
BBaoVanC
BBaoVanC avatar
I have an idea of how to make every snowball explode on a timing! Here:
change the execute command to: /execute @e[type=Snowball, score_life_min=30] ~ ~ ~ summon PrimedTnt
and add a scoreboard like this: /scoreboard objectives add life stat.timeSinceLastDeath Ticks lived
The snowballs should explode after they have gone for 1 second if I estimated right.
1
11/18/2014 5:39 pm
Level 54 : Grandmaster Engineer
Veritas025
Veritas025 avatar
I wish I could diamond or favorite comments, but I have another way (your way didn't work the command didn't the add scoreboard was find) but I did /testfor @e[type=snowball] comparator 5 tick delay and it turns out it works perfectly
1
11/22/2014 4:01 pm
Level 14 : Journeyman Engineer
BBaoVanC
BBaoVanC avatar
I found the problem! Do these two commands;
/scoreboard objectives remove life
command two:
/scoreboard objectives add life stat.timeSinceDeath Ticks lived

Now it should work with 1.8 only. Make sure to use 1.8!
1
04/21/2015 2:05 pm
Level 54 : Grandmaster Engineer
Veritas025
Veritas025 avatar
I didn't really understand scoreboards back then so I didn't know what you were saying, now I do but what I did actually was have a 2 tick repeater clock constantly doing /testfor @e[type=Snowball] ~ ~ ~ then I had comparator and then I had 6 repeaters then they all equaled to two seconds so it would explode after 2 seconds then more repeaters could increase the time
1
11/18/2014 4:11 pm
Level 3 : Apprentice Miner
Elf_Lover
Elf_Lover avatar
Darude - Sandstorm
1
11/19/2014 1:44 pm
Level 81 : Elite Architect
Nefashus
Nefashus avatar
fgt
1
11/18/2014 5:59 pm
Level 12 : Journeyman Network
CrumpetBobner
CrumpetBobner avatar
What does that mean
1
11/18/2014 11:51 am
Level 12 : Journeyman Network
CrumpetBobner
CrumpetBobner avatar
It Looks Cool

Looks like you had fun with it too XD
1
11/18/2014 12:41 pm
Level 54 : Grandmaster Engineer
Veritas025
Veritas025 avatar
lol I needed to "test" it to make sure it works
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome