Topic category: Advanced modding
ATTENTION, CODE!! But seriously, I used prompts from Claude AI and everything worked, so please don’t be afraid to peek under the hood of your mod elements. You can actually ask the AI any questions - that’s exactly what it was created for.
So, to prevent it from crashing, you will need:
- 1 firearm item (the code will be in it)
- 3 custom projectiles
- A few code modifications (replace the names of my mod/items with yours)
You need to add the code in [gun_name].java - it’s the one with the green square and a white C.
I’ve added comments in the code. Again - if anything is unclear, consult Claude AI, it can handle it. And yes - this is for version 2025.2 - 1.21.1 NeoForge.
Due to the policy of Pylo (the authors of MCreator), my code is located at the link below.
If it doesn't work, write to me (I CAN REPLY IN A MONTH!!)
https://pastebin.com/s7t75GM3
If, when activated, the weapon behaves like a shotgun–submachine gun — you succeeded =3