diff --git a/fungal_tree.lua b/fungal_tree.lua index 3477cb4..6a64e1c 100644 --- a/fungal_tree.lua +++ b/fungal_tree.lua @@ -11,6 +11,10 @@ colors["^[colorize:#FF4500:80"] = "dye:green" colors[""] = "dye:white" fun_caves.fungal_tree_leaves = {} +local newnode = fun_caves.clone_node("farming:straw") +newnode.description = "Dry Fiber" +minetest.register_node("fun_caves:dry_fiber", newnode) + -- all leaves function fun_caves.make_fungal_tree(data, area, ivm, height, leaves, fruit) for y = 0, height do @@ -63,7 +67,7 @@ for color, dye in pairs(colors) do minetest.register_craft({ type = "cooking", - output = "farming:straw", + output = "fun_caves:dry_fiber", recipe = name, cooktime = 2, }) diff --git a/goblin_cobbler.lua b/goblin_cobbler.lua index c7bcc2d..7f80c2c 100644 --- a/goblin_cobbler.lua +++ b/goblin_cobbler.lua @@ -3,7 +3,7 @@ mobs:register_mob("fun_caves:goblin_cobble", { description = "Cobble Goblin", type = "animal", - passive = false, + passive = true, damage = 1, attack_type = "dogfight", attacks_monsters = true, diff --git a/goblin_digger.lua b/goblin_digger.lua index 8e6269a..f8543b9 100644 --- a/goblin_digger.lua +++ b/goblin_digger.lua @@ -98,7 +98,7 @@ end mobs:register_mob("fun_caves:goblin_digger", { description = "Digger Goblin", type = "animal", - passive = false, + passive = true, damage = 1, attack_type = "dogfight", attacks_monsters = true, diff --git a/nodes.lua b/nodes.lua index d211117..121aa6b 100644 --- a/nodes.lua +++ b/nodes.lua @@ -411,6 +411,11 @@ minetest.register_globalstep(function(dtime) player:set_hp(player:get_hp() - 1) end end + + -- hunger + if last_dps_check % 2000 == 0 then + player:set_hp(player:get_hp() - 1) + end end end end)