Help with fireball projectile acceleration/speed

Started by Imerial_Ender on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with fireball projectile acceleration/speed

Hello, can someone help me fix an issue I have where if fireball projectiles move out of a certain range or enter water they slow down stop moving.
Procedure:
External Trigger(RightClick)

If Provided [itemstack] = [Item]

      Shoot fireball of type [Small fireball] with acceleration ax [0] az [0] ay [0]

      Deal [3]  damage to [provided itemstack]

      For each slot in [event/target entity] get contents copy as [itemstack iterator]

      do if is [provided itemstack] iterator tagged in item tags as [tag] = true

            do cooldown [itemstack iterator] for [ticks] ticks for [event/target entity]

 

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I get this same issue and…
Thu, 06/08/2023 - 15:48

I get this same issue and still havent been able to fix it.

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For the acceleration. You…
Sat, 02/03/2024 - 11:19

For the acceleration. You could get angle XYZ of the player and multiply it by a amount, lets say *0.6, this will shoot it in the direction you are looking while not being too great of a acceleration, just enough to reach 10 blocks before stopping I think

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Has anyone figured this out…
Thu, 04/24/2025 - 11:07

Has anyone figured this out yet?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to get this…
Thu, 04/24/2025 - 11:41

I managed to get this working well be using the get look X/Y/Z value of event/target entity procedure blocks in place of the 0 number blocks.

The get look X/Y/Z value procedure blocks are under entity management, just make sure you get the look value, not the block the entity is looking at, which is a different procedure block.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no "get look" value…
Thu, 04/24/2025 - 12:15

There is no "get look" value (at least in 1.20.1), so I assume you mean "X/Y/Z of look angle vector of". I tried it and it kinda works: the projectiles don't stay in place, but after a certain distance they speed up rapidly and change direction to where you're looking at. Is there any way to make this movement linear?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, I meant the X/Y/Z look…
Thu, 04/24/2025 - 15:05

Yes, I meant the X/Y/Z look angle.

I'm surprised that it doesn't work for you because it seemed to work fine for me when I used it for the fireball shooting procedure in a mod that I made.

I'm really not sure why it wouldn't be working for you, so long as you are trying to use it to shoot a fireball directly from an entity in a straight line.