promotional bannermobile promotional banner

JSON Recipe Edit

Modpack tool to edit recipes and other pack functions

JSON Recipe Edit is a Minecraft mod intended to provide a way for modpack creators to customize many elements of their pack.

 

It works by having a one or more json files the pack creator makes, these file combined is called the "json script" and is evaluated after all mods are initialized.

 

In this script many types of tweaks are possible such as updating recipes and other parameters. In many ways this makes JSON Recipe Editor a mod related to minetweaker / crafttweaker, however with a different runtime, and no way to reload once the world is loaded.  This means some things possible in this mod can't be done in minetweaker, and some things in minetweaker can't be done in this mod.

  

Want to help this project but can't code? Help document it on the wiki, report any bugs, and help new users customize their packs!

 

Quick Guide:

1) Install the mod in the mods folder

2) create a text file named jsonrecipeedit.json in the config folder

3) in jsonrecipeedit.json create a json to run the "commands" you want to be evaluated for your pack (see the example script and wiki for the format of the json file)

 

Example script:

https://github.com/ezterry/JsonRecipeEdit/wiki/Sample1

 

Wiki:

 

Editable documentation

https://github.com/ezterry/JsonRecipeEdit/wiki

 

Commands: 

The current commands built into JsonRecipeEdit

 

 

Tinkers Construct Integration

If tinkers construct is installed these additional commands are available

Actually Additions Integration

If actually additions is installed these additional commands are available

 

JSON Schema

 

I've been finding many small json errors in some of the early packs, to prevent this I highly recommend using an editor that validates the json file, and ideally also verifies the schema, to ensure fewer errors staring your worlds due to typos.

 

Option 1:

https://jsonschemalint.com/#/version/draft-04/markup/json

 

Here you can paste the schema file from github into the pane on the left and the final json script on the right, it will inform you if there is an error by turning red

 

 

Option 2:

http://jsoneditoronline.org/#/

 

Here you can prepare the enviroment:

1) Goto Settings -> Add Schema

2) Select specify by url and paste the url in "https://raw.githubusercontent.com/ezterry/JsonRecipeEdit/master/util/jsonrecipeedit.schema.json"

3) Choose OK

 

Now when you edit on the box on the right you can see red Xs where there are json errors, and yellow warnings where the format is incorrect from the JSON Recipe Edit template.

 

Using the arrows in the middle you can also transfer the text to the tree and back, this may make editing command block commands, and nbt data easier where nested quotes may exist.  It also makes it easier to see where a schema error exists.

 

Other Options:

 

The above 2 options use free online resources, however other options exist, including using intelli-j if you are a mod creator, and adding the schema manually in there.  Other for pay json editing software exists with and without support for the JSON Schema format.

Modpacks:

This mod is intended for modpack creators thus may be included in any modpack without specific permission from me.  In addition its provided under the BSD licence thus modified versions may be also provided without my permission.

 

While not strictly required it is polite to link back here or my github if you distribute or modify the file.

 

Patches:

While I welcome patches, please note: it is important that any new command doesn't change the systems state unless it's called from the JSON script.  In addition any changes requiring  core modes will not be accepted into Json Recipe Edit (Feel free however to add such commands via another mod using the API)

The JSON Recipe Edit Team

profile avatar
Owner
  • 4
    Followers
  • 10
    Projects
  • 7.8M
    Downloads

More from ezterryView all

  • DEC Adventure project image

    DEC Adventure

    • 84
    • Modpacks

    Learn the Create Mod, by building Factories of Cogs and Gears, In a world full of new biomes within this small modpack.

    • 84
    • December 28, 2022
    • Modpacks
    • +3
  • Wasteland Topia project image

    Wasteland Topia

    • 476
    • Modpacks

    TekTopia in the wastelands - Now with server files

    • 476
    • March 16, 2020
    • Modpacks
    • +1
  • ezWastelands project image

    ezWastelands

    • 290.4K
    • Mods

    A small mod to generate a mostly (but not completely) flat wasteland terrain.

    • 290.4K
    • June 23, 2019
    • Mods
    • +1
  • Third Person Mod project image

    Third Person Mod

    • 6.4K
    • Mods

    Force play into the third person

    • 6.4K
    • July 4, 2018
    • Mods
  • DEC Adventure project image

    DEC Adventure

    • 84
    • Modpacks

    Learn the Create Mod, by building Factories of Cogs and Gears, In a world full of new biomes within this small modpack.

    • 84
    • December 28, 2022
    • Modpacks
    • +3
  • Wasteland Topia project image

    Wasteland Topia

    • 476
    • Modpacks

    TekTopia in the wastelands - Now with server files

    • 476
    • March 16, 2020
    • Modpacks
    • +1
  • ezWastelands project image

    ezWastelands

    • 290.4K
    • Mods

    A small mod to generate a mostly (but not completely) flat wasteland terrain.

    • 290.4K
    • June 23, 2019
    • Mods
    • +1
  • Third Person Mod project image

    Third Person Mod

    • 6.4K
    • Mods

    Force play into the third person

    • 6.4K
    • July 4, 2018
    • Mods