diff options
Diffstat (limited to 'sealife.lua')
-rw-r--r-- | sealife.lua | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/sealife.lua b/sealife.lua index 6db5742..ceb27a6 100644 --- a/sealife.lua +++ b/sealife.lua @@ -1,3 +1,4 @@ + -- Seaweed minetest.register_node("ethereal:seaweed", { description = "Seaweed", @@ -17,6 +18,9 @@ minetest.register_node("ethereal:seaweed", { groups = {snappy = 3}, on_use = minetest.item_eat(1), sounds = default.node_sound_leaves_defaults(), + after_dig_node = function(pos, node, metadata, digger) + default.dig_up(pos, node, digger) + end, }) minetest.register_craft( { @@ -123,25 +127,12 @@ minetest.register_node("ethereal:sandy", { tiles = {"default_sand.png"}, is_ground_content = true, groups = { - crumbly = 3, falling_node = 1, sand = 1, soil = 1, - not_in_creative_inventory = 1 + crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = 1 }, drop = "default:sand", sounds = default.node_sound_sand_defaults(), }) --- Register Undersea Sand -minetest.register_ore({ - ore_type = "scatter", - ore = "ethereal:sandy", - wherein = "default:sand", - clust_scarcity = 10*10*10, - clust_num_ores = 24, - clust_size = 4, - y_max = -12, - y_min = -100, -}) - -- randomly generate coral or seaweed and have seaweed grow up to 14 high minetest.register_abm({ nodenames = {"ethereal:sandy"}, |