Skip to content

Commit

Permalink
- Fix pumpkin chunks bulk recipe (Closes #99)
Browse files Browse the repository at this point in the history
- Fix mixing bowls not consuming ingredients
- Add peel to tool rack
  • Loading branch information
eerussianguy committed Nov 20, 2022
1 parent d4b59a4 commit a739521
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 19 deletions.
2 changes: 1 addition & 1 deletion resources/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def generate(rm: ResourceManager):
rm.item_tag('oven_fuel', '#minecraft:logs', 'tfc:stick_bundle')
rm.item_tag('chocolate_blends', 'firmalife:food/milk_chocolate_blend', 'firmalife:food/dark_chocolate_blend', 'firmalife:food/white_chocolate_blend')
rm.item_tag('tfc:foods/can_be_salted', 'firmalife:food/butter')
rm.item_tag('tfc:usable_on_tool_rack', 'firmalife:spoon')
rm.item_tag('tfc:usable_on_tool_rack', 'firmalife:spoon', 'firmalife:peel')
rm.item_tag('pumpkin_knapping', 'tfc:pumpkin')
rm.item_tag('foods/heatable', 'firmalife:food/raw_pizza', 'firmalife:food/filled_pie', 'firmalife:food/raw_pumpkin_pie')
rm.item_tag('foods/dynamic', 'firmalife:food/raw_pizza', 'firmalife:food/filled_pie', 'firmalife:food/cooked_pizza', 'firmalife:food/cooked_pie')
Expand Down
2 changes: 1 addition & 1 deletion resources/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate(rm: ResourceManager):
rm.crafting_shapeless('crafting/raw_pumpkin_pie', ('firmalife:food/pumpkin_pie_dough', 'firmalife:pie_pan'), 'firmalife:food/raw_pumpkin_pie').with_advancement('firmalife:food/pumpkin_pie_dough')
rm.crafting_shaped('crafting/squirting_moisture_transducer', ['XYX', 'XZX', 'XYX'], {'X': '#forge:sheets/stainless_steel', 'Y': 'tfc:brass_mechanisms', 'Z': '#forge:rods/nickel'}, 'firmalife:squirting_moisture_transducer').with_advancement('#forge:rods/stainless_steel')
rm.crafting_shaped('crafting/embedded_pipe', ['XY', 'XY', 'ZZ'], {'X': '#forge:rods/stainless_steel', 'Y': '#forge:rods/copper', 'Z': 'firmalife:beeswax'}, '6 firmalife:embedded_pipe').with_advancement('#forge:rods/stainless_steel')
rm.crafting_shaped('crafting/pumpkin_chunks_bulk', ['XXX', 'XYX', 'XXX'], {'X': 'tfc:pumpkin', 'Y': '#tfc:hammers'}, '8 firmalife:food/pumpkin_chunks').with_advancement('tfc:pumpkin')
damage_shapeless(rm, 'crafting/pumpkin_chunks_bulk', ('#tfc:hammers', *('tfc:pumpkin' for _ in range(0, 8))), '8 firmalife:food/pumpkin_chunks').with_advancement('tfc:pumpkin')
rm.crafting_shapeless('crafting/garlic_bread', ('firmalife:food/toast', 'firmalife:food/butter', 'tfc:food/garlic'), 'firmalife:food/garlic_bread').with_advancement('tfc:food/garlic')
rm.domain = 'tfc'
rm.crafting_shapeless('crafting/pumpkin_pie', ('firmalife:food/cooked_pumpkin_pie',), 'minecraft:pumpkin_pie').with_advancement('firmalife:food/cooked_pumpkin_pie')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ private void finishMixing()
for (int i = 0; i < SLOTS; i++)
{
inventory.setStackInSlot(i, ItemStack.EMPTY);
}
for (int i = 0; i < SLOTS; i++)
{
if (count > 0)
{
inventory.setStackInSlot(i, Helpers.copyWithSize(outputStack, 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,5 @@ private static <T extends Block> RegistryObject<T> register(String name, Supplie
{
return RegistrationHelpers.registerBlock(BLOCKS, FLItems.ITEMS, name, blockSupplier, blockItemFactory);
}

}
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
{
"__comment__": "This file was automatically created by mcresources",
"type": "minecraft:crafting_shaped",
"pattern": [
"XXX",
"XYX",
"XXX"
],
"key": {
"X": {
"item": "tfc:pumpkin"
},
"Y": {
"tag": "tfc:hammers"
"type": "tfc:damage_inputs_shapeless_crafting",
"recipe": {
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"tag": "tfc:hammers"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
},
{
"item": "tfc:pumpkin"
}
],
"result": {
"item": "firmalife:food/pumpkin_chunks",
"count": 8
}
},
"result": {
"item": "firmalife:food/pumpkin_chunks",
"count": 8
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"__comment__": "This file was automatically created by mcresources",
"replace": false,
"values": [
"firmalife:spoon"
"firmalife:spoon",
"firmalife:peel"
]
}

0 comments on commit a739521

Please sign in to comment.