----------------- --Liquid hard mud ----------------- minetest.register_node("quicksand:mud_hard_source", { description = "Liquid Hard Mud Source", drawtype = "liquid", paramtype = "light", tiles = {name = "quicksand_mud_hard_source.png"}, post_effect_color = {r = 60, g = 40, b = 10}, --Behavior walkable = false, pointable = false, buildable_to = true, diggable = false, is_ground_content = false, --Properties liquid_range = 6, liquid_viscosity = 20, drowning = 1, liquidtype = "source", liquid_alternative_flowing = "quicksand:mud_hard_flowing", liquid_alternative_source = "quicksand:mud_hard_source", groups = {liquid = 3}, }) minetest.register_node("quicksand:mud_hard_flowing", { description = "Flowing Liquid Hard Mud", drawtype = "flowingliquid", paramtype = "light", tiles = {name = "quicksand_mud_hard_flowing.png"}, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0 }, special_tiles = { { name = "quicksand_mud_hard_flowing.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0}, backface_culling = true, }, { name = "quicksand_mud_hard_flowing.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0}, backface_culling = false, } }, post_effect_color = {r = 60, g = 40, b = 10}, --Behavior walkable = false, pointable = false, buildable_to = true, diggable = false, is_ground_content = false, --Properties liquid_range = 6, liquid_viscosity = 20, drowning = 1, liquidtype = "flowing", liquid_alternative_flowing = "quicksand:mud_hard_flowing", liquid_alternative_source = "quicksand:mud_hard_source", groups = {liquid = 3}, }) ------------ --Liquid mud ------------ minetest.register_node("quicksand:mud_med_source", { description = "Liquid Mud Source", drawtype = "liquid", paramtype = "light", tiles = {name = "quicksand_mud_med_source.png"}, post_effect_color = {r = 60, g = 40, b = 10}, --Behavior walkable = false, pointable = false, buildable_to = true, diggable = false, is_ground_content = false, --Properties liquid_range = 6, liquid_viscosity = 10, drowning = 1, liquidtype = "source", liquid_alternative_flowing = "quicksand:mud_med_flowing", liquid_alternative_source = "quicksand:mud_med_source", groups = {liquid = 2}, }) minetest.register_node("quicksand:mud_med_flowing", { description = "Flowing Liquid Mud", drawtype = "flowingliquid", paramtype = "light", tiles = {name = "quicksand_mud_med_flowing.png"}, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0 }, special_tiles = { { name = "quicksand_mud_med_flowing.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0}, backface_culling = true, }, { name = "quicksand_mud_med_flowing.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.0}, backface_culling = false, } }, post_effect_color = {r = 60, g = 40, b = 10}, --Behavior walkable = false, pointable = false, buildable_to = true, diggable = false, is_ground_content = false, --Properties liquid_range = 7, liquid_viscosity = 10, drowning = 1, liquidtype = "flowing", liquid_alternative_flowing = "quicksand:mud_med_flowing", liquid_alternative_source = "quicksand:mud_med_source", groups = {liquid = 2}, }) ------------ --Hard quicksand ------------ minetest.register_node("quicksand:quicksand_hard", { description = "Hard Quicksand", drawtype = "liquid", paramtype = "light", tiles = {name = "quicksand_quicksand_hard.png"}, post_effect_color = {r = 80, g = 50, b = 10}, --Behavior walkable = false, pointable = true, buildable_to = false, diggable = true, is_ground_content = false, --Properties liquid_range = 0, liquid_viscosity = 30, liquid_renewable = false, drowning = 1, damage_per_second = 1, liquidtype = "source", liquid_alternative_flowing = "quicksand:quicksand_hard", liquid_alternative_source = "quicksand:quicksand_hard", groups = {quicksandy = 1}, }) ------------ --Quicksand ---------- minetest.register_node("quicksand:quicksand", { description = "Quicksand", drawtype = "liquid", paramtype = "light", tiles = {name = "quicksand_quicksand_normal.png"}, post_effect_color = {r = 80, g = 50, b = 10}, --Behavior walkable = false, pointable = true, buildable_to = false, diggable = true, is_ground_content = false, --Properties liquid_range = 0, liquid_viscosity = 20, liquid_renewable = false, drowning = 1, damage_per_second = 2, liquidtype = "source", liquid_alternative_flowing = "quicksand:quicksand", liquid_alternative_source = "quicksand:quicksand", groups = {crumbly = 1, quicksandy = 2}, }) ------------ --Weak quicksand ---------- minetest.register_node("quicksand:quicksand_weak", { description = "Weak Quicksand", drawtype = "liquid", paramtype = "light", tiles = {name = "quicksand_quicksand_weak.png"}, post_effect_color = {r = 80, g = 50, b = 10}, --Behavior walkable = false, pointable = true, buildable_to = false, diggable = true, is_ground_content = false, --Properties liquid_range = 0, liquid_viscosity = 10, liquid_renewable = false, drowning = 1, damage_per_second = 3, liquidtype = "source", liquid_alternative_flowing = "quicksand:quicksand_weak", liquid_alternative_source = "quicksand:quicksand_weak", groups = {crumbly = 1, quicksandy = 3}, }) ----------- --Longstick ----------- minetest.register_item("quicksand:longstick", { type = "none", wield_image = "quicksand_stick.png", inventory_image = "quicksand_stick.png", wield_scale = {x=1, y=6, z=1}, range = 2, on_use = function(itemstack, player, pointed_thing) local rand = math.random(1) if rand == 0 then local newpos = pointed_thing.above if newpos ~= nil then player:set_pos(newpos) end end end })