diff --git a/coffee_def.lua b/coffee_def.lua index 36323e1..6bc6022 100644 --- a/coffee_def.lua +++ b/coffee_def.lua @@ -181,7 +181,7 @@ for step = 1, top_steps do sunlight_propagates = true, tiles = {"cucina_vegana_" .. pname .. "_top_" .. step .. ".png"}, groups = { snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 1, - growing = 1, not_in_creative_inventory = 1}, + growing = 1, not_in_creative_inventory = 1, tree = 1}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -199,6 +199,6 @@ for step = 1, top_steps do end -- for step if cucina_vegana.farming_ng then - cucina_vegana.register_farming_ng(pname, top_steps) + cucina_vegana.register_farming_ng("cucina_vegana:" .. pname .. "_top_", top_steps) end -- if(cucina_vegana.farming_ng diff --git a/nodes.lua b/nodes.lua index 8b6aa2b..9ab91e2 100644 --- a/nodes.lua +++ b/nodes.lua @@ -159,7 +159,7 @@ minetest.register_node("cucina_vegana:coffee_cup", { paramtype = "light", is_ground_content = false, on_use = minetest.item_eat(2), - walkable = false, + walkable = true, selection_box = { type = "fixed", fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} diff --git a/textures/cucina_vegana_coffee_leaves.png b/textures/cucina_vegana_coffee_leaves.png index f967280..ad94707 100644 Binary files a/textures/cucina_vegana_coffee_leaves.png and b/textures/cucina_vegana_coffee_leaves.png differ diff --git a/vine_def.lua b/vine_def.lua index 7cdff08..62286d9 100644 --- a/vine_def.lua +++ b/vine_def.lua @@ -35,7 +35,7 @@ mt.register_node("cucina_vegana:wild_" .. pname, { sunlight_propagates = true, tiles = {"cucina_vegana_" .. pname .. "_bottom_1.png"}, groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 1, - growing = 1, not_in_creative_inventory = 1}, + growing = 1, not_in_creative_inventory = 1, tree}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -150,11 +150,8 @@ mt.register_abm({ catch_up = true, action = function(pos, node, active_object_count, active_object_count_wider) local nodepos = { x = pos.x, y = pos.y+1, z = pos.z} - print(mt.pos_to_string(pos)) - print(mt.pos_to_string(nodepos)) if(cv.lib.check_light(nodepos, maxlight)) then if(cv.lib.check_air(nodepos)) then - print("Air") mt.set_node(nodepos, {name = "cucina_vegana:" .. pname .. "_top_1"}) end -- if(check_air) @@ -182,7 +179,7 @@ for step = 1, top_steps do sunlight_propagates = true, tiles = {"cucina_vegana_" .. pname .. "_top_" .. step .. ".png"}, groups = { snappy = 3, dig_immediate=1, flammable=2, plant=1, attached_node = 1, - growing = 1, not_in_creative_inventory = 1}, + growing = 1, not_in_creative_inventory = 1, tree = 1}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed",