LPS Recipe Core API [Datapack Edition]

LPS Recipe Core API [Datapack Edition]

6.1k Downloads

This API May change frequently, It is important that you update your pack alongside any needed changes.

Legopitstop's Recipe Core API [datapack]

by Legopitstop

This API pack adds recipes to items with NBT (Named Binary Tag). Inside the zip, there is the data pack and resource pack. Make sure this resource pack is below any resource pack that is provided by other packs But is not below the vanilla Minecraft resource pack.

Click on the above image, select plan (at least 4GB), use code legopitstop to get 25% off your first month and enjoy playing with your friends!

This data pack is being rewritten to include lots of new features. Including an even better recipe API system, Keep an eye out on when the update goes out, will be labeled as v2.8.0 or something like that... In the meantime use v2.7.1.

Buy Me a Coffee at ko-fi.com

All packs that need this API will have a button shown below
LPS Recipe API

add the button to your website!

Curseforge

Source Code

To add the button to your Curseforge page copy the below code then edit your page, click on the "</>" button next to the text format. then paste the code where you want it. I usually type something in the text editor first then go back and replace that text so I know where the button will end up.

<p><br /><a href="https://www.curseforge.com/minecraft/customization/legopitstops-recipe-core-datapack" target="_blank" rel="ugc nofollow noopener noreferrer"><img class="autosize_img" src="https://i.ibb.co/kQyP14r/lps-recipe-api-button.png" alt="LPS Recipe API" width="253" height="64" /></a></p>

Planet Minecraft

BBCode Source

To add the button to your PMC page copy the below code then edit your page, click on the "<>" button next to the full-screen button. Paste the code where you want it. I usually type something in the text editor first then go back and replace that text so I know where the button will end up.

[url=https://www.curseforge.com/minecraft/customization/legopitstops-recipe-core-datapack][img title="Go to LPS Recipe API download" width=253]https://i.ibb.co/kQyP14r/lps-recipe-api-button.png[/img][/url]

GitHub

MarkDown

To add the button to your Github page copy the below code then paste it into Github.

[![LPS Recipe API](https://i.ibb.co/kQyP14r/lps-recipe-api-button.png)]( https://www.curseforge.com/minecraft/customization/legopitstops-recipe-core-datapack)

Other

HTML

Add this code to any HTML website / document

    <img src="https://i.ibb.co/kQyP14r/lps-recipe-api-button.png" title="Go to download" alt="LPS Recipe API"
        style="text-align:center;min-width:253;width:253;min-height:64;height:64">

HTML Shield

Info

These are the attributes that are in some/all of the buttons if they are supported in that format.

  Hoasted Image=https://i.ibb.co/kQyP14r/lps-recipe-api-button.png

  Follow URL=https://www.curseforge.com/minecraft/customization/legopitstops-recipe-core-datapack

  Width=253

  Height=64

  Title=LPS Recipe API

  Alt=Go to download

 
My Packs (The following packs need this API)
-Charms Add in charms to make the endgame easier.
-More food Adds in more food because vanilla doesn't have enough.
-More buckets Add in more buckets
-Vending Machine adds in a working vending machine and new food.

LPS Recipe Packs Collection - Find all the above packs here

How to use in-game?

Creative

  • To get the custom crafting table do /function give:crafting_table
  • To get the recipe book table do /function give:recipe_book_table

Survival

  • Rename a regular crafting table to "Custom Crafting Table" (It is capital and spelling sensitive)
  • Then you can place the table on the ground. (right click to open)
  • To remove the table simply break in creative or with a pickaxe in survival.

 Other Links

Q&A

Why do I need to install this datapack?

This datapack is mainly for other datapacks, So just this datapack on its own doesn't have that much.

Do I need the resource pack too?

Yes without the resource pack things look... well.. vanilla Minecraft-like, So it is recommended to have the resource pack installed and enabled.

Why does this have to be a separate pack?

This pack is separate from my other packs because it means less work of having to copy all the same code over each pack that requires custom recipes, Plus it means others can use the API too.

What's the whole point of this pack?

If you read the description above this is because the Minecraft Crafting Table does not support custom NBT which is what custom items in datapacks use.

Can I use this API for my pack?

Feel free to use this API for your pack(s). Just make sure you follow the custom license and if you plan on publishing your pack you may not include the API code inside the download, they must download the pack here. Plus if you let me know I can add it to this description (free advertisement)

Does this pack work on servers/realms?

It has not been tested so you may get some errors. If you come across any issues please submit a bug report via the bug tracker page.

The pack doesn't work for me?

If you are having issues with getting the pack to work try the following;

  • Make sure you have the datapack and resource pack installed in the current place. (unzip the downloaded file, there should be 2 other zips, one is a resource pack, the other is the datapack)
  • run the command "/reload". This will reload all datapacks on the world/server.
  • Check and make sure you are using the recommended Minecraft version. It may not work with the latest version of Minecraft
  • Make sure you have the latest version of the pack just in case it was a bug that got fixed.

If you continue having issues send a comment below or contact me via discord.

What version of the API do I use?

Different packs will require a different version of the API (This is because of some changes between Minecraft and pack versions) You can see what version the pack needs by looking at the badge version displayed at the top of the Curseforge page. It is always recommended to use the latest version of the API, but if you are using a pack that was made for an older version you will need to use that version (see examples below)

- For Minecraft 1.17 (incompatible with older versions.)

- For Minecraft 1.16

- For Minecraft 1.15

- For Minecraft 1.14

For Developers

Inside the resource and data pack, there is a provided template pack to help in making this API work with your data pack. If you have any questions or comments you can drop them below or send me a message on discord. Legopitstop#4774

You can find the entire documentation of the API via Github Wiki