Help with Fireball shooting!

Started by BlackCat626 on Mon, 04/06/2020 - 17:51

Topic category: Help with modding

Last seen on 21:01, 6. Apr 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Help with Fireball shooting!
Mon, 04/06/2020 - 17:51

Hello, I'm pretty new at MCreator, and I'm trying to figure out how to make an item (basically a sword) launch fireballs when right clicked.
I have the procedure set up under right click, but I need the code/block for summoning a fireball that will launch in the same direction that the player is facing.

I've looked at some other threads addressing this same issue, but they aren't straightforward and some are for older versions.

Thanks for reading.

Last seen on 15:03, 25. May 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Hello and welcome to…
Mon, 04/06/2020 - 18:19

Hello and welcome to MCreator! It is possible to make an item or a sword to summon fireballs when right clicked.

First, you need to make when item right click, then select "execute command in the name of provided entity" (which can be found in entity procedures tab) then copy this command "/summon Fireball ~ ~2 ~ {ExplosionPower:2,direction:[0.0,0.0,0.0]}" into the blank space.

Something to notice though, when the command is executed, the fireballs will be summon on top of the player's head and it will stay there until the player hit the fireball, like when you punch the fireball back at Ghast. Another thing to notice is that the explosion power can be change to any number, but I'd suggest you to keep the number small, don't make it bigger than 5 or else your computer will lag (if you don't have a good computer)

If you have any more questions, feel free to comment back :)

Last seen on 21:01, 6. Apr 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
thank you for the reply, but…
Mon, 04/06/2020 - 18:31

thank you for the reply, but I'm looking for a way to start the fireball out by moving, like when a blaze shoots a fireball... is there no easy way to do this?

Last seen on 15:04, 22. May 2020
Joined Feb 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
So how to do that is that…
Mon, 04/06/2020 - 18:41

So how to do that is that you can change this command: /summon Fireball ~ ~2 ~ {ExplosionPower:2,direction:[0.0,0.0,0.0]}

Then you just need to do a little change, so i already made the command for you: /summon Fireball ~ ~2 ~ {ExplosionPower:2,direction:[0.0,1.0,0.0]} 

You can change the "1.0"  to what ever you want like 1.5 = faster or 0.5 = slower.

Do you understand? 

Last seen on 21:01, 6. Apr 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
OK, I'll try that. thanks!
Mon, 04/06/2020 - 18:42

OK, I'll try that. thanks!

Last seen on 15:03, 25. May 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Tbh, I think that the second…
Wed, 04/08/2020 - 09:17

Tbh, I think that the second group of number is how big the explosion is, but you can try that