Pistol with magazine

Started by WelonTrees on

Topic category: Help with modding (Java Edition)

Last seen on 16:24, 14. Dec 2022
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
Your procedure will only…
Mon, 01/18/2021 - 10:46

Your procedure will only work when the damage of the magazine is 7, not more or less, this could be a problem

Last seen on 16:24, 14. Dec 2022
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?

Last seen on 16:24, 14. Dec 2022
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?

Last seen on 16:24, 14. Dec 2022
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.

Last seen on 23:35, 30. Oct 2023
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

Last seen on 23:35, 30. Oct 2023
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