Why doen't this procedure work?

Started by themodman on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why doen't this procedure work?

So what happened is that I wanted a different model to replace the helmet that the player is already wearing, so I made global variable:open and set it to logic. Then from the advise of @QB he told me how to replace it. So as you can see, I did that with the execute command block. But to change it back I used the variable to change when a key is pressed to true or false. But this procedure doesn't seem to work in-game when I press the key. Help! 

Problem Procedure

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try using "if"+"else" block…
Thu, 12/26/2019 - 04:23

try using "if"+"else" block instead of 2 "if"s

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@ahznb is right you need to…
Thu, 12/26/2019 - 07:16

@ahznb is right you need to use if else here, what your doing is checking true and setting false then checking false in the same trigger after you set it false so it will now do the false option.

This will in return feel like it's not doing anything or dual triggering

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks guys but I found…
Sun, 01/05/2020 - 11:34

Thanks guys but I found another way to do this. Thanks for you help anyway!!!