@@ 192,6 192,56 @@ falling_nodes.register_material("falling_nodes:wood", {
},
})
+falling_nodes.register_material("falling_nodes:water", {
+ description = "Water",
+ tiles = {"[fill:1x1:#2030D0"},
+ groups = {
+ ["falling_nodes:liquid"] = 1,
+ },
+ temperature_high = {
+ temperature = C2K(101),
+ action = function(pos)
+ minetest.swap_node(pos, {name = "falling_nodes:steam"})
+ end
+ },
+ temperature_low = {
+ temperature = C2K(-1),
+ action = function(pos)
+ minetest.swap_node(pos, {name = "falling_nodes:ice"})
+ end
+ },
+})
+
+falling_nodes.register_material("falling_nodes:steam", {
+ description = "Steam",
+ tiles = {"[fill:1x1:#A0A0FF"},
+ groups = {
+ ["falling_nodes:gas"] = 1,
+ },
+ temperature_base = C2K(122),
+ temperature_low = {
+ temperature = C2K(99),
+ action = function(pos)
+ minetest.swap_node(pos, {name = "falling_nodes:water"})
+ end
+ },
+})
+
+falling_nodes.register_material("falling_nodes:ice", {
+ description = "Ice",
+ tiles = {"[fill:1x1:#A0C0FF"},
+ groups = {
+ ["falling_nodes:solid"] = 1,
+ },
+ temperature_base = C2K(-28),
+ temperature_high = {
+ temperature = C2K(1),
+ action = function(pos)
+ minetest.swap_node(pos, {name = "falling_nodes:water"})
+ end
+ },
+})
+
-- Electronics
--------------