
Что это
Library for item subgroups for the creative menu
- Тип: мод
- Загрузчик: fabric, neoforge, quilt
- Версии Minecraft: 1.19.2 – 26.3
- Скачиваний на Modrinth: 10 649
Подробно
About Fractal This repo is a fork of lib39/fractal by unascribed, with added support for styled groups. I will take care of this repo while unascribed is busy.
Fractal introduces item subgroups for the creative menu.
Why Fractal? - Fractals Subgroups are very condensed, allowing you to add up to 12 subgroups for each of your tabs - Creating a new ItemSubGroup only takes one line of code and no changes in the way you assign your items to groups. Just pass them the ItemSubGroup instead of your main item group
Limitations - More than 12 subgroups per item group, while fully functional, will look weird. - The tiny font used for the labels does not support full unicode
java public static final Identifier GROUPID = new Identifier("mymod", "main");
public static final ItemGroup MAIN = FabricItemGroup.builder() .icon(() -> new ItemStack(Blocks.REDSTONEBLOCK)) .entries((displayContext, entries) -> entries.add(Items.APPLE)) .displayName(Text.translatable("mymod.1")) .noRenderedName() .build();
public static final ItemGroup EQUIPMENT = new ItemSubGroup.Builder(MAIN, Text.translatable("itemGroup.mymod.equipment")).entries((displayContext, entries) -> entries.add(Items.APPLE)).build(); public static final ItemGroup FUNCTIONAL = new ItemSubGroup.Builder(MAIN, Text.translatable("itemGroup.mymod.functional")).styled(STYLE).entries((displayContext, entries) -> entries.add(Items.BAKEDPOTATO)).build(); public static final ItemGroup CUISINE = new ItemSubGroup.Builder(MAIN, Text.translatable("itemGroup.mymod.cuisine")).entries((displayContext, entries) -> entries.add(Items.CACTUS)).build(); public static final ItemGroup RESOURCES = new ItemSubGroup.Builder(MAIN, Text.translatable("itemGroup.mymod.resources")).styled(STYLE).entries((displayContext, entries) -> entries.add(Items.DANDELION)).build();
@Override public void onInitialize() { Registry.register(Registries.ITEMGROUP, GROUPID, MAIN); }
Applying a custom style You are also able to apply a style to your ItemSubGroups, by supplying custom background, tab, subtab and scrollbar textures. You can even mix and match! In this example, the first two ItemSubGroups use a custom style by supplying texture files that are being shipped with your mod. The latter two tabs use the vanilla style.
java // Texture (put into \resources\assets\fractal\textures\gui\container\creativeinventory) public static final Identifier BACKGROUNDTEXTURE = new Identifier("fractal", "textures/gui/container/creativeinventory/custombackground.png");
// Sprites (put into \resources\assets\fract
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Help Me Hardcore
Help Me Hardcore Adds All Kinds of Extra Challenges from Community Ideas to Full-Themed Updates for Your Hardcore Worlds or Even Hardcore… 05.12.2026
Better Sophisticated Upgrades
Vanillafies the Upgrade-textures from sophisticated mods 05.12.2026
Better Mob Heads
Better Mob Heads gives supported vanilla mobs without an existing vanilla head item a decorative custom head when they die. 05.12.2026
JDK's Mining Utilities 2
This mod adds mining stuff to your game, such as hammers, drills and more 05.12.2026
Grief Prevention Home
An GriefPrevention addon where you can easily teleport too your and others plots 05.12.2026
CommandGUI
Customizable Command GUI for Spigot/Paper 05.12.2026