Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Vape Manager

Vape Manager

This is a mod that allows for modular management of mods with specific configuration files.

64
0
Social
Utility

Compatibility

Minecraft: Java Edition

1.18.1–1.18.2

Platforms

Forge

Supported environments

Client-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server

Creators

KSmc's Team
KSmc's TeamOrganization

Details

Licensed MIT
Published 7 months ago
Updated 7 months ago
DescriptionGalleryChangelogVersions

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.

Modrinth is open source.

sidebar-refinement@948af2b

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.