Started by
Kvngsavage118
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm making a mod where I have a ranged weapon that shoots a projectile and said projectile is supposed to break through blocks. An example of what I am trying to reproduce would be something similar to hollow purple from orca's jujutsucraft mod, where the projectile launches and breaks through all blocks it touches rather than exploding on impact. I would appreciate if I got some help on how to reproduce this. I've tried the "remove block" command when projectile touches block procedure in conjunction with "wait x ticks to despawn" block as well.
Edited by Kvngsavage118 on Wed, 08/30/2023 - 20:17
@Kvngsavage118 did you figure this out? I need the same thing
You can remove blocks in a small area around the projectile in the tick update trigger, so as the projectile is moving it will remove any blocks it gets close to
Thanks!
I think orca uses an entity tho, do you know how I could push it forward?
I can't find the tick trigger can you please explain more about it ?
I figured this out a while ago. You need to use the "attempt to override motion vector" of entity on its tick update. You also need to override it based on your x,y, and z angle look vectors.