Help with bullets and gun

Started by Beanerism on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with bullets and gun

So how do other gun mods make their bullets come out of the front of their guns? Because if you just shoot a projectile it just comes out of you? help pls.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this isn't quite what…
Mon, 12/22/2025 - 18:05

I know this isn't quite what you want, but you could offset the model of the projectile (if you make a custom model) enough so that it looks as if its coming from the barrel.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's probably the easiest…
Mon, 12/22/2025 - 19:58

That's probably the easiest option. I have an idea for a more complex one, but it's fairly complicated, I haven't tested it yet, I'm not the best at explaining things, and I can't provide screenshots.

Basically the concept would be to spawn a tiny invisible entity, spawn it slightly ahead, below, and to the side of the player, make it look towards the same location as the player (there's procedure blocks that deal in look X Y and Z locations), and shoot the bullet from that entity when the gun is fired, then despawn the entity.

If you're up for trial and error and making a complex procedure, feel free to try this way as it might give you a slightly better in-game experience. If not, I'd just recommend using Jacko22's suggestion.