Started by
benl4b
on
Topic category: Help with Minecraft modding (Java Edition)
I wanted to create a ranged combat item that doesn't consume projectiles (i.e. arrows or cartridges). I wanted to just leave the field for "Required Item for the Projectile" blank, but that needs to be filled out. I'm now working with 2023.4, but it always worked in the previous version, which is why it's only now becoming a problem for me.
If you need item itself to be consumer like snowball, specify that item in the projectile.
To require no item, you should use procedures to fire such projectile from an item as in this case you don't need the full ranged item system for this to work.
Yes, that's the problem: I'd like to use the full ranged item system.
You need to make a new procedure when you shoot the item to give the player one of the item you are attempting to fire.
This is actually a good idea, but I'm a bit of a perfectionist... what if the player has all the inventory slots full?