Loading...
Beta Modpages Unclaimed

JSON Recipe Edit

Modpack tool to edit recipes and other pack functions

0 Likes
19168 Downloads
Created by ezterry

Description

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)


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Mantle

Shared code for Forge mods

AutoRegLib

A library to ease menial tasks in mod development.

CraftTweaker

CraftTweaker allows modpacks and servers to customize the game. With CraftTweaker you can change recipes, script events, add new commands and even change item properties!

CoFH Core

Contains Core Functionality for all Team CoFH mods. Also does some really cool stuff on its own!

Patchouli

Accessible, Data-Driven, Dependency-Free Documentation for Minecraft Modders and Pack Makers

Baubles

An addon module and API for Thaumcraft