promotional bannermobile promotional banner

Lib Data Potential (LibDP)

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.

 

The Lib Data Potential (LibDP) Team

profile avatar
  • 19
    Followers
  • 42
    Projects
  • 1.5M
    Downloads

More from LemmaEOFView all