Skip to content

Getting Started & Getting Finished

wd edited this page May 11, 2026 · 1 revision

Fancy Tabs Neo is a library mod made to be Jar-in-Jar'd which allows for the use of Sections in Creative Mode Inventory Tabs

image

Gradle Stuff

To get started add modrinth's maven to your repositories like such:

repositories
{
    //modrinth
    maven {
        url = "https://api.modrinth.com/maven"
    }    
}

You can then add Fancy Tab Sections to your dependencies like such:

dependencies {
    //fancy tab sections
    jarJar(implementation("maven.modrinth:fancytabsections:2.0-NEOFORGE-1.21.1"))
}

Once you've added the dependency you can now start using the library.

Registering Sections

To register a section simply call FancyTabSections.addSection.

Fancy Tab Sections provides an example class which can be found here.

You may also look at Starcatcher which implements this library.

Here is an example of a section

// This adds a solid coloured section to the creative mode tab registered under the ID "shiny_things"
        FancyTabSections.addSection(rl("shiny_things"),
                new SectionColored(

                        //identifier of the section
                        rl("apples"),

                        //Title to display in the "empty row" of the section
                        Component.translatable("itemGroup.fancytabsections.apples"),

                        //background color of the "empty row" - ARGB
                        0xFF1a1a2e,

                        //text color - ARGB
                        0xFFFFFFFF,

                        //creates a new conglomerate - items are listed in the order they are added
                        ConglomerateOfItems.create()
                                //adds a modded item
                                .add(FTSExampleModItems.MISSINGNO)

                                //adds an item
                                .add(Items.GOLDEN_APPLE)

                                //adds an ItemStack
                                .add(exampleItemStack)

                                //adds every item in the DeferredRegister
                                .add(FTSExampleModItems.ITEMS)
                )
        );

Please note that Fancy Tab Sections does not register a Creative Mode Tab for you.

Clone this wiki locally