I need help with a gun mod

Started by DogeDogeMan on Sun, 10/31/2021 - 12:54

Topic category: Help with modding (Java Edition)

Last seen on 09:35, 1. Aug 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I need help with a gun mod
Sun, 07/17/2022 - 10:05 (edited)

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
Last seen on 13:40, 4. Oct 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
- Use block cooldown but if…
Sun, 10/31/2021 - 13:07

- 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…
Wed, 12/01/2021 - 08:44

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.

Last seen on 11:04, 3. Feb 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1, For sounds download…
Wed, 12/01/2021 - 09:11

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".