Pistol with magazine

Started by WelonTrees on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pistol with magazine
Sat, 01/16/2021 - 14:43 (edited)

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
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It should be so. If pistol…
Mon, 01/18/2021 - 11:54

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?

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It should be so. If pistol…
Mon, 01/18/2021 - 11:54

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?

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I posted two comments.
Mon, 01/18/2021 - 11:57

Sorry, I posted two comments.

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the = block has variables <,…
Mon, 01/18/2021 - 12:19

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

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the = block has variables <,…
Mon, 01/18/2021 - 12:19

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