Started by
.hllg
on
Topic category: Help with Minecraft modding (Java Edition)
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!)
Use our beloved GeckoLib! Allows to animate anything.
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.
I've made a gun tutorial for things similar to this, ill link it here
https://www.youtube.com/watch?v=o8yiazCF1Xw&t=45s