Question about bullets.

Started by Puglord123 on

Topic category: Help with modding (Java Edition)

Last seen on 18:01, 24. Apr 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Question about bullets.

I am trying to make a Half-Life mod and I'm trying to figure out if I can have guns that shoot at various bullet speeds (for example, a pistol would shoot not slow but not fast, but a different gun would shoot faster or slower) and i was wondering if that would even be possible and if it would be i would like to know how. If anyone knows how to do this, please comment.

Last seen on 23:48, 26. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can set bullet speeds on…
Mon, 03/18/2024 - 16:52

You can set bullet speeds on ranged items:

If you want different speeds on the same item you can use a regular item that when right-clicked with shoots a projectile and you could toggle between different NBT item states by sneaking etc which you could then check and then shoot another projectile at a different speed through an if statement.

Last seen on 18:01, 24. Apr 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That isn’t what I mean
Tue, 03/19/2024 - 07:54

That isn’t what I mean

Last seen on 23:48, 26. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh you mean like bullet…
Tue, 03/19/2024 - 09:25

Oh you mean like bullet cooldowns? You can in theory use the this block to set a cooldown on the item when used:

You can also use an if statement using a timer based on item NBT tags if you want it more hidden so to say.

Last seen on 18:01, 24. Apr 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That seemed to fix my issue,…
Tue, 03/19/2024 - 15:40

That seemed to fix my issue, thank you so much!