Started by
MiTerSkyArk
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make it so when I shoot my cannon weapon, it forces me in the opposite direction, but I can't figure it out. help?
Edited by MiTerSkyArk on Fri, 06/07/2024 - 02:00
You could override the movement to the opposite of the look angle vectors ( you will mostlikely want to divide these)
I alredy made something very similar to this, basically its an enchantment and whenever you hit a target or just shoot a projectile with the crossbow it knocks both you and the entity, obviously you get sent a bit backwards from where you shoot and the entity that got hit gets sent far back. you can modify these vallues hoveer you want
https://imgur.com/a/qCEs7WT
WAIT I FORGOT TO ADD SOMETHING DONT COPY YET
nevermind it works im just very stupid