Cloth Config API [Forge, NeoForge]

Published by BaR1BoD on
Supported MCreator versions
2023.1
2023.2
2023.3
2023.4
2024.1
Tags / plugin type
API support
Java plugin
Procedures
Variables
MCreator plugin
Downloads:
1166
Upvotes: 9
About the plugin

Cloth Config API is a plugin adding a new mod element allowing you to create config screen and file.

 

The java plugins feature needs to be enabled as this is a java plugin.

Make sure you have enabled the Cloth Config API in External APIs.

 

There are two config templates where the description of each block is commented.

 

External APIs

Supported Versions:

Forge 1.19.2

Forge 1.19.4

Forge 1.20.1 -> MCreator 2023 and 2024

NeoForge 1.20.4

 

Example

Config screenConfig Mod Elementusage

 

Changelog

v1.3

 -Added "sync config screen values" block to procedure

 -Changed the config loading event

 -Fixed entries being null

 

v1.3

 -Added "call procedure" and "get return value of procedure"  to config element

 -Fixed "set value" block doesn't change the value immediately

 

v1.2

 -Added set config value in procedure

 -Changed the color of some blocks

 -Fixed some bugs

 

v1.1

 -Support for MCreator 2024.1

 -Support for NeoForge 1.20.4

 

v1.0

 -Initial release

License
MIT License

Plugin downloads
Cloth Config API-1.0 | MCreator 2023.1 2023.2 2023.3 2023.4 - Cloth-Config-API_3.zip Uploaded on: 04/15/2024 - 19:49   File size: 99.71 KB
Cloth Config API-1.4 | MCreator 2024.1 - Cloth-Config-API-v1.4_0.zip Uploaded on: 05/02/2024 - 17:03   File size: 83.98 KB

Comments

Hi, there,
Are you going to update your API?
Are you waiting for 1.21 or are you going to update it soon?

It seems mods created with this plugging can't be used in dedicated servers cuz cloth config it's only client side

[11jun.2024 15:38:17.608] [Server thread/ERROR] [net.minecraft.server.network.ServerLoginPacketListenerImpl/]: Couldn't place player in world
java.lang.RuntimeException: Attempted to load class me/shedaniel/clothconfig2/gui/entries/StringListEntry for invalid dist DEDICATED_SERVER

Hello, this works to dedicated servers? I'm using dedicated server to test multiplayer and I'm getting invalid player data error

Plugin for version 2024.1 is broken, cannot get the "get global" procedure.

I'm in the 2023.4 and I cant edit the config in mcreator after save it

Is there a way how I can change bolean variables with a procedure? So not only via the ingame menu but also via a procedure?

That plugin is pretty much interesting, but I see no way to interact with the boolean values. Actually i have an overlay that I want an menu option to show or hide it. How can I interact with the boolean? Where's the procedure? How do I check "If Bolean = true/false"?

Unless I'm missing something, I see no way to add any variables. The right side (in workspace) isn't there where I'd normally add them, so nothing would work right without it. Even the two config templates don't compile either. The above says to enable Cloth Config which I did, but seems there are two of them (cloth-config and Cloth Config). Tried cloth-config, then with Cloth Config and then without cloth-config and still had same issues. - Trying 1.20.4 NeoForge in case that matters.

Thank you for letting me know, the variables must be global, that's why there is nothing to add variables on the right side, about the API, I checked and it was only a Cloth Config API and I didn't see cloth-config, and for the colors as soon as possible I will change them

Thanks for the detail - Global variables are now showing up. :-) Still having a bit of issues with categories being valid. The two templates don't work. Do you have a live example of one? I think that would help greatly to show screenshots of something that works.