Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Overview
This is a mod that allows for modular management of mods with specific configuration files.
Reborn: Vape Manager Reborn
You can press the V key to open the mod's configuration interface to manage mods. By default, the configuration interface has no items. However, you can test this mod by extracting the example.json file from the root directory of this mod to the config/vm/mods directory in the game directory.
Below is the content of the example.json file. If you are a developer and want to use this mod as a prerequisite mod, you can refer to this file content to write your mod:
{
"name": "Vape Manager",
"id": "vm",
"main": "cn.ksmcbrigade.VM.Manager",
"function": "getKey",
"function_2": "runKey",
"gui_main": "cn.ksmcbrigade.VM.Manager",
"gui_function": "getScreen"
}
Here are the functions of the above items:
- name: Required, supports i18n;
- id: Optional, useless;
- main: Required, used to get the class file address of the mod's functional functions;
- function: Optional, fill in "NONE" if not used, used to get the key-value function in the class file written in "main";
- function_2: Required, used to run the mod's functional functions in the class file written in “main”;
- gui_main: Optional, fill in "NONE" if not used, used to get the class file address of the mod's GUI functions;
- gui_function: Optional, fill in "NONE" if not used, used to get the key-value function in the class file written in “gui_main”.
Here is an example of the function used to run the mod's functional functions:
public static void runKey(Player player){ //No is LocalPlayer
player.sendMessage(Component.nullToEmpty("Vape manager v1.0"),player.getUUID());
}
Other function parameters are empty.
Tips
This mod also provides a small number of API functions that can be called. The functions are located in the cn.ksmcbrigade.VM.Utils class.
It has been open-sourced on GitHub.