Started by
kenneth45
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to create a mod that is compatible with the eureka mod. I am trying to add a custom dispenser that looks like a cannon, and add in cannon balls. The problem I have ran into is I have no idea how to make the cannon shoot a projectile in the direction it is facing, especially considering the fact that the cannons will be mounted on ships with physics. Any help with this would be appreciated.
Edited by kenneth45 on Sat, 01/06/2024 - 22:16
there is a shoot from position procedure block that can be used with X Y and Z modifiers based on the direction your cannon is facing(I forgot the exact numbers) and if you simply get it to work with north, south, east, and west, it will work on a rotated ship. The eureka mod has very good compatibility so you don't need to do any extra work on your end. Also, there are procedure blocks for get direction block at X, Y, Z is facing, and you can use those in if conditions to have a different firing angle for each of the four facing directions(or 6 if you include up and down)