I want a player to have 1 snowball, throw it, and it become a fireball. So far I can summon the fireball, but it doesnt keep moving. The snowball then getd killed, and a split second later another snowbal should be added to the player's inventory.
Đang xem: How to make fireballs in minecraft
Any help?

Summon the fireball at the snowball, copy over the motion values from the one to the other, then give the person that doesn't have a snowball in their inventory a snowball.
Impulse, Unconditional, Always Active
/scoreboard objectives add RCounterSpell dummy/scoreboard objectives add RSnowballScore dummy/scoreboard objectives add RFireballScore dummy
Repeating, Unconditional, Always Active
/execute at
e
e
/kill
e
Repeating, Unconditional, Always Active
/scoreboard players set
e
Repeating, Unconditional, Always Active
/execute at
e
/execute as
e
e
/kill
e
Repeating, Unconditional, Always Active
/replaceitem entity
a
a
If anyone can tell me how to execute at a named snowball to give it a score, I would very much appreciate it. I've tried and , but no luck. It worked on the fireball but not the snowball 🙁
Why does this not work?
/execute as
Oops, sorry all, I forgot one command. Repeating, Unconditional, Always Active
/scoreboard players set
e
Read more: wow classic getting to desolace
I realize this thread is pretty old, but after a while I was able to get a solid concrete answer while working on something. Most of this is stolen from u/Plagiatus in this thread but the NBT values that need to be applied have been changed so it fully functions and the fireball doesn't stop midway through.
Read more: wow wow wubbzy title cards
# Summon fireball (change the number after ExplosionPower to change the power of the fireball explosion)execute as
s run summon fireball ~ ~ ~ {ExplosionPower:3,direction:<0.0,0.0,0.0>}# Copy NBT values from the snowball to the fireball. Change the 10 at the end of these 3 commands to make the fireball faster or slower.execute as
e
first, summon a fireball exactly where the snowball is (you should do it to transfer motion of snowball into fireball; snowball gets destroyed automaticly), next if you want to give a snowball after time, you must create a scoreboard named however you want, but with criteria 'dummy'. next, you should add 1 point to every player that has no snowballs in its inventory. then, check when score reaches for example 20 and give snowball to that player. next, set score his score to 0. Done!

A place for all things about commands and command blocks in vanilla Minecraft; to share, to question, to discuss, and more!Please read the pinned post before posting.