From e5841571aea77680b512ed2a5ecc7a4b831d9970 Mon Sep 17 00:00:00 2001 From: Grizzly Adam <35204361+Grizzly-Adam@users.noreply.github.com> Date: Thu, 8 Mar 2018 10:12:42 -0600 Subject: [PATCH] Lighting Fix Added param1 and 2 to each item. --- crafts.lua | 40 ++++++++++++++++++++++++ kettle.lua | 3 ++ propane_grill.lua | 2 ++ smoker.lua | 77 ++++++++++++++++++++++------------------------- woodpile.lua | 5 +++ 5 files changed, 86 insertions(+), 41 deletions(-) diff --git a/crafts.lua b/crafts.lua index 7bfe082..29c3325 100644 --- a/crafts.lua +++ b/crafts.lua @@ -37,6 +37,8 @@ minetest.register_node("bbq:chimney_smoke", { inventory_image = "bbq_chimney_smoke.png", wield_image = "bbq_chimney_smoke.png", drawtype = "plantlike", + paramtype = "light", + paramtype2 = "facedir", sunlight_propagates = true, tiles = { { @@ -125,6 +127,8 @@ minetest.register_craft({ minetest.register_node("bbq:propane", { description = ("Propane"), inventory_image = "bbq_propane.png", + paramtype = "light", + paramtype2 = "facedir", wield_image = "bbq_propane.png", drawtype = "plantlike", sunlight_propagates = true, @@ -174,6 +178,8 @@ minetest.register_node("bbq:vinegar", { description = ("Vinegar"), inventory_image = "bbq_vinegar.png", wield_image = "bbq_vinegar.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_vinegar.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -186,6 +192,8 @@ minetest.register_node("bbq:vinegar_mother", { inventory_image = "bbq_vinegar_mother.png", wield_image = "bbq_vinegar_mother.png", drawtype = "plantlike", + paramtype = "light", + paramtype2 = "facedir", tiles = {"bbq_vinegar_mother.png"}, groups = {mother=1, vessel = 1, dig_immediate = 3, attached_node = 1}, sounds = default.node_sound_glass_defaults(), @@ -609,6 +617,8 @@ minetest.register_node("bbq:garlic_clove", { description = ("Garlic Clove"), inventory_image = "bbq_garlic_clove.png", wield_image = "bbq_garlic_clove.png", + paramtype = "light", + paramtype2 = "facedir", tiles = { "bbq_garlic_clove.png" }, groups = { garlic_clove=1, snappy=3,flammable=3,flora=1,attached_node=1 }, @@ -656,6 +666,8 @@ minetest.register_node("bbq:peppercorn", { description = ("Peppercorn"), inventory_image = "bbq_peppercorn.png", wield_image = "bbq_peppercorn.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = { "bbq_peppercorn.png" }, groups = { peppercorn = 1, vessel=1, snappy=3,flammable=3,flora=1,attached_node=1 }, @@ -668,6 +680,8 @@ minetest.register_node("bbq:paprika", { inventory_image = "bbq_paprika.png", wield_image = "bbq_paprika.png", drawtype = "plantlike", + paramtype = "light", + paramtype2 = "facedir", tiles = {"bbq_paprika.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, sounds = default.node_sound_glass_defaults(), @@ -679,6 +693,8 @@ minetest.register_node("bbq:pepper_ground", { inventory_image = "bbq_pepper_ground.png", wield_image = "bbq_pepper_ground.png", drawtype = "plantlike", + paramtype = "light", + paramtype2 = "facedir", tiles = {"bbq_pepper_ground.png"}, groups = {pepper_ground = 1, vessel = 1, dig_immediate = 3, attached_node = 1}, sounds = default.node_sound_glass_defaults(), @@ -689,6 +705,8 @@ minetest.register_node("bbq:sea_salt", { description = ("Sea Salt"), inventory_image = "bbq_sea_salt.png", wield_image = "bbq_sea_salt.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_sea_salt.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -700,6 +718,8 @@ minetest.register_node("bbq:brine", { description = ("Brine"), inventory_image = "bbq_brine.png", wield_image = "bbq_brine.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_brine.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -711,6 +731,8 @@ minetest.register_node("bbq:pickled_peppers", { description = ("Pickled Peppers"), inventory_image = "bbq_pickled_peppers.png", wield_image = "bbq_pickled_peppers.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_pickled_peppers.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -723,6 +745,8 @@ minetest.register_node("bbq:steak_sauce", { description = ("Steak Sauce"), inventory_image = "bbq_steak_sauce.png", wield_image = "bbq_steak_sauce.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_steak_sauce.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -734,6 +758,8 @@ minetest.register_node("bbq:liquid_smoke", { description = ("Liquid Smoke"), inventory_image = "bbq_liquid_smoke.png", wield_image = "bbq_liquid_smoke.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_liquid_smoke.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -745,6 +771,8 @@ minetest.register_node("bbq:sugar", { description = ("Sugar"), inventory_image = "bbq_sugar.png", wield_image = "bbq_sugar.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_sugar.png"}, groups = {vessel = 1, sugar=1, dig_immediate = 3, attached_node = 1}, @@ -757,6 +785,8 @@ minetest.register_node("bbq:molasses", { description = ("Molasses"), inventory_image = "bbq_molasses.png", wield_image = "bbq_molasses.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_molasses.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -768,6 +798,8 @@ minetest.register_node("bbq:hot_sauce", { description = ("Hot Sauce"), inventory_image = "bbq_hot_sauce.png", wield_image = "bbq_hot_sauce.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_hot_sauce.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -779,6 +811,8 @@ minetest.register_node("bbq:bbq_sauce", { description = ("BBQ Sauce"), inventory_image = "bbq_bbq_sauce.png", wield_image = "bbq_bbq_sauce.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_bbq_sauce.png"}, groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -836,6 +870,8 @@ minetest.register_node("bbq:yeast", { description = ("Yeast"), inventory_image = "bbq_yeast.png", wield_image = "bbq_yeast.png", + paramtype = "light", + paramtype2 = "facedir", drawtype = "plantlike", tiles = {"bbq_yeast.png"}, groups = {mother=1, vessel = 1, dig_immediate = 3, attached_node = 1}, @@ -860,6 +896,10 @@ minetest.register_craftitem("bbq:beef", { on_use = minetest.item_eat(8), }) +------------ +--Utinsels-- +------------ + --Spatula minetest.register_node("bbq:spatula", { description = ("Spatula"), diff --git a/kettle.lua b/kettle.lua index 42d903e..836156e 100644 --- a/kettle.lua +++ b/kettle.lua @@ -268,6 +268,7 @@ minetest.register_node("bbq:kettle_grill", { "bbq_kettle_grill_ext.png", "bbq_kettle_grill_ext.png", }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { @@ -393,6 +394,7 @@ minetest.register_node("bbq:kettle_grill_active", { }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { @@ -439,6 +441,7 @@ minetest.register_node("bbq:kettle_grill_base", { "bbq_kettle_side.png", "bbq_kettle_side.png", }, sunlight_propagates = true, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { diff --git a/propane_grill.lua b/propane_grill.lua index 6c7256d..e4cf8b0 100644 --- a/propane_grill.lua +++ b/propane_grill.lua @@ -265,6 +265,7 @@ minetest.register_node("bbq:propane_grill", { "bbq_propane_grill_back.png", "bbq_propane_grill_front.png", }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { @@ -361,6 +362,7 @@ minetest.register_node("bbq:propane_grill_active", { }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { diff --git a/smoker.lua b/smoker.lua index dd3e19f..56b7d08 100644 --- a/smoker.lua +++ b/smoker.lua @@ -268,29 +268,31 @@ minetest.register_node("bbq:smoker", { "bbq_smoker_texture.png", --front }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { type = "fixed", fixed = { - {-1, -0.03, -0.3, -0.5, 0.35, 0.093},-- smokebox - {-0.5, -0.08, -0.5, 1.0, 0.6, 0.435 }, -- main body - {.125, 0.095, -.52, .34, 0.155, -0.54}, -- main handle - {-.87, 0.095, -.32, -.66, 0.155, -0.34}, -- smokebox handle - {.155, 0.115, -.5, .175, 0.135, -0.55}, -- left handle bolt - {.29, 0.115, -.5, .31, 0.135, -0.55}, -- right handle bolt - {-.82, 0.115, -.35, -.84, 0.135, -0.3}, -- left smokebox handle bolt - {-.69, 0.115, -.35, -.71, 0.135, -0.3}, -- right smokebox handle bolt - {1.0, 0.18, .10, 1.49, 0.30, 0.22}, -- chimney x - {1.37, 0.18, .10, 1.49, .62, 0.22}, -- chimney y --- {1.26, 0.62, .1, 1.5, .9, 0.34}, -- chimney smoke - {-0.3, -0.5, -0.3, -.4, -0.08, -0.4}, -- front leftleg - {0.8, -0.5, -0.3, 0.9, -0.08, -0.4}, -- front right leg - {-0.3, -0.5, 0.3, -.4, -0.08, 0.4}, -- front leftleg - {0.8, -0.5, 0.3, 0.9, -0.08, 0.4}, -- front right leg - + {-1.5, -0.03, -0.3, -1.0, 0.35, 0.093},-- smokebox + {-1.0, -0.08, -0.5, 0.5, 0.6, 0.435 }, -- main body + {-0.375, 0.095, -.52, -0.16, 0.155, -0.54}, -- main handle + {-1.37, 0.095, -.32, -1.16, 0.155, -0.34}, -- smokebox handle + {-0.345, 0.115, -.5, -0.325, 0.135, -0.55}, -- left handle bolt + {-0.21, 0.115, -.5, -0.19, 0.135, -0.55}, -- right handle bolt + {-1.32, 0.115, -.35, -1.34, 0.135, -0.3}, -- left smokebox handle bolt + {-1.19, 0.115, -.35, -1.21, 0.135, -0.3}, -- right smokebox handle bolt + {0.5, 0.18, .10, 0.99, 0.30, 0.22}, -- chimney x + {0.87, 0.18, .10, 0.99, .62, 0.22}, -- chimney y +-- {0.93, 0.62, .10, 0.93, .9, 0.22}, -- chimney smoke +-- {0.87, 0.62, .16, 0.99, .9, 0.16}, -- chimney smoke + {-0.8, -0.5, -0.3, -0.9, -0.08, -0.4}, -- front leftleg + {0.3, -0.5, -0.3, 0.4, -0.08, -0.4}, -- front right leg + {-0.8, -0.5, 0.3, -0.9, -0.08, 0.4}, -- front leftleg + {0.3, -0.5, 0.3, 0.4, -0.08, 0.4}, -- front right leg }, }, + sunlight_propagates = true, groups = {cracky=2}, legacy_facedir_simple = true, @@ -338,16 +340,7 @@ minetest.register_node("bbq:smoker_active", { tiles = { - { - image = "bbq_smoker_texture_bottom_animated.png", --top - backface_culling = false, - animation = { - type = "vertical_frames", - aspect_w = 16, - aspect_h = 16, - length = 1.5 - }, - }, + "bbq_smoker_texture_bottom.png", --top "bbq_smoker_texture_bottom.png^[transformFY", --bottom { image = "bbq_smoker_texture_side_animated.png", --right side @@ -393,26 +386,28 @@ minetest.register_node("bbq:smoker_active", { }, + paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { type = "fixed", fixed = { - {-1, -0.03, -0.3, -0.5, 0.35, 0.093},-- smokebox - {-0.5, -0.08, -0.5, 1.0, 0.6, 0.435 }, -- main body - {.125, 0.095, -.52, .34, 0.155, -0.54}, -- main handle - {-.87, 0.095, -.32, -.66, 0.155, -0.34}, -- smokebox handle - {.155, 0.115, -.5, .175, 0.135, -0.55}, -- left handle bolt - {.29, 0.115, -.5, .31, 0.135, -0.55}, -- right handle bolt - {-.82, 0.115, -.35, -.84, 0.135, -0.3}, -- left smokebox handle bolt - {-.69, 0.115, -.35, -.71, 0.135, -0.3}, -- right smokebox handle bolt - {1.0, 0.18, .10, 1.49, 0.30, 0.22}, -- chimney x - {1.37, 0.18, .10, 1.49, .62, 0.22}, -- chimney y - {1.37, 0.62, .10, 1.49, .9, 0.22}, -- chimney smoke - {-0.3, -0.5, -0.3, -.4, -0.08, -0.4}, -- front leftleg - {0.8, -0.5, -0.3, 0.9, -0.08, -0.4}, -- front right leg - {-0.3, -0.5, 0.3, -.4, -0.08, 0.4}, -- front leftleg - {0.8, -0.5, 0.3, 0.9, -0.08, 0.4}, -- front right leg + {-1.5, -0.03, -0.3, -1.0, 0.35, 0.093},-- smokebox + {-1.0, -0.08, -0.5, 0.5, 0.6, 0.435 }, -- main body + {-0.375, 0.095, -.52, -0.16, 0.155, -0.54}, -- main handle + {-1.37, 0.095, -.32, -1.16, 0.155, -0.34}, -- smokebox handle + {-0.345, 0.115, -.5, -0.325, 0.135, -0.55}, -- left handle bolt + {-0.21, 0.115, -.5, -0.19, 0.135, -0.55}, -- right handle bolt + {-1.32, 0.115, -.35, -1.34, 0.135, -0.3}, -- left smokebox handle bolt + {-1.19, 0.115, -.35, -1.21, 0.135, -0.3}, -- right smokebox handle bolt + {0.5, 0.18, .10, 0.99, 0.30, 0.22}, -- chimney x + {0.87, 0.18, .10, 0.99, .62, 0.22}, -- chimney y + {0.93, 0.62, .10, 0.93, .9, 0.22}, -- chimney smoke + {0.87, 0.62, .16, 0.99, .9, 0.16}, -- chimney smoke + {-0.8, -0.5, -0.3, -0.9, -0.08, -0.4}, -- front leftleg + {0.3, -0.5, -0.3, 0.4, -0.08, -0.4}, -- front right leg + {-0.8, -0.5, 0.3, -0.9, -0.08, 0.4}, -- front leftleg + {0.3, -0.5, 0.3, 0.4, -0.08, 0.4}, -- front right leg }, }, diff --git a/woodpile.lua b/woodpile.lua index bffec81..d23c720 100644 --- a/woodpile.lua +++ b/woodpile.lua @@ -36,6 +36,7 @@ minetest.register_node("bbq:woodpile", { description = "Wood Pile", tiles = {"bbq_woodpile_wood_top.png", "bbq_woodpile_wood_top.png", "bbq_woodpile_wood_side.png", "bbq_woodpile_wood_side.png", "bbq_woodpile_wood_front.png", "bbq_woodpile_wood_front.png"}, + paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}, @@ -88,6 +89,7 @@ minetest.register_node("bbq:woodpile_acacia", { description = "Acacia Wood Pile", tiles = {"bbq_woodpile_acacia_top.png", "bbq_woodpile_acacia_top.png", "bbq_woodpile_acacia_side.png", "bbq_woodpile_acacia_side.png", "bbq_woodpile_acacia_front.png", "bbq_woodpile_acacia_front.png"}, + paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}, @@ -140,6 +142,7 @@ minetest.register_node("bbq:woodpile_pine", { description = "Pine Wood Pile", tiles = {"bbq_woodpile_pine_top.png", "bbq_woodpile_pine_top.png", "bbq_woodpile_pine_side.png", "bbq_woodpile_pine_side.png", "bbq_woodpile_pine_front.png", "bbq_woodpile_pine_front.png"}, + paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}, @@ -192,6 +195,7 @@ minetest.register_node("bbq:woodpile_junglewood", { description = "Junglewood Wood Pile", tiles = {"bbq_woodpile_junglewood_top.png", "bbq_woodpile_junglewood_top.png", "bbq_woodpile_junglewood_side.png", "bbq_woodpile_junglewood_side.png", "bbq_woodpile_junglewood_front.png", "bbq_woodpile_junglewood_front.png"}, + paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}, @@ -244,6 +248,7 @@ minetest.register_node("bbq:woodpile_aspen", { description = "Aspen Wood Pile", tiles = {"bbq_woodpile_aspen_top.png", "bbq_woodpile_aspen_top.png", "bbq_woodpile_aspen_side.png", "bbq_woodpile_aspen_side.png", "bbq_woodpile_aspen_front.png", "bbq_woodpile_aspen_front.png"}, + paramtype = "light", paramtype2 = "facedir", is_ground_content = false, groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},