From 6d9cdc0a25bb017181e8be79ee377a7bdc74bc73 Mon Sep 17 00:00:00 2001 From: Grizzly Adam <35204361+Grizzly-Adam@users.noreply.github.com> Date: Mon, 15 Jan 2018 12:18:05 -0600 Subject: [PATCH] Add files via upload --- README.md | 69 +++++++++++++++++----------------- barley.lua | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ cooking.lua | 11 ++++++ kettle.lua | 1 + 4 files changed, 153 insertions(+), 33 deletions(-) create mode 100644 barley.lua diff --git a/README.md b/README.md index 3ca6fda..2645159 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,46 @@ -BBQ v1.1 by Grizzly Adam +BBQ v1.11 by Grizzly Adam https://forum.minetest.net/viewtopic.php?f=9&t=19324 https://github.com/Grizzly-Adam/BBQ +Goals +----- +-Expanding the cooking & food options in Minetest +-Add working smoker and grill to Minetest +-Utilize under-used items, such as vessels, vessel shelf, and mushrooms +-Be compatible with and expand on Mobs-Redo and it's Animals pack +-Be compatible with Food Rubenwardy's Food Mod +-Be compatible with Auke Kok's Crops Mod +-Be compatible with Farming-Redo Mod + +Documentation +------------- + +For more information about what is in this pack, check the file: description.txt + +Credits +--------- + +Created by Grizzly Adam + +Feel free to resue parts or all of my work. + +Exceptions: + +* Potato image, Tomato image and original corn image taken from Auke Kok's Crops Mod +* Beef designs taken from Daniel_Smith, some were further modified +* All other textures created by Grizzly Adam + +Have I forgotten to credit your work? Please tell me. + New In This Version ------------------- +Adjusted Kettle Grill fire animation +Fixed Kettle Grill crafting recipe. + +New In Version 1.1 +------------------- New Items: Kettle Gril Lump Charcoal (fuel) @@ -62,35 +97,3 @@ Updated Textures: Brine Hotdog Hamburger - - - -Goals ------ --Expanding the cooking & food options in Minetest --Add working smoker and grill to Minetest --Utilize under-used items, such as vessels, vessel shelf, and mushrooms --Be compatible with and expand on Mobs-Redo and it's Animals pack --Be compatible with Food Rubenwardy's Food Mod --Be compatible with Auke Kok's Crops Mod --Be compatible with Farming-Redo Mod - -Documentation -------------- - -For more information about what is in this pack, check the description.txt pack - -Credits ---------- - -Created by Grizzly Adam - -Feel free to resue parts or all of my work. - -Exceptions: - -* Potato image, Tomato image and original corn image taken from Auke Kok's Crops Mod -* Beef designs taken from Daniel_Smith, some were further modified -* All other textures created by Grizzly Adam - -Have I missed out credit? Please tell me. diff --git a/barley.lua b/barley.lua new file mode 100644 index 0000000..a44d843 --- /dev/null +++ b/barley.lua @@ -0,0 +1,105 @@ +--Barley + +minetest.register_node("bbq:barley_1", { + description = "Barley", + drawtype = "plantlike", + waving = 1, + tiles = {"bbq_barley_1.png"}, + -- Use texture of a taller barley stage in inventory + inventory_image = "bbq_barley_3.png", + wield_image = "bbq_barley_3.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy = 3, flora = 1, attached_node = 1, barley = 1, flammable = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -5 / 16, 6 / 16}, + }, + + on_place = function(itemstack, placer, pointed_thing) + -- place a random barley node + local stack = ItemStack("bbq:barley_" .. math.random(1,5)) + local ret = minetest.item_place(stack, placer, pointed_thing) + return ItemStack("bbq:barley_1 " .. + itemstack:get_count() - (1 - ret:get_count())) + end, +}) + +for i = 2, 5 do + minetest.register_node("bbq:barley_" .. i, { + description = "Barley", + drawtype = "plantlike", + waving = 1, + tiles = {"bbq_barley_" .. i .. ".png"}, + inventory_image = "bbq_barley_" .. i .. ".png", + wield_image = "bbq_barley_" .. i .. ".png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + drop = "bbq:barley_1", + groups = {snappy = 3, flora = 1, attached_node = 1, + not_in_creative_inventory = 1, barley = 1, flammable = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16}, + }, + }) +end + +--Dry Barley +minetest.register_node("bbq:dry_barley_1", { + description = "Dry Barley", + drawtype = "plantlike", + waving = 1, + tiles = {"bbq_dry_barley_1.png"}, + inventory_image = "bbq_dry_barley_3.png", + wield_image = "bbq_dry_barley_3.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy = 3, flammable = 3, flora = 1, + attached_node = 1, dry_barley = 1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -3 / 16, 6 / 16}, + }, + + on_place = function(itemstack, placer, pointed_thing) + -- place a random dry barley node + local stack = ItemStack("bbq:dry_barley_" .. math.random(1, 5)) + local ret = minetest.item_place(stack, placer, pointed_thing) + return ItemStack("bbq:dry_barley_1 " .. + itemstack:get_count() - (1 - ret:get_count())) + end, +}) + +for i = 2, 5 do + minetest.register_node("bbq:dry_barley_" .. i, { + description = "Dry barley", + drawtype = "plantlike", + waving = 1, + tiles = {"bbq_dry_barley_" .. i .. ".png"}, + inventory_image = "bbq_dry_barley_" .. i .. ".png", + wield_image = "bbq_dry_barley_" .. i .. ".png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + buildable_to = true, + groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1, + not_in_creative_inventory=1, dry_barley = 1}, + drop = "bbq:dry_barley_1", + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, -1 / 16, 6 / 16}, + }, + }) +end + diff --git a/cooking.lua b/cooking.lua index ddfcef7..9231ce4 100644 --- a/cooking.lua +++ b/cooking.lua @@ -82,6 +82,17 @@ minetest.register_craft( { replacements = {{"bucket:bucket_water","bucket:bucket_empty"}}, }) + +--Kettle Grill Craft Recipe +minetest.register_craft( { + output = "bbq:kettle_grill", + recipe = { + {"default:steel_ingot", "bbq:charcoal_lump", "default:steel_ingot"}, + {"default:steel_ingot", "bbq:charcoal_lump", "default:steel_ingot"}, + {"", "default:steel_ingot", ""} + } +}) + --Smoker Craft Recipe minetest.register_craft( { output = "bbq:smoker", diff --git a/kettle.lua b/kettle.lua index b8b03ed..43556d8 100644 --- a/kettle.lua +++ b/kettle.lua @@ -400,6 +400,7 @@ minetest.register_node("bbq:kettle_grill_active", { fixed = { {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, -- main body {-0.18, -0.3, -0.0, 0.18, .4, 0.0}, -- smoke + {-0.0, -0.3, -0.18, 0.0, .4, 0.18}, -- smoke }, },