From 19748cd3bddb0316aca5c9783b71f687e5ac60f4 Mon Sep 17 00:00:00 2001 From: Milan Date: Mon, 10 Dec 2018 14:28:42 +0100 Subject: [PATCH] add additional sinking nodes --- nodes.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/nodes.lua b/nodes.lua index e79f191..4111c7e 100644 --- a/nodes.lua +++ b/nodes.lua @@ -475,3 +475,37 @@ for i = 1, 16 do local name = name[i] minetest.override_item("wool:"..name, {sounds = illuna.node_sound_wool()}) end + +minetest.register_node("illuna:hardwood_sink", { + description = "Illuna Hardwood Sinking", + tiles = {"building_blocks_hardwood.png"}, + liquid_viscosity = 15, + liquidtype = "source", + liquid_alternative_flowing = "illuna:hardwood_sink", + liquid_alternative_source = "illuna:hardwood_sink", + liquid_renewable = false, + liquid_range = 0, + drowning = 1, + walkable = false, + climbable = false, + post_effect_color = {r = 35, g = 21, b = 15, a = 245}, + groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node("illuna:junglewood_sink", { + description = "Illuna Junglewood Sinking", + tiles = {"default_junglewood.png"}, + liquid_viscosity = 15, + liquidtype = "source", + liquid_alternative_flowing = "illuna:junglewood_sink", + liquid_alternative_source = "illuna:junglewood_sink", + liquid_renewable = false, + liquid_range = 0, + drowning = 1, + walkable = false, + climbable = false, + post_effect_color = {r = 35, g = 21, b = 15, a = 245}, + groups = {crumbly = 3, sand = 1, liquid = 3, disable_jump = 1}, + sounds = default.node_sound_wood_defaults(), +})