dataforge API

dataforge API

24 Downloads

Dataforge is meant to allow datapacks to not have any conflicts with each-other and make it easier to do certain tasks.

 How did this start?

it started when I was trying to make these 2 datapacks work without conflict

https://www.planetminecraft.com/mod/heart-crystals-datapack/

https://gm4.co/modules/heart-canisters

once I did I realized if any other datapacks used health boost I would have to write the compatibility for that with the others, which would get redundant. so that's when I typed up the python script that made the health boost API (the only actually functioning one at the moment)

when using this for your datapacks you need to first call the API's start function which would be 

(in load.mcfunction) function start:(API name)_API

current API's

health boost

math (rand)

mob

to do

math(sin, cos, tan, exponent, floats (might use cotton scripting for that))

magic

other effects e.g speed, strength or jump boost

structure spawning or ore spawning

block

enchantments

tinker tools

(I could go on for awhile if I thought of anything else)

want to help?

you can make a pull request on my GitHub for this but it needs a certain format.

it needs a start function (if scores or preset values are used)

a tick.json isn't used but you can use a (name).json to have users of the API call multiple functions/scripts (yes we are going to use fabric and cotton scripting)

if optional fabric compatibility is used make sure to use a separate start function for that