数据驱动堆肥桶
一款适用于 Fabric 和 Quilt 的服务端模组,允许你自定义可以投入堆肥桶的物品!
如何使用?
前置要求:
- Minecraft 1.18.2+
- Data Driven Composter
- 以下加载器之一:
安装 Minecraft 1.18.2 或 1.19、DDC 以及你选择的模组加载器,然后在 config/ddc.json 中自定义配置。不需要客户端模组,但你可以安装它以便在单人游戏或局域网中使用。
配置 - ddc.json
示例配置
注意:默认情况下,整个注册表 将 存在。
提示:如果你希望在不重启服务器的情况下热重载配置,请使用游戏内置的 /reload 命令。
DDC 会自动实时加载你的更改,无需其他干预,包括如果你想恢复原版注册表的话。
{
// 是否禁用原版注册。
// 如果你想为原版物品定义自己的值,请将其设置为 true。
"disableDefaultVanillaRegistry": false,
// 是否禁用数据包注册表。
// 如果你想为原版物品定义自己的值,或者禁用 Quilt 上的模组条目,请将其设置为 true。
"disableDatapackRegistry": false,
// 是否记录注册信息。
// 由于每次调用都会刷屏打印堆栈跟踪,因此默认处于禁用状态。
"logAllDirectRegistration": false,
// 可以在堆肥桶中进行堆肥的物品。
// 标识符 -> 概率
"compostableItems": {
"minecraft:glow_lichen": 0.5,
"minecraft:poppy": 0.65,
"minecraft:cocoa_beans": 0.65,
"minecraft:azalea": 0.65,
"minecraft:nether_wart": 0.65,
...
}
}
disableDefaultVanillaRegistrytrue: 禁用原版注册。false: 保留原版注册。
disableDatapackRegistrytrue: 禁用数据包注册。false: 保留数据包注册。
logAllDirectRegistration: 调试选项。true: 将所有注册信息记录到堆肥桶方块。false: 不向堆肥桶方块记录任何注册信息。
compostableItemsminecraft:...: 允许进行堆肥的物品的标识符。0 - 1: 物品加入堆肥桶的概率(介于 0 和 1 之间)。
计划中的功能
- 可自定义带有概率的返回结果
- QSL 的 RegistryEntryAttachment 用于更动态的初始化。
- 自定义数据包配方类型,以允许数据包注册可堆肥物品。
Data Driven Composter
A server-sided composter mod that allows you to customise what you can feed to composters for Fabric & Quilt!
How to Use?
Requirements:
- Minecraft 1.18.2+
- Data Driven Composter
- One of either mod loader:
Install Minecraft 1.18.2 or 1.19, DDC and your mod loader of choice, then customise the config at config/ddc.json. No client
mod is required, but you may install to use it in single player or with LAN.
Config - ddc.json
Example configuration
Note: By default, the entire registry will be present.
Tip: If you would like to hot reload the configuration without restarting the server, use the default /reload command
built into the game.
DDC will automatically load in your changes live without any other intervention, including restoring the vanilla
registry if you want.
{
// Whether to disable vanilla registration. Set this to true if
// you'd like to define your own values for vanilla's stuff.
"disableDefaultVanillaRegistry": false,
// Whether to disable the datapack registry. Set this to true if
// you'd like to define your own values for vanilla's stuff, or
// disable modded entries on Quilt.
"disableDatapackRegistry": false,
// Whether registration should be logged or not.
// Disabled by default due to it spamming stack traces for each call.
"logAllDirectRegistration": false,
// Items that can be composted in a composter.
// Identifier -> Chance
"compostableItems": {
"minecraft:glow_lichen": 0.5,
"minecraft:poppy": 0.65,
"minecraft:cocoa_beans": 0.65,
"minecraft:azalea": 0.65,
"minecraft:nether_wart": 0.65,
...
}
}
disableDefaultVanillaRegistrytrue: Disables Vanilla registration.false: Keep Vanilla registration.
disableDatapackRegistrytrue: Disables datapack registration.false: Keep datapack registration.
logAllDirectRegistration: Debugging option.true: Logs all registrations to the composter block.false: Does not log any registration to the composter block.
compostableItemsminecraft:...: Identifier for the item to allow composting of.0 - 1: Chance between 0 & 1 for an item to add to the composter.
Planned Features
- Customisable returns with chance
- QSL's RegistryEntryAttachment for more dynamic initialisation.
- Custom Datapack Recipe type to allow for datapacks to register compostable items.
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Data Driven Composter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
自 v0.2.1 版本以来的更改
- 正确修复 JiJ 生命周期事件
1.20 注意事项:你需要下载最新版的 Fabric API。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