In your mod class, @Subscribe to the FMLServerStartedEvent and call following within it:
MinecraftServer.getServer().worldServerForDimension(0).getGameRules().addGameRule("theNameForYourGameRule", "aBooleanValueAsString")
The
"aBooleanValueAsString"
can be either
"true"
or
"false"
.
News
Version 1.5.1
Fixed equipped shaped block not showing in first person.
Removed spurious "Shaped Block" item from creative menu.
Made Pick Block work on shaped blocks.
Made "Cut from xxx" message translatable.
Version 1.5.0
Updated for Minecraft 1.7.10
Version 1.4.0
Updated for Minecraft 1.7.2
Version 1.3.0
Updated for Minecraft 1.6.2
Version 1.2.0
Updated for Minecraft 1.5.1 - 1.5.2.
Fixed rendering of cracks when breaking blocks.
Greg's Blocks
Ziggurat-style roofs have their place, but you don't want them all the time. This mod gives you the blocks you need to make real roofs with actual slopes.
Home Page
Further information and download instructions can be found here:
http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/GregsBlocks/