From 13533e89c81ba88d2f7da13b0920ec1d5f172a62 Mon Sep 17 00:00:00 2001 From: Kacper Kostka Date: Sat, 7 Jan 2023 23:24:31 +0100 Subject: [PATCH] k --- mods/amogus_blocks/init.lua | 54 +++++++++++++++++++++++++- mods/amogus_blocks/textures/water.png | Bin 0 -> 201 bytes 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 mods/amogus_blocks/textures/water.png 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 0000000000000000000000000000000000000000..71edbd9c390707d42a5bd9c556cb27c3e4847173 GIT binary patch literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|nmt_{LoEE0 zQ*IPLwP$8+5KL)U&!O+9Y_|Vr&-IE8j5k6a7>g{COEd6e?)WO|sIPFl?QFoJ*oJqi zJo*WrjTbVo?Ci)8f50W&#HO&DXLdJ-l!J!Z1Ga`7r)`XL{ildeFn#Fd@#3DsNp1t@ xiM$817&e}B?{sro$ji-KvVP(d)*MDoh8u+e`LPBGML_2;c)I$ztaD0e0s!-DLNfpW literal 0 HcmV?d00001