Topic category: Help with modding (Java Edition)
Hi everyone it's my first mod and i want to create airships that you can control like a boat but with a twist that i can't seem to apply to a rideable entity ^^'
(P.S : sry for english mistakes i'm french)
SO on what i was able to do :
With the code below, i can make the player move like i want, which is going up and down, and rotate the view left and rigth (mouse does not work to rotate which is intended) with the arrow keys.
For the airship i tried to place it in the trigger OnTickUpdate with a condition if the entity is beeing is ridden and it didn't worked.
I also tried some other mishaps, but nothing worked.
But i identified maybe a way to resolve the problem but i'm still not experienced enough in C and Forge to make it.
If i could modify the Y coordinate of the Vec3D with my global variables VERTICAL and HORIZONTAL (see in the last code). I'm pretty sure it would work.
Now if someone can help me on this problem it would be really kind of him :)
Have a nice day envening or whatever and keep it up with every thing you are working on :D