Topic category: Help with modding (Java Edition)
I make a mod to add weapons. Now I'm making a pistol with a magazine. It will be damaged if fired from it. And recharge if in the inventory has a magazine. But my trigger (Is that what it's called?) Is missing one element. He must be responsible for shooting. Should work like this:
If the player's inventory has no magazine and the damage = 7 (that is, it will break soon) and the ranged object shoots.