how can I make the same weapon reloading system as shown in this video?

Started by .hllg on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can I make the same weapon reloading system as shown in this video?

Hi, could you tell me by any chance, how can I make the same weapon reloading system as shown in this video? https://youtu.be/00UaVpbEpO4?si=T767xSLNJLYJzZpB I see this is done through checking the strength of the object, but I do not know how to make sure that the object does not break when there is no cartridge in it and also, I still don't understand how to display the interface showing the number of rounds (if you know the ways that do not involve the strength systems of the object, it's even better!)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use our beloved GeckoLib!…
Wed, 11/20/2024 - 19:10

Use our beloved GeckoLib! Allows to animate anything.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use these blocks: https:/…
Sun, 11/24/2024 - 20:05

Use these blocks: https://imgur.com/zN6W6aJ

I'm pretty sure the ammo display is just an actionbar message, and the ammo count can be checked using item nbts.