Class CustomGameRuleTest

java.lang.Object
net.minecraftforge.debug.CustomGameRuleTest

public class CustomGameRuleTest extends Object
Simple test to ensure custom game rules can be registered correctly and used in game.

To test these game rules use the following commands.
If the game rules are registered correctly, they should show up as auto-completion values and be able to be changed to valid values based on their types.
These game rules should also show up and be editable under the Edit Game Rules screen, when creating a new world.
Create new world > More (tab) > Game Rules > Misc

  • /gamerule custom_game_rule_test:custom_boolean_game_rule <true|false>
  • Should be able to be set to either true or false (Defaulting to true).
  • /gamerule custom_game_rule_test:custom_integer_game_rule <some integer>
  • Should be able to be set to any integer value (Defaulting to 1337).