lazarr/mods/lzr_core/nodes.lua

71 lines
1.7 KiB
Lua
Raw Normal View History

2021-12-21 05:18:45 -08:00
local S = minetest.get_translator("lzr_core")
2021-12-21 10:09:53 -08:00
minetest.register_node("lzr_core:stone", {
description = S("Stone"),
tiles = {"default_stone.png"},
2021-12-27 18:34:10 -08:00
groups = { breakable = 1 },
2021-12-21 10:09:53 -08:00
sounds = lzr_sounds.node_sound_stone_defaults(),
})
2021-12-21 05:18:45 -08:00
minetest.register_node("lzr_core:tree", {
description = S("Tree Trunk"),
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
2021-12-27 18:34:10 -08:00
groups = { breakable = 1 },
2021-12-21 05:18:45 -08:00
sounds = lzr_sounds.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("lzr_core:wood", {
description = S("Wood Planks"),
tiles = {"default_wood.png"},
is_ground_content = false,
2021-12-27 18:34:10 -08:00
groups = { breakable = 1 },
2021-12-21 05:18:45 -08:00
sounds = lzr_sounds.node_sound_wood_defaults(),
})
2021-12-21 10:09:53 -08:00
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,
buildable_to = true,
is_ground_content = false,
liquidtype = "source",
liquid_alternative_flowing = "lzr_core:water_source",
liquid_alternative_source = "lzr_core:water_source",
liquid_viscosity = 1,
liquid_range = 0,
2021-12-27 19:44:58 -08:00
liquid_renewable = false,
post_effect_color = {a = 192, r = 17, g = 69, b = 135},
2021-12-27 18:34:10 -08:00
groups = {water = 3, liquid = 3},
2021-12-21 10:09:53 -08:00
})