Why is my procedure not working?

Started by MarkkMirror on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why is my procedure not working?
Tue, 07/11/2023 - 09:32 (edited)

So, I made this procedure in order to use it on a button, that when you click it, if you have enough items, it converts them with another item. The procedure should be right, I applied it on the GUI button but when I test it on Minecraft the button doesn't do anything. Is the procedure wrong in some ways or what could be the problem?

(The two orange items are two separate items but I didn't have enough time to make the textures.)

Edited by MarkkMirror on Tue, 07/11/2023 - 09:32
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you want to replace…
Fri, 07/07/2023 - 15:19

I think you want to replace the "logic equals" block with "logic AND".

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried but nothing changed,…
Fri, 07/07/2023 - 17:01

I tried but nothing changed, the button on the GUI doesn't work. (I saved the changes and made sure I did so it's not that)

 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pretty sure it's because you…
Fri, 07/07/2023 - 17:41

Pretty sure it's because you put Event/target entity = 100, and you might need to put if equal if you know what I mean.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try replacing the "has event…
Sun, 07/09/2023 - 22:25

Try replacing the "has event/that entity in inventory" block with "(Get item in main hand) is the same block as (your item).

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think you should remove…
Sat, 08/12/2023 - 22:19

i think you should remove the thing that checks for the items in the off-hand of the player, and just replace it by a number (100 like in your script)