Add water
This commit is contained in:
parent
08c24a85ad
commit
1e31e4c0b1
@ -2,7 +2,7 @@
|
||||
-- Aliases for map generators
|
||||
--
|
||||
|
||||
minetest.register_alias("mapgen_stone", "lzr_core:wood")
|
||||
minetest.register_alias("mapgen_water_source", "air")
|
||||
minetest.register_alias("mapgen_stone", "lzr_core:stone")
|
||||
minetest.register_alias("mapgen_water_source", "lzr_core:water_source")
|
||||
minetest.register_alias("mapgen_river_water_source", "air")
|
||||
|
||||
|
@ -1,5 +1,13 @@
|
||||
local S = minetest.get_translator("lzr_core")
|
||||
|
||||
minetest.register_node("lzr_core:stone", {
|
||||
description = S("Stone"),
|
||||
tiles = {"default_stone.png"},
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = lzr_sounds.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("lzr_core:tree", {
|
||||
description = S("Tree Trunk"),
|
||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||
@ -19,3 +27,45 @@ minetest.register_node("lzr_core:wood", {
|
||||
sounds = lzr_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("lzr_core:water_source", {
|
||||
description = S("Water Source"),
|
||||
drawtype = "liquid",
|
||||
waving = 3,
|
||||
tiles = {
|
||||
{
|
||||
name = "default_water_source_animated.png",
|
||||
backface_culling = false,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "default_water_source_animated.png",
|
||||
backface_culling = true,
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = false,
|
||||
drop = "",
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "lzr_core:water_source",
|
||||
liquid_alternative_source = "lzr_core:water_source",
|
||||
liquid_viscosity = 1,
|
||||
liquid_range = 0,
|
||||
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
||||
groups = {water = 3, liquid = 3, cools_lava = 1},
|
||||
})
|
||||
|
||||
|
BIN
mods/lzr_core/textures/default_stone.png
Normal file
BIN
mods/lzr_core/textures/default_stone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 447 B |
BIN
mods/lzr_core/textures/default_water.png
Normal file
BIN
mods/lzr_core/textures/default_water.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 343 B |
BIN
mods/lzr_core/textures/default_water_source_animated.png
Normal file
BIN
mods/lzr_core/textures/default_water_source_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user