halo fuel rod gun-bouncing ammo

Started by DeRokerij on

Topic category: Help with modding (Java Edition)

Last seen on 11:58, 17. Nov 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
halo fuel rod gun-bouncing ammo

hi, I'm making a halo mod and have just started work on the fuel rod gun, anyone have any idea how i might make the ammo bounce, i don't have any idea how to start

Last seen on 17:34, 2. Oct 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know exactly how you…
Mon, 11/28/2022 - 00:40

I don't know exactly how you would do this via procedure or if it is even possible. HOWEVER, if it is possible, you would likely need a very long and drawn-out procedure that uses NBT number tags as a sort of counter for when it hits a surface.
Additionally, you'd have to find a way to check for that every time the projectile hits a solid block/surface and performs a function based on the NBT number tag.

 

Using this, you could IN THEORY write out a somewhat painfully long procedure to check which side of the block the projectile hit and to redirect it's x y z vector/velocity to be opposite what it currently is based on that. 

 

As said, this is all a theory so if anyone knows what I mean and wants to play around and see if they can get it to work and come back with a more thorough explanation, be my guest.