Everything, as you can imagine, works fine, but I would love to have a delay or something so that the thrower of the snowball isn't immediately struck, but it works the same way. It's crucial that the lightning strikes the projectile as normal, so don't try to give me a command for a carrot on a stick that summons lightning or something, I already have that.
Could someone give me a command (or a few) to make this delay? (or however this is possible.)
The Meaning of Life, the Universe, and Everything.
Join Date:
3/19/2013
Posts:
59
Minecraft:
Jaetpack1
Member Details
Do you want the snowball to keep going after being struck or not? I am thinking of a way to do this, but it depends if you want the snowball to keep going or not.
Yes, I do want it to continue on it's path. I need the snowball to hit something so that the lightning bolts surrounding the snowball (if you have tried it in your world, this will make perfect sense) can damage the surrounding area. This is happening with the command I have right now. Like I stated, the issue is that the thrower is also damaged by the surrounding lightning, so I would like to make it so that the snowballs wont hurt them.
I'm having trouble understanding what you mean. I admit that before I tried to see what you were saying, I just copied and pasted the commands into two connected command blocks but it didn't work, so I tried doing it without the score, but it didn't work, so I tried to find out what the issue was, and it should've been working...but it wasn't.
Could you give me more of a step by step sort of thing because I'm such a noob at commands?
I'm having trouble understanding what you mean. I admit that before I tried to see what you were saying, I just copied and pasted the commands into two connected command blocks but it didn't work, so I tried doing it without the score, but it didn't work, so I tried to find out what the issue was, and it should've been working...but it wasn't.
Could you give me more of a step by step sort of thing because I'm such a noob at commands?
Thanks!
Nobody's consider as noob at commands,
we all started from nothing.
ok, step
1. type /scoreboard objectives add abc dummy in chat
2. place a repeating command block,
type /scoreboard players add @e[type=snowball] abc 1 in it.
3. place a chain command block attaching the repeating commnd block,
type /execute @e[type=snowball,score_abc_min=20] ~ ~ ~ /summon lightning_bolt in it.
4. activate the repeating command block (actually, this doesn't need an order...)
Then it should be done! However, this applies to all snowballs, including snow golems XD
Nobody's consider as noob at commands,
we all started from nothing.
ok, step
1. type /scoreboard objectives add abc dummy in chat
2. place a repeating command block,
type /scoreboard players add @e[type=snowball] abc 1 in it.
3. place a chain command block attaching the repeating commnd block,
type /execute @e[type=snowball,score_abc_min=20] ~ ~ ~ /summon lightning_bolt in it.
4. activate the repeating command block (actually, this doesn't need an order...)
Then it should be done! However, this applies to all snowballs, including snow golems XD
What do you mean by "chain command block"? Neither repeaters nor comparators has made the command trigger for me.
If you are still able to see this reply, this means that u r... lucky? XD
If the command block you wanna trigger is a chain command block,
of course it won't work.
To make chain command blocks able to do stuff, you need to point a command block to the chain command block. For example, a repeating command block points into the chain command block will cause both commands to work repeatedly.
If it's an impulse or repeating command block, most likely it is because
1. It is set to Always Active mode. Change it back to Need Redstone mode, so comparators and repeaters work on them (also any redstone signals.)
2. There's is another redstone signal activating it, could be a redstone torch below, a redstone block, something like that. Remove it if it exists.
For my command, It's only 2 command blocks, repeating command block and a chain command block.
"Textual" demonstration:
(R=Repeating command block
C=Chain command block
> or < = pointing direction (Yes, I only need 2 for demonstration))
R> C>
They are attached, and it's activated by the repeating command block with Always Active mode.
This is an old thread, I know, but 1.13 changes the execute command. I managed to come up with this command: execute at @e[type=snowball] run summon minecraft:lightning_bolt ~ ~ ~ but have the same issue that lightning summons at the snowball all the way to the ground. I want the lightning to summon when the snowball lands. I tried adding nbt={OnGround:1} after snowball but that didn't work either.
First off, I'd like to point out that I'd like an expert to explain this to me, and I would like this for minecraft 1.11.
I have a command block that makes lightning strike a @e[type=snowball] whenever it appears.
This is the noob-ish console command:
/execute @e[type=snowball] ~ ~ ~ /summon lightning_bolt
Everything, as you can imagine, works fine, but I would love to have a delay or something so that the thrower of the snowball isn't immediately struck, but it works the same way. It's crucial that the lightning strikes the projectile as normal, so don't try to give me a command for a carrot on a stick that summons lightning or something, I already have that.
Could someone give me a command (or a few) to make this delay? (or however this is possible.)
Thanks!
Do you want the snowball to keep going after being struck or not? I am thinking of a way to do this, but it depends if you want the snowball to keep going or not.
Yes, I do want it to continue on it's path. I need the snowball to hit something so that the lightning bolts surrounding the snowball (if you have tried it in your world, this will make perfect sense) can damage the surrounding area. This is happening with the command I have right now. Like I stated, the issue is that the thrower is also damaged by the surrounding lightning, so I would like to make it so that the snowballs wont hurt them.
Thanks!
If you want any delay on command execution,
add them score and detect whether it exceeds the score value or not.
I.E.
/scoreboard players add @e[type=snowball] abc 1
/execute @e[type=snowball,score_abc_min=10] ~ ~ ~ /summon lightning_bolt
rmb to create a score name (abc for this one)
I'm having trouble understanding what you mean. I admit that before I tried to see what you were saying, I just copied and pasted the commands into two connected command blocks but it didn't work, so I tried doing it without the score, but it didn't work, so I tried to find out what the issue was, and it should've been working...but it wasn't.
Could you give me more of a step by step sort of thing because I'm such a noob at commands?
Thanks!
Nobody's consider as noob at commands,
we all started from nothing.
ok, step
1. type /scoreboard objectives add abc dummy in chat
2. place a repeating command block,
type /scoreboard players add @e[type=snowball] abc 1 in it.
3. place a chain command block attaching the repeating commnd block,
type /execute @e[type=snowball,score_abc_min=20] ~ ~ ~ /summon lightning_bolt in it.
4. activate the repeating command block (actually, this doesn't need an order...)
Then it should be done! However, this applies to all snowballs, including snow golems XD
Thank you for sharing your expertise with me, it works perfectly now. (And you have a good idea about adding in some snow-golems. XD)
Np, gl.
What do you mean by "chain command block"? Neither repeaters nor comparators has made the command trigger for me.
If you are still able to see this reply, this means that u r... lucky? XD
If the command block you wanna trigger is a chain command block,
of course it won't work.
To make chain command blocks able to do stuff, you need to point a command block to the chain command block.
For example, a repeating command block points into the chain command block will cause both commands to work repeatedly.
If it's an impulse or repeating command block, most likely it is because
1. It is set to Always Active mode. Change it back to Need Redstone mode, so comparators and repeaters work on them (also any redstone signals.)
2. There's is another redstone signal activating it, could be a redstone torch below, a redstone block, something like that. Remove it if it exists.
For my command, It's only 2 command blocks, repeating command block and a chain command block.
"Textual" demonstration:
(R=Repeating command block
C=Chain command block
> or < = pointing direction (Yes, I only need 2 for demonstration))
R> C>
They are attached, and it's activated by the repeating command block with Always Active mode.
Thanks so much! It makes way more sense now.
This is an old thread, I know, but 1.13 changes the execute command. I managed to come up with this command: execute at @e[type=snowball] run summon minecraft:lightning_bolt ~ ~ ~ but have the same issue that lightning summons at the snowball all the way to the ground. I want the lightning to summon when the snowball lands. I tried adding nbt={OnGround:1} after snowball but that didn't work either.
Try,
/execute at @e[type=snowball unless block ~ ~-1 ~ air run summon lightning_bolt
==Links==
๐๐๐๐จ๐ง๐ ๐๐ก๐๐ง๐ง๐๐ฅ- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ- https://www.instagram.com/cowsdabest_yt/?hl=en
๐๐ฐ๐ข๐ญ๐ญ๐๐ซ- https://twitter.com/cowsdabestyt
๐๐ข๐ฌ๐๐จ๐ซ๐- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
/execute @e [ type = snowball ] ~ ~ ~ summon lightning_bolt ~ ~ ~