How To Make a REAL Guns in MCreator

Started by Noma on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Make a REAL Guns in MCreator

Hi everyone! I am going at modding again and really want to make guns a feature within it. I was wondering if anyone knew how to create a 3D gun in MCreator, with a reload animation and everything? I absolutely love Flans mod and Techguns, and I really like MrCrayfish's Gun Mod as well. So, what software/programs should I get? What websites could help me? What kind of code do I need to actually build the weapons I have in mind beyond the skins I make them? If anyone can help me, I would be deeply appreciative ^_^

Thank you all =D

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess one could use…
Fri, 02/26/2021 - 02:07

I guess one could use MrCrayfish's Obfuscate library mod for reloading animations. personally, I haven't tried it yet, but it looks promising, and there's an official MCreator plugin called "Goldfuscate" that utilizes it, which you can download at https://mcreator.net/plugin/68758/goldfuscate if you don't want to touch code often.

if you want guns with actual storage systems and reload mechanics (to actually load cartridges instead of just unrealistically using up bullets in inventory), you can watch and follow along this good tutorial at https://youtu.be/X93oG7SeywA.

for the 3D gun models, Blockbench may be your best bet: https://blockbench.net.

 

and lastly, I can tell you that making realistic guns won't be too simple if you actually want to them to be, well, realistic; and personally, I believe every good thing takes effort. so good luck, and have fun! :D

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On the other hand…
Fri, 02/26/2021 - 17:46

On the other hand,implementation of the planned work is the site of the gradual development related to extensive(expert)to form Plan. The delegation of the organization,especially the strengthening and development of structure for participants to contribute to the preparation and implementation position to take for the game was established.

I hope this is helps!!!!!! 😁😁😁

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That is amazing! I have…
Tue, 03/02/2021 - 22:24

That is amazing! I have gotten them all now on my system (except for the video of course :P) Thank you for your suggestions @Sajevius ^_^

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you're welcome! :)
Tue, 03/02/2021 - 22:37

you're welcome! :)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Two more things: One, how…
Tue, 03/02/2021 - 22:38

Two more things:

One, how should I handle the basic gun mechanics? Where in MCreator will I find the proper options to make the basis of a gun?

Two, where should I get the sound files for my guns? I have no idea where such a place I could find them nor what kind of software may be required for my own meddling. Any ideas?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. I believe all guns are…
Wed, 03/03/2021 - 01:15

