Skip to content

Content

This part of GroovyScript allows the creation of game content like items and blocks. It's equivalent to ContentTweaker for CraftTweaker, but for GroovyScript it doesn't require another mod.

Warning

Requires version 0.4.0+.
Before you start adding content make sure to specify the pack name and id in your runConfig.
Also make sure to read pack name and id

Currently, GroovyScript adds helpers to create

Coming in the future:

  • Mekanism gases

Creative tabs

You can set a default creative tab which registered items and blocks will use if not specified otherwise

groovy
content.setDefaultCreativeTab(CreativeTabs tab)

Example

With that we can do this

groovy
def creativeTab = content.createCreativeTab("nomifactory.creative_tab", item("nomifactory:heart_of_the_universe"))
content.setDefaultCreativeTab(creativeTab)

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.