Back to mods
Fiber2Cloth project artwork

CurseForge · Minecraft mod

Fiber2Cloth

A simple API to magically make fiber config nodes into cloth

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Fiber2Cloth release should I use?

Updated 4 years ago
Latest stable file [Fabric 1.16.5] v3.2.0
Game version 1.16-Snapshot, 1.17.1, 1.16.3
Loader Fabric

Fiber2Cloth [Fabric 1.16.5] v3.2.0 targets 1.16-Snapshot, 1.17.1, 1.16.3 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 2 required mods have matching files.

Where it goes

Is Fiber2Cloth required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Fiber2Cloth [Fabric 1.16.5] v3.2.0 need?

[Fabric 1.16.5] v3.2.0. Change the file and its required mods may change too.

All 2 required mods have matching files

Install Cloth Config API (UNUSED), Fabric API first. We found matching files for this game-version and loader setup.

Cloth Config API (UNUSED) Needed by Fiber2Cloth [Fabric 1.16.5] v3.2.0
required
Matching file found Matched file: [Fabric 1.17(.1)] v5.3.58
Fabric API Needed by Fiber2Cloth [Fabric 1.16.5] v3.2.0
required
Matching file found Matched file: [1.16/1.16.1] Fabric API 0.13.1 build 370

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Fiber2Cloth without breaking your instance.

Built for Fiber2Cloth [Fabric 1.16.5] v3.2.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use [Fabric 1.16.5] v3.2.0. It targets 1.16-Snapshot, 1.17.1, 1.16.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Cloth Config API (UNUSED), Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside [Fabric 1.16.5] v3.2.0. It opens that exact file at the source.

About this project

What does Fiber2Cloth add?

A simple library that converts Fiber’s Config Node to Cloth Config Screen in 1 line.

Requires Cloth Config 2 v1.1.1 or above

NOTE: This is still an experimental library, and there aren’t a lot of features. I am using this library on my own mods and I will see how this goes.



Licensing

Fiber2Cloth and ClothConfig are unlicensed, no crediting is required. Fiber is licensed under Apache License 2.0. Make sure that you properly comply with their license.

Maven

Latest Version of Fiber2Cloth: image

Latest Version of ClothConfig 2: image

Latest Version of Fiber: Click Me

dependencies { modApi ("me.shedaniel.cloth:config-2:ABC") {  transitive = false } modApi ("me.shedaniel.cloth:fiber2cloth:ABC") {  transitive = false } modApi "me.zeroeightsix:fiber:ABC" include "me.shedaniel.cloth:config-2:ABC" include "me.shedaniel.cloth:fiber2cloth:ABC" include "me.zeroeightsix:fiber:ABC"}

Default Supported Types

  • Integer
  • Long
  • Float
  • Double
  • Boolean
  • String
  • Integer[]
  • Long[]
  • Float[]
  • Double[]
  • String[]

API Usage

This is the one line that will convert your config node into a cloth config screen.

Fiber2Cloth.create(screen, modid, configNode, configScreenTitleKey).setSaveRunnable(() -> {

// Here you should serialise the node into the config file.

}).build().getScreen();

A default category will be created (the name is customisable) if there is a config value without a forked parent.

Multiple layers of forking are allowed, and subcategories will be used starting from the second layer.

Using Unsupported Types

If you have an object type outside the default supported types, you can use Fiber2Cloth#registerConfigEntryFunction, it takes the class of the object type and a function that turns ConfigValue into AbstractConfigListEntry

You can see examples in Fiber2ClothImpl#initDefaultFunctionMap

``

``

Changing the default Yes / No text for boolean toggles

Declare the yes / no text in lang files with key config.{modid}.{valueName}.boolean.{true/false}, and if the key is found translated, it will automatically switch to using that instead of the default.

Example

Fiber2Cloth's example lang has config.fiber2cloth.exampleBool.boolean.true set to yo this is true, which means that config.fiber2cloth.exampleBool's Yes text is changed to yo this is true automatically.

Project description from CurseForge.

Pick your setup

Fiber2Cloth by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

25 available setups

Showing the newest 12 of 25 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Fiber2Cloth versions and loaders

9 of 9 releases match

Looking for an older file? The official CurseForge project page is in Resources.