|
|
ConfigJS (ConfigJS)Github |相关wiki |源站链接支持: forge , neoforge使用KubeJS编写自定义Forge toml配置文件
ConfigJS是一个用于在KubeJS脚本中编写自定义Forge toml配置文件的模组。它为用户提供了通过KubeJS脚本创建自定义Forge toml配置文件的功能。具体的用法和细节请参阅Wiki。
功能介绍:
ConfigJS模组的主要功能包括:
- 允许通过KubeJS脚本创建自定义Forge toml配置文件。
- 提供了丰富的API和方法来操作配置文件。
使用示例:
以下是一个创建常见配置文件的示例:
ConfigsEvent.common(event => {
event.setName(\'My Very Cool Config File\')
event.push(\'debug\')
event.comment(\'Determines how many particles should be spawned around the player in debug mode\')
global.debugParticleCount = event.intValue(\'numberOfParticles\', 0, 0, 20)
event.comment(\'Determines if debug mode is enabled\')
global.debugEnabled = event.booleanValue(\'enabled\', false)
event.pop()
event.comment(\'be wild!\')
global.selector = event.enumValue(\'selectorType\', \'basic\', [\'basic\', \'advanced\', \'supreme\'])
})Copy已复制!
以上示例演示了如何使用ConfigJS模组创建一个常见的配置文件。通过KubeJS脚本,用户可以定义配置文件的名称、注释、参数类型和取值范围等信息。
来自Modrinth所有游戏版本1.20.1所有类型forgeneoforgeConfigJS 1.0.3configjs-1.0.3-1.20.1.jar下载1.0.3#Release- Add the ability to add string list config options展开版本: 1.0.3支持游戏: 1.20.1类型:ForgeNeoForgeRelease下载次数: 740ConfigJS 1.0.2configjs-1.0.2-1.20.1.jar下载1.0.2#Release- Add the ability to add string config options展开版本: 1.0.2支持游戏: 1.20.1类型:ForgeNeoForgeRelease下载次数: 78ConfigJS 1.0.1configjs-1.0.1-1.20.1.jar下载1.0.1#Release- Fix created configs being registered to the wrong mod container展开版本: 1.0.1支持游戏: 1.20.1类型:ForgeNeoForgeRelease下载次数: 235全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
ConfigJS |
|