Last active
January 13, 2024 20:09
-
-
Save williewillus/9ebb0d04329526e31564 to your computer and use it in GitHub Desktop.
ProjectE Custom Conversion JSON Grammar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: For 1.20.4 and above, see the new grammar: https://gist.github.com/pupnewfster/7b5c411635e16227c1dea9af5e20e4c3 | |
{ | |
"comment": <Optional comment describing the file>, | |
"groups": { | |
"<name>": <group>, ... | |
}, | |
"values": { | |
"before": <valuemap>, | |
"after": <valuemap>, | |
"conversion": [ <conversion>, ... ] | |
} | |
} | |
----------- | |
<valuemap> ::= { | |
<item>: <value>, | |
... | |
} | |
<group> ::= { | |
"comment": <Optional comment>, | |
"conversions": [ <conversion>, ... ] | |
} | |
<conversion> ::= { | |
"output": <item>, | |
"count": <int> // If left out, defaults to 1 | |
"ingredients": <ingredients> | |
"evalOD": <bool> // If true and the output is an oredict entry, this conversion will be propagated to all ItemStacks in the oredict matching the oredict name | |
} | |
<ingredients> ::= [ | |
<item>, ... // Defaults to 1 for everything, specifying an item again increments the count | |
] | |
<ingredients> ::= { | |
<item>: <int>, ... // The number of times the item is used | |
} | |
<item> ::= | |
"<modid>:<registryName>" | |
"<modid>:<registryName>" // Wildcard value | |
"#domain:name" // Reference a tag ID | |
"FAKE|<name>" // Create a fake item used in this file | |
"FLUID|<fluidName>" // Registry name of a fluid | |
<value> ::= | |
<int> | |
"free" // Marks this ingredient as "free" to the mapper, which means it does not contribute to the final cost of the output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for 1.20.4 and above, see https://gist.github.com/pupnewfster/7b5c411635e16227c1dea9af5e20e4c3