Перейти к содержимому
Mineforgian

ConfigJS

Write custom Forge toml configs with KubeJS

Загрузки
2K
Подписчики
4
Обновлён
26 июня 2024 г.
Лицензия
MIT

Опубликован 28 декабря 2023 г.

Adds the ability to create custom Forge toml config files through KubeJS scripts, see the wiki for specifics and usage

An example of creating a common config file:

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'])
})

Центр версий

3 версий
  • Релиз38 КБ
  • Релиз38 КБ
  • Релиз37 КБ

Ченджлог

1.0.3Релиз1.20.1 · 26 июня 2024 г.
  • Add the ability to add string list config options
1.0.2Релиз1.20.1 · 19 июня 2024 г.
  • Add the ability to add string config options
1.0.1Релиз1.20.1 · 31 декабря 2023 г.
  • Fix created configs being registered to the wrong mod container

Комментарии

Загружаем…