Started by
WelonTrees
on
Topic category: Help with Minecraft 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.
Return false.
Edited by WelonTrees on Sat, 01/16/2021 - 14:43
Show your procedure
https://imgur.com/a/hCmZUBF
Your procedure will only work when the damage of the magazine is 7, not more or less, this could be a problem
It should be so. If pistol damage = 7, then reload continues. The problem is at the very bottom. I cannot find a firing block. Is there a replacement for the block I'm writing about? Or do I need to download plugins?
It should be so. If pistol damage = 7, then reload continues. The problem is at the very bottom. I cannot find a firing block. Is there a replacement for the block I'm writing about? Or do I need to download plugins?
Sorry, I posted two comments.
the = block has variables <,>, equal to or greater than, less than or equal to
just click on the = and it will give you its varieties
the = block has variables <,>, equal to or greater than, less than or equal to
just click on the = and it will give you its varieties
Sorry