Can anyone help me with adding attachments to a gun?

Started by Crackerjack on

Topic category: Advanced modding

Last seen on 18:46, 2. Jan 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can anyone help me with adding attachments to a gun?

I was wanting to make a mod that adds gun and attachments that you can add to the guns and was wanting to know of it was possible.  If so then how would I do it.  

Last seen on 01:10, 27. Sep 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you have the gun, and…
Fri, 04/10/2020 - 07:53

Do you have the gun, and what kind of attachments are you trying to make?

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For a barrel, increase the…
Fri, 04/10/2020 - 18:48

For a barrel, increase the power. For a silencer/suppresor, change/remove the firing noise. For a bayonet, change it's melee damage. I don't know about scopes or grips, though. Also, this assumes it's a normal ranged weapon

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, these would be…
Fri, 04/10/2020 - 18:48

Also, these would be diffrent elements

Last seen on 21:21, 21. Feb 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This may be tedious, but you…
Fri, 04/10/2020 - 19:43

This may be tedious, but you could just add all the combinations you want as their own item with the properties you want, and use crafting to switch between it. Perhaps make a new item just for separation of specific parts

Last seen on 01:10, 27. Sep 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's possible, although…
Sat, 04/11/2020 - 04:27

That's possible, although you could try and make the attachments like enchantments, except by making them removable. I would also say not to make the guns with ranged items, because those only give you bow physics.

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you increase the power,…
Sat, 04/11/2020 - 09:05

If you increase the power, you get physics more like guns. The higher the power the faster it goes, whilst the fall speed stays the same

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, turn on keep firing…
Sat, 04/11/2020 - 09:06

Also, turn on keep firing for a faster fire rate

Last seen on 01:10, 27. Sep 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Even if you do that, it…
Sun, 04/12/2020 - 00:38

Even if you do that, it still does the animation for a split second. The arrow power also increases both the Speed and Damage of the projectile, which should be separate options. It can't do things like rate of fire or bullet spread if you wanted to make a shotgun. The new velocity and rotation procedure blocks should help with that.

Last seen on 18:46, 2. Jan 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@CyberAssassin  That is…
Tue, 04/14/2020 - 16:15

@CyberAssassin  That is exactly what I was thinking.  The reason I posted this is because I don't want to have to model each gun with every possible combination of attachments.  Thanks for the ideas.  I will try to credit all of you for helping me once this mod is up.  PS actually i haven't started working on the mod but I just wanted to know if attachments were possible.

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try having the base model…
Tue, 04/14/2020 - 22:02

Try having the base model having all the attachments and, for every unique combination, making their bit of the texture clear