diff --git a/mods/amogus_blocks/init.lua b/mods/amogus_blocks/init.lua index 180264d..df399af 100644 --- a/mods/amogus_blocks/init.lua +++ b/mods/amogus_blocks/init.lua @@ -111,7 +111,6 @@ minetest.register_node("amogus_blocks:grass", { drop = 'amogus:grass', groups = {cracky=3, stone=1}, }) --- add wood block minetest.register_node("amogus_blocks:wood", { description = "Wood", tiles = {"wood.png"}, @@ -119,5 +118,58 @@ minetest.register_node("amogus_blocks:wood", { drop = 'amogus:wood', groups = {cracky=3, stone=1}, }) +-- add water with blue color without texture +minetest.register_node("amogus_blocks:water", { + description = "Water", + drawtype = "liquid", + tiles = { + { + name = "water.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 2.0, + }, + }, + }, + special_tiles = { + -- New-style water source material (mostly unused) + { + name = "water.png", + backface_culling = false, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 2.0, + }, + }, + -- New-style flowing water material (mostly unused) + { + name = "water.png", + backface_culling = true, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 0.8, + }, + }, + }, + alpha = 160, + paramtype = "light", + walkable = false, + pointable = false, + diggable = false, + buildable_to = true, + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "amogus_blocks:water", + liquid_alternative_source = "amogus_blocks:water", + liquid_viscosity = 1, + post_effect_color = {a = 103, r = 30, g = 60, b = 90}, + groups = {water = 3, liquid = 3, puts_out_fire = 1}, +}) minetest.register_alias("mapgen_dirt", "amogus_blocks:grass") minetest.register_alias("mapgen_stone", "amogus_blocks:floor") \ No newline at end of file diff --git a/mods/amogus_blocks/textures/water.png b/mods/amogus_blocks/textures/water.png new file mode 100644 index 0000000..71edbd9 Binary files /dev/null and b/mods/amogus_blocks/textures/water.png differ