Skip to content

Commit

Permalink
Support for signs_bot added.
Browse files Browse the repository at this point in the history
  • Loading branch information
acmgit committed Feb 24, 2024
1 parent 5e78ea2 commit b3de8b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions coffee_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
2 changes: 1 addition & 1 deletion nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Binary file modified textures/cucina_vegana_coffee_leaves.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions vine_def.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit b3de8b1

Please sign in to comment.