Checking for gamerules doesn't work

Started by Hercules1080 on

Topic category: Help with MCreator software

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking for gamerules doesn't work

I tried making gamerules to switch things in my mod on or off, but when I was playing in the game, it wasn't checking for the gamerule. Whether it's true or false, it still acts as if it were true. I've checked and double checked my code, and it doesn't work. 

In the code, I check if the gamerule = true, and if so, it should do the procedure. Any ideas why this isn't working?

Maybe you are calling the…
Mon, 02/12/2024 - 18:11

Maybe you are calling the procedure from the client side? Gamerules may not be synced to client in all cases I think

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i call procedures…
Wed, 10/09/2024 - 14:34

How do i call procedures from the server side then?

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured it out lol you…
Wed, 10/09/2024 - 14:37

I figured it out lol you just put not is provided world client-side