跳到正文

Data Driven Composter

作者:Ampflower

An overly configurable composter

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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:

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,
      ...
   }
}
  • disableDefaultVanillaRegistry
  • true: Disables Vanilla registration.
  • false: Keep Vanilla registration.
  • disableDatapackRegistry
  • true: 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.
  • compostableItems
  • minecraft:...: 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 支持哪些 Minecraft 版本?

Data Driven Composter 支持 Minecraft Java 版 1.18.2–1.20.2,共 9 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Data Driven Composter 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Ampflower 的其他作品

查看全部 →