Toggle MCreator Elements with Gamerule

Started by housefly888_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Toggle MCreator Elements with Gamerule
Mon, 10/16/2023 - 02:15 (edited)

Is there any way to custom code a toggle-able mod element, determined by a game rule?

Minecraft Java Edition has an experimental settings area in which you can toggle the bundle. Isn't there a way to detect the game rule, and cause the element to cease to exist? 

I believe you can set a string variable to [usual inventory tab] then have it check the game rule, and if the game rule disables so, set the string variable to "empty" and set so to the element.

Edited by housefly888_ on Mon, 10/16/2023 - 02:15