Giter VIP home page Giter VIP logo

custom-json-recipes's Introduction

Custom-Json-Recipes

This mod provides a basic example of how mods can add their own custom recipe systems which are compatible with the vanilla recipe serialization framework, without breaking mods like CraftTweaker and JEI. In this example mod we create a "Click Block Recipe" which allows items to be crafted into other items when left clicked on a specific block.

With this system your recipes will

  • load from json files, which can be defined by any mod, datapack, or modpack.
  • synchronized to the client when a player joins a server.
  • reloadable using the /reload command.
  • have the potential to be compatible with CraftTweaker and JEI without using additional hacks.

This example mod includes all the neccesary source code, along with comments on what the code does, and why certain decisions were made. You will still need a basic understanding of Java to make use of this code. This mod also provides several example json files. These files are in the data.modid.recipes directory, but you can also load recipes from subdirectories of this folder. The following example recipes are included.

  • Left clicking bone on stone will give the player 3 bone meal.
  • Left clicking any wool on a saw mill will give the player 4 string.
  • Left clicking dirt on a beacon will give the player a diamond.

The Java source files for this project are licensed under Creative Commons 0. The build scripts used are licensed under LGPL 2.1. Any third party tools or plugins such as ForgeGralde and Minecraft are licensed under their respective copyrights.

custom-json-recipes's People

Contributors

darkhax avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.