Started by
Xx_RazerTime_xX
on
Topic category: Help with Minecraft modding (Java Edition)
For those of you who, like me, couldn't figure out how the heck to make a ranged weapon, enjoy!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To begin with, create an Item.
Go into Advanced Properties
Click the check next to the part that says "Ranged Item"
Congratulations! If you found this tutorial helpful, umm.... like or follow or something? I'm new to this site so I'm not entirely sure how this works lol
Edited by Xx_RazerTime_xX on Thu, 01/18/2024 - 03:25
Might wanna mark this as a tutorial, the 'Help with Modding' category is for help requests. Also you don't need to use a scrollbox for text. But hey, welcome to the site! Good luck with whatever you're working on.
How do I make it so that it works without the need for ammo?
This used to be pretty easy just by setting ammo to air. With the latest update, it's a bit more involved, but still possible. You can technically lock the mod element and delete random stuff until it compiles... but you could also just forget making a ranged item, and instead make a normal item that, when right clicked, fires a projectile. (Since you can now make projectiles separately from ranged items.) There should be a 'shoot projectile' function that does this pretty effectively, and doesn't consume ammo.
Thanks! I just posted a new (VERY work-in-progress) mod, feel free to check it out if you want, suggestions for new features more than welcome!
how to make it use ammo?
Make a procedure for the 'item right clicked' trigger that removes an item from the player's inventory, or cancels the trigger if no item is found.
okay Mindthemoods