Commit f7ab06cf authored by primetoxinz's avatar primetoxinz

Add recipes to convert quark candles and bwm candles

parent b06a589d
......@@ -27,3 +27,4 @@ run*
/src/main/java/mcmultipart/test/
/src/main/resources/assets/mcmultiparttest/
/src/main/java/net/minecraftforge/debug/
*.py
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 0
},
"ingredients": [
{
"item": "quark:candle",
"data": 0
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 1
},
"ingredients": [
{
"item": "quark:candle",
"data": 1
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 10
},
"ingredients": [
{
"item": "quark:candle",
"data": 10
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 11
},
"ingredients": [
{
"item": "quark:candle",
"data": 11
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 12
},
"ingredients": [
{
"item": "quark:candle",
"data": 12
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 13
},
"ingredients": [
{
"item": "quark:candle",
"data": 13
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 14
},
"ingredients": [
{
"item": "quark:candle",
"data": 14
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 15
},
"ingredients": [
{
"item": "quark:candle",
"data": 15
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 2
},
"ingredients": [
{
"item": "quark:candle",
"data": 2
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 3
},
"ingredients": [
{
"item": "quark:candle",
"data": 3
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 4
},
"ingredients": [
{
"item": "quark:candle",
"data": 4
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 5
},
"ingredients": [
{
"item": "quark:candle",
"data": 5
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 6
},
"ingredients": [
{
"item": "quark:candle",
"data": 6
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 7
},
"ingredients": [
{
"item": "quark:candle",
"data": 7
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 8
},
"ingredients": [
{
"item": "quark:candle",
"data": 8
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": 9
},
"ingredients": [
{
"item": "quark:candle",
"data": 9
}
],
"type": "forge:ore_shapeless"
}
recipe = """
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": META
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": META
}
],
"type": "forge:ore_shapeless"
}
"""
bwm_recipe = """
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "betterwithmods:candle",
"data": META
},
"ingredients": [
{
"item": "quark:candle",
"data": META
}
],
"type": "forge:ore_shapeless"
}
"""
for i in range(0, 16):
s = str(i)
with open('quark_candle_' + s + '.json', 'w+') as f:
f.write(recipe.replace('META', s, 2))
with open('candle_' + s + '.json', 'w+') as f:
f.write(bwm_recipe.replace('META', s, 2))
# class Ingredient(object):
# pass
#
#
# class ItemStack(Ingredient):
# def __init__(self, item, data):
# self.item = item
# self.data = data
#
#
# class Recipe(object):
# def __init__(self, type):
# self.type = type
#
#
# class ShapelessRecipe(Recipe):
# def __init__(self, result, ingredients):
# super().__init__("forge:ore_shapeless")
# self.result = result
# self.ingredients = ingredients
#
#
# bwm_candle = ItemStack("betterwithmods:candle", 0)
# quark_candle = ItemStack("quark:candle", 0)
# recipe = ShapelessRecipe(bwm_candle, [quark_candle])
# import json
#
# print(json.dumps(recipe))
#
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 0
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 0
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 1
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 1
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 10
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 10
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 11
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 11
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 12
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 12
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 13
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 13
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 14
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 14
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 15
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 15
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 2
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 2
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],
"result": {
"item": "quark:candle",
"data": 3
},
"ingredients": [
{
"item": "betterwithmods:candle",
"data": 3
}
],
"type": "forge:ore_shapeless"
}
{
"conditions": [
{
"type": "config",
"enabled": "quark"
}
],