什么是 ItemFig
一个用于在 MC Forge 中通过 JSON 保存和读取物品配置的简单库。
该库由 CrazedAerialCable 从零开始编写,其灵感源自 Weaponworks 1.3 中的原始想法。当时这一想法由优秀的模组作者 Lyof 提供并进行了原型开发。我诚挚推荐你查看他的其他作品,例如 Sortilege 和 Ends Phantasm!
当前功能:
-
从 JSON 格式的配置文件中读取和保存配置值。
-
如果配置文件被删除,则根据设定的默认值自动重建配置文件。
-
自动重建配置文件中缺失物品的整组值(例如当添加了新物品时)。
-
自动重建物品字段值的配置(例如当你想要重置武器的伤害值时)。
-
更改配置文件的位置和名称(扩展名必须为 json)。
当前限制
以下是我目前已知、能想到且未来可能改进的地方:
- 目前所有内容都存放在同一个配置文件中。
- 你无法更改配置文件本身的路径。它只会保存在 config 文件夹中。
Wiki:
What is ItemFig
A simple library for saving and reading config for items in MC Forge with use of JSON.
The lib, while written from scratch by CrazedAerialCable, bases on the original idea seen in Weaponworks 1.3. The idea itself back then was provided and prototyped by the awesome modder Lyof. I kindly encourage you to check out his mods like Sortilege and Ends Phantasm!
Current features:
-
Reading and saving config values from and to a config file in json format.
-
Auto-recreating config file from set default values if the config is deleted.
-
Auto-recreating values for entire missing items in config file (i.e. when new item is added).
-
Auto-recreating values for items' fields values (i.e. when you want to reset damage value of a weapon).
-
Changing the location and name of the config file (extension can be only json tho).
Current limitations
What I am aware of and can think of and can do something about in the future:
- For now everything is put in one config file.
- You cannot change the path to the config file itself. It will just land in the config folder.
Wiki:
评论 0
登录后参与评分
还没有评论,来抢沙发吧