This commit is contained in:
Looki2000 2023-01-08 00:11:56 +01:00
commit 70ff62b1f2
2 changed files with 53 additions and 1 deletions

View File

@ -111,7 +111,6 @@ minetest.register_node("amogus_blocks:grass", {
drop = 'amogus:grass', groups = {cracky=3, stone=1}, drop = 'amogus:grass', groups = {cracky=3, stone=1},
}) })
-- add wood block
minetest.register_node("amogus_blocks:wood", { minetest.register_node("amogus_blocks:wood", {
description = "Wood", description = "Wood",
tiles = {"wood.png"}, tiles = {"wood.png"},
@ -119,5 +118,58 @@ minetest.register_node("amogus_blocks:wood", {
drop = 'amogus:wood', groups = {cracky=3, stone=1}, 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_dirt", "amogus_blocks:grass")
minetest.register_alias("mapgen_stone", "amogus_blocks:floor") minetest.register_alias("mapgen_stone", "amogus_blocks:floor")

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B