跳到正文

Lib Data Potential (LibDP)

作者:LemmaEOF

Unleashing the potential of data packs

收藏

介绍

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

This project requires Fabric. It is still under construction; documentation is not yet available beyond javadocs.

 

Lib Data Potential

 

Let’s play!

Lib Data Potential, or LibDP, opens up new avenues of advanced customization of data-driven systems.

This mod is open source and under a permissive license. As such, it can be included in any modpack on any platform without prior permission. We appreciate hearing about people using our mods, but you do not need to ask to use them. See the LICENSE file for more details.

 

Diskettes

Diskettes are scripts written by an end user in a Parchment supported language to manipulate data-driven constructs in a way not possible with JSON or other libraries. Diskettes are capable of turing-complete conditional checks on the craftability of a recipe, including the state of the player and the world.

 

On Scope

LibCD used to have a system called Tweakers which performed a similar function to diskettes. However, they had a much wider scope, and allowed adding standard versions of any of the common vanilla recipe types. This resulted in the project being massively bloated, and it was practically impossible for me to document everything satisfactorily. LibDP is contracting on its scope, and is only going to have built-in support for things you can’t do with other libs.

 

Alternatives

Since LibDP has a very limited scope, here are some situations that LibDP is not designed for and are better done with alternatives:

– I want to add a couple recipes to my world!

Vanilla JSON recipes are perfect for simple recipe alterations, as that’s the purpose they’re designed for. The crafting recipe builder by thedestruc7i0n is a great help for making JSON recipes.

– I want to add a lot of recipes to my modpack, or edit a lot of similar recipes!

KubeJS is set up in a much better position for editing existing recipes, and it has very good tools to add recipes in bulk as well. It has a lot of documentation and support for other things such as adding your own blocks and items as well.

– I want to add recipes with custom NBT outputs!

NBT Crafting adds support for NBT on JSON recipe inputs and outputs. Its dollar system also allows output NBT to depend on input NBT. If you want to do fancy things with recipes without having to learn how to do full-on programming, this is your best bet.

 

Legacy

The legacy folder in the linked repo contains the contents of the legacy loot and recipe drivers, updated from LibCD names to LibDP ones. You are free to use them to create a legacy driver system for using the features removed from LibDP. Please keep in mind the packages on each of the files.

 

常见问题

Lib Data Potential (LibDP) 支持哪些 Minecraft 版本?

Lib Data Potential (LibDP) 支持 Minecraft Java 版 1.16.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Lib Data Potential (LibDP) 怎么安装?

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

评论

登录后评论和评分

LemmaEOF 的其他作品

查看全部 →