aether/nodes.lua
2017-01-23 15:44:37 -06:00

97 lines
2.5 KiB
Lua

-- Groups = crumbly =dirt, cracky = stone, snappy = leaves, choppy = wood, explody, oddly_breakable_by_hand
-- New groups = aethersoil, aetherstone, temple, dungeon ,aehtertree
--Dirts
minetest.register_node("aether2:aether_dirt", {
description = 'Aether Dirt',
tiles = {"aether_dirt.png"},
groups = {crumbly = 1},
})
minetest.register_node("aether2:aether_dirt_with_grass", {
description = "Aether Grass",
tiles = {"aether_grass_top.png", "aether_dirt.png",
{name = "aether_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = 'aether_dirt',
})
--Stones
minetest.register_node("aether2:holystone", {
description = "Holystone",
tiles = {"holystone.png"},
groups = {aetherstone = 1},
})
--Trees
minetest.register_node("aether2:skyroot_logs", {
description = "skyroot_logs",
tiles = {"skyroot_log_top.png", "skyroot_log_top.png", "skyroot_log.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {aehtertree = 1},
on_place = minetest.rotate_node,
})
minetest.register_node("aether2:golden_oak_logs", {
description = "Golden Oak Logs",
tiles = {"golden_oak_log_top.png", "golden_oak_log_top.png", "golden_oak_log.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2,},
on_place = minetest.rotate_node,
drop = {
}
})
minetest.register_node("aether2:skyroot_leaves", {
description = "Skyroot Leaves",
drawtype = "allfaces_optional",
waving = 1,
tiles = {"skyroot_leaves.png"},
special_tiles = {"skyroot_leaves_simple.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, leaves = 1},
})
minetest.register_node("aether2:golden_oak_leaves", {
description = "Golden Oak Leaves",
drawtype = "allfaces_optional",
waving = 1,
tiles = {"golden_oak_leaves.png"},
special_tiles = {"golden_oak_leaves.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, leaves = 1},
})
minetest.register_node("aether2:skyroot_planks", {
description = "Skyroot Planks",
tiles = {"skyroot_planks.png"},
groupts = {choppy=1, oddly_breakable_by_hand=1},
})
--Placeable Items
minetest.register_node("aether2:ambrosium_torch", {
description = "Ambrosium Torch",
drawtype = "mesh",
mesh = "ambrosium_torch_floor.obj",
inventory_image = "ambrosium_torch.png",
wield_image = "ambrosium_torch.png",
tiles = {{
name = "ambrosium_torch_animated.png",
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
}}
})