From 4e2c557a62ad265483ef3a5db191c2b479fc9f41 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 2 Mar 2015 18:37:30 +0100 Subject: [PATCH] Changed silly crafts in food mod - Disabled and changed silly crafts in food mod which allowed players to craft food with sand, dry shrub, and such nodes --- mods/food/ingredients.lua | 45 +++++++++++---------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/mods/food/ingredients.lua b/mods/food/ingredients.lua index 503aa78a..d368aa0e 100755 --- a/mods/food/ingredients.lua +++ b/mods/food/ingredients.lua @@ -12,12 +12,11 @@ food.module("wheat", function() inventory_image = "food_wheat.png", groups = {food_wheat=1} }) - food.craft({ - output = "food:wheat", + output = "food:potato", recipe = { - {"default:dry_shrub"}, - } + {"farming:wheat"} + }, }) end, true) @@ -34,13 +33,6 @@ food.module("flour", function() {"group:food_wheat"} } }) - food.craft({ - output = "food:flour", - recipe = { - {"default:sand"}, - {"default:sand"} - } - }) end, true) food.module("potato", function() @@ -52,10 +44,8 @@ food.module("potato", function() food.craft({ output = "food:potato", recipe = { - {"default:dirt"}, - {"default:apple"} - - } + {"farming:potato"} + }, }) end, true) @@ -68,10 +58,8 @@ food.module("tomato", function() food.craft({ output = "food:tomato", recipe = { - {"", "default:desert_sand", ""}, - {"default:desert_sand", "", "default:desert_sand"}, - {"", "default:desert_sand", ""} - } + {"farming:tomato"} + }, }) end, true) @@ -85,8 +73,8 @@ food.module("carrot", function() food.craft({ output = "food:carrot", recipe = { - {"default:apple", "default:apple", "default:apple"}, - } + {"farming:carrot"} + }, }) end, true) @@ -101,10 +89,8 @@ food.module("milk", function() food.craft({ output = "food:milk", recipe = { - {"default:sand"}, - {"bucket:bucket_water"} + {"mobs:bucket_milk"} }, - replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}, }) end, true) @@ -117,9 +103,7 @@ food.module("egg", function() food.craft({ output = "food:egg", recipe = { - {"", "default:sand", ""}, - {"default:sand", "", "default:sand"}, - {"", "default:sand", ""} + {"mobs:egg"} } }) end, true) @@ -133,9 +117,7 @@ food.module("cocoa", function() food.craft({ output = "food:cocoa", recipe = { - {"", "default:apple", ""}, - {"default:apple", "", "default:apple"}, - {"", "default:apple", ""} + {"farming:cocoa_beans"} } }) end, true) @@ -164,8 +146,7 @@ food.module("meat", function() food.craft({ output = "food:meat_raw", recipe = { - {"default:apple"}, - {"default:dirt"} + {"mobs:meat_raw"} } }) end