1. I believe all guns are essentially ranged items in Minecraft since they can be right-clicked in order to use (except for Vic's Modern Warfare mod guns where a left-click is required to use them IIRC), and they fire projectile entities (bullets). and yeah, MCreator supports the ranged item mod element to start with, plus there are some things you can tweak. 

  • if you're planning to make guns with bayonets, you can give the ranged item a melee damage value. in the gun's settings, just enable its melee damage, and set a value.
  • you can use the video tutorial as basis for your guns' cartridge feed system (loading bullets) through some procedures. 
  • you can set a preferred damage value that your bullet will deal.
  • to properly simulate gun bullets, you would want to set the bullet shoot power to a high value. a shoot power of 3, for example, produces a fairly high-velocity bullet, one that has longer range and more resistant against the pull of gravity compared to arrows.
  • but you need to set a balance between the bullet's damage and power, as the power may affect the bullet's base damage.
  • if you want to make sniper rifles have usable scopes, you might want to create an overlay with the appearance of looking through a scope, that should show up when you press a key while holding the rifle. also, make it so that while the overlay is active, your movement slows down, for realism.
  • also here's a tip: if you want to increase a bullet's velocity but wish to keep its damage, then, for every increase of the shoot power by 1, divide the bullet's damage by 2 (or at least, it works for me). give it a try.

2. sound files for guns may be found on the internet, I guess. search for free-to-use gun sounds that match your gun. or you could also make your own sounds. try recording yourself slamming a hard surface (e.g. a door) for the gunshot sounds for example. or you could try other methods that may be able to produce gun sounds, find what works best for you. then you can use Audacity (https://www.audacityteam.org) for editing the sounds.

hope this helps!

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It does indeed! This is way…
Wed, 03/03/2021 - 03:52

It does indeed! This is way more than I thought I would get so I am deeply appreciative =D. Thank you so much ^_^

One last question for now; How do I successfully load Blockbench's 3d models into MCreator? I am having trouble using the model with a block item I made for this specific test model.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in case you're new to 3d…
Wed, 03/03/2021 - 05:42

in case you're new to 3d models, here's what:

block/item models are handled by JSON files, which are in charge of defining how they'll look like. JSON is a scripting language (but easier than Java though).

did you make sure to export/save your 3d model as a .json file? coz only those types of file are usable by Minecraft for 3d block/item models. export the Blockbench project you made as a .json file, then import the .json file to MCreator in order to use the model when creating your block or item. and remember to include the texture.

(P.S. glad to have helped!)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you want to make sniper…
Thu, 03/04/2021 - 19:41

if you want to make sniper rifles have usable scopes, you might want to create an overlay with the appearance of looking through a scope, that should show up when you press a key while holding the rifle.

 

How do I do that exactly? So far I have unsuccessfully made a basic overlay for a furnace (I haven't looked up how to properly do it yet)! So I am clueless how I could make an overlay for my guns. I think I could figure out how to assign the overlay to a key.

 

also, make it so that while the overlay is active, your movement slows down, for realism.

Where would I find the option(s) to do that?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for quite the long…
Sun, 03/07/2021 - 12:18

sorry for quite the long wait. been busy modding (working on an update) in my own direction. so to extend my answer on sniper rifles having scopes, here goes:

  • you would need to create a 1366x768 image beforehand that'll be used for your sight overlay (that means, make a crosshair and align it in the center of the image). once you finish, import it to MCreator, and create an overlay. you can then proceed to set the image as the overlay base texture. (this is essential.)

sniper rifle scope overlay

  • then you would need to create a key binding that will toggle our sight on/off. let's use the "Delete" key, for example. on its "key pressed" trigger, make a procedure that has an if-statement checking if the item the player is holding a sniper rifle (or whatever gun that can support scope attachments). if true, then create an NBT variable named something like "IsAiming" & add another if-statement checking if its value is set to false. if false, set it to true. otherwise, set it to false. (this is what makes it toggleable.)

key binding pressed procedure

  • remember how we just made an overlay? go back to it and make a display condition procedure for it. you should make it only show up when "IsAiming" is set to true. (that means, the overlay will only be displayed while the player is aiming with the scope.)

return statement for overlay display condition

  • lastly, make a globally-triggered procedure that has an if-statement that checks if "IsAiming" is set to true. if true, give the player a slowness effect, ambient & without particles. (this is, like what I said, adds "realism".) then add another if-statement to the procedure to check whether the player is still holding the sniper rifle or not. if the player is no longer holding the rifle, set "IsAiming" to false. (because if you don't, the overlay will still show even if you switched your held item from the sniper rifle to a different item.)

sniper events procedure

NBT tags are pretty good for making mechanics. even Minecraft uses them often, for items, blocks, and entities. take your time to learn about how they work, how to create custom tags, how to read their value & what to do under certain conditions, and how to manipulate them through events/procedures. look for tutorials on what they do, and/or how to use them (like this forum topic: https://mcreator.net/forum/61478/what-nbt-nbt-tags-nbt-inventory, or this one video from NorthWestTrees Gaming for example: https://youtu.be/3_VoyAS8cU8). also, don't be afraid to experiment with things on your own. trial and error is a good teacher.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can i make the overlay…
Sun, 07/11/2021 - 06:56

how can i make the overlay stay on the screen for longer times?

 

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you provide an updated…
Sun, 08/13/2023 - 01:35

Can you provide an updated version of this procedure? I've followed this procedure as exactly as I can and the overlay still appears on screen constantly, rather than only when aiming. 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, How do I make it work…
Sat, 09/16/2023 - 12:10

Hello, How do I make it work in survival?

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do u make the guns from…
Fri, 03/15/2024 - 16:37
how do u make the guns from swinging when you press a button to shoot them