Started by
Imerial_Ender
on
Topic category: Help with Minecraft modding (Java Edition)
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]
I get this same issue and still havent been able to fix it.
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
Has anyone figured this out yet?
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.
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?
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.