Checking for gamerules doesn't work

Started by Hercules1080 on

Topic category: Help with MCreator software

Active 3 months ago
Joined Jan 2024
Points:
110

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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

Active 4 months ago
Joined Aug 2023
Points:
165

User statistics:

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

How do i call procedures from the server side then?

Active 4 months ago
Joined Aug 2023
Points:
165

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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

 

 

Active 1 day ago
Joined Dec 2018
Points:
1346

User statistics:

  • Modifications: 18
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 833
Having the same issue but…
Mon, 03/17/2025 - 21:12

Having the same issue but cannot find a fix. It's always reading the gamerule as true even when it's false.

Active 1 day ago
Joined Dec 2018
Points:
1346

User statistics:

  • Modifications: 18
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 833
Can anybody help?
Tue, 03/18/2025 - 17:16

Can anybody help?