Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes

Expansion for ItemGroup

This expansion was added by a mod with mod-id contenttweaker. So you need to have this mod installed if you want to use this feature.

Static Methods

Creates a new custom item group. Throws an exception when trying creating two item groups with the same name.

Returns: the new item group
Return Type: ItemGroup

script.zs
// ItemGroup.create(name as string, iconSupplier as IIconSupplier) as ItemGroup
ItemGroup.create("contenttweaker", () => <item:minecraft:dragon_egg>);
ParameterTypeDescription
Parameter
name
Type
string
Description
the name of the item group
Parameter
iconSupplier
Type
IIconSupplier
Description
the function to get the icon of the item group