Started by
DogeDogeMan
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a gun mod and I have a couple of problems like:
- How to move the player's camera when you shoot?
- How to check if durability is over 1 to use? (Like with elytra.)
Here are some details of how I am designing this:
- When you shoot, you should lose durability until there is only 1 durability point.
- When you need to reload your gun, you craft the gun itself + an ammo item.
- (If you need more details, let me know!)
Edited by DogeDogeMan on Sun, 07/17/2022 - 10:05
- Use block cooldown but if you want cooldown to be applied only to a specific weapon and not all those in your inventory must use an NBT procedure
- I believe cooldown could make this
- up to you
Small tip from me, since I have gun mod already - using tool type of item is better than ranged item, because you have a bit more control over things, so you can customise them. The downside is lack of animations, but that can be changed with some workarounds I think.
1, For sounds download Audacity. Go to youtube and find copyright free gun sounds. Export as .OGG file. Lots of youtube tutorials on this subject.
2, For cooldowns...type "cool" in search box when making the procedure. Add procedure to "when ranged item used".