Pistol with magazine

Started by WelonTrees on Sun, 01/10/2021 - 13:31

Topic category: Help with modding (Java Edition)

Last seen on 15:01, 22. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:01, 22. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:01, 22. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:01, 22. Feb 2021
Joined Jan 2021
User points:

User statistics:

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

Sorry, I posted two comments.

Last seen on 13:19, 2. Mar 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:19, 2. Mar 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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