2017-07-07 00:49:06 +02:00

864 lines
23 KiB
Lua

minetest.register_node("decoblocks:bamboo_fence", {
description = "Bamboo Fence",
tiles = {
"decoblocks_bamboo_fence_top.png",
"decoblocks_bamboo_fence_top.png",
"decoblocks_bamboo_fence.png",
},
drawtype = "nodebox",
paramtype = "light",
connects_to = {"group:fence", "group:wood", "group:choppy", "group:stone"},
node_box = {
type = "connected",
fixed = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
},
connect_back = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.0625, 0.25, -0.0625, 0.0625, 0.375, 0.5}, -- NodeBox2
{-0.0625, -0.0625, -0.0625, 0.0625, 0.0625, 0.5}, -- NodeBox3
{-0.0625, -0.375, -0.0625, 0.0625, -0.25, 0.5}, -- NodeBox4
},
connect_front = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.0625, 0.25, -0.5, 0.0625, 0.375, 0.0625}, -- NodeBox2
{-0.0625, -0.0625, -0.5, 0.0625, 0.0625, 0.0625}, -- NodeBox3
{-0.0625, -0.375, -0.5, 0.0625, -0.25, 0.0625}, -- NodeBox4
},
connect_left = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{-0.5, 0.25, -0.0625, 0.0625, 0.375, 0.0625}, -- NodeBox2
{-0.5, -0.0625, -0.0625, 0.0625, 0.0625, 0.0625}, -- NodeBox3
{-0.5, -0.375, -0.0625, 0.0625, -0.25, 0.0625}, -- NodeBox4
},
connect_right = {
{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, -- NodeBox1
{0, 0.25, -0.0625, 0.5, 0.375, 0.0625}, -- NodeBox2
{0, -0.0625, -0.0625, 0.5, 0.0625, 0.0625}, -- NodeBox3
{0, -0.375, -0.0625, 0.5, -0.25, 0.0625}, -- NodeBox4
}
},
groups = {choppy=1, oddly_breakable_by_hand=1, fence=1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:sandstone_wall", {
description = "Painted Sandstone Wall",
tiles = {
"default_sandstone.png",
"default_sandstone.png",
"decoblocks_sandstone_wall.png",
"decoblocks_sandstone_wall2.png",
"decoblocks_sandstone_wall3.png",
"decoblocks_sandstone_wall4.png",
},
paramtype2 = "facedir",
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:sandstone_pillar", {
description = "Sandstone Pillar",
tiles = {
"decoblocks_sandstone_pillar_top.png",
"decoblocks_sandstone_pillar_top.png",
"decoblocks_sandstone_pillar.png",
},
paramtype2 = "facedir",
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("decoblocks:bamboo_block", {
description = "Bamboo Block",
tiles = {
"decoblocks_bamboo_top.png",
"decoblocks_bamboo_top.png",
"decoblocks_bamboo.png",
},
groups = {choppy = 1, oddly_breakable_by_hand = 2, wood=1},
paramtype2 = "facedir",
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("decoblocks:bamboo_planks", {
description = "Bamboo Wood Planks",
tiles = {"decoblocks_bamboo_planks.png"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:old_stone_tiles", {
description = "Old Stone Tiles",
tiles = {"decoblocks_old_stone_tiles.png"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:old_stone_tiles_with_dirt", {
description = "Old Stone Tiles With Dirt",
tiles = {"decoblocks_old_stone_tiles_with_dirt.png"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:moss_old_stone_tiles", {
description = "Mossy Old Stone Tiles",
tiles = {"decoblocks_mossy_old_stone_tiles.png"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:moss_stonebrick", {
description = "Mossy Stone Brick",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"decoblocks_moss_stone_brick.png"},
is_ground_content = false,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:scarecrow", {
description = "Scarecrow",
drawtype = "mesh",
mesh = "scarecrow.obj",
paramtype2 = "facedir",
tiles = {
"decoblocks_scarecrow.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_scarecrow_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
inventory_image = "decoblocks_scarecrow_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:human_skull", {
description = "Human Skull",
drawtype = "mesh",
mesh = "human_skull.obj",
tiles = {
"human_skull.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_skull_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
inventory_image = "decoblocks_skull_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:vase", {
description = "Vase",
drawtype = "mesh",
mesh = "vase.obj",
tiles = {
"vase.png",
},
visual_scale = 0.5,
wield_scale = {x=0.5, y=0.5, z=0.5},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
groups = {cracky = 2, oddly_breakable_by_hand = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:Ancient_vase", {
description = "Ancient Vase",
drawtype = "mesh",
mesh = "vase.obj",
tiles = {
"Ancient_vase.png",
},
visual_scale = 0.5,
wield_scale = {x=0.5, y=0.5, z=0.5},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:Ancient_vase_sand", {
description = "Sandstone Vase",
drawtype = "mesh",
mesh = "vase.obj",
tiles = {
"Ancient_vase_sand.png",
},
visual_scale = 0.5,
wield_scale = {x=0.5, y=0.5, z=0.5},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
chest_items = {
{"default:gold_ingot", 3},
}
minetest.register_node("decoblocks:chest", {
description = "Treasure Chest",
tiles = {"decoblocks_chest_top.png", "decoblocks_chest_top.png", "decoblocks_chest_side.png",
"decoblocks_chest_side.png", "decoblocks_chest_side.png", "decoblocks_chest_front.png"},
paramtype2 = "facedir",
groups = {cracky = 2, oddly_breakable_by_hand = 1},
is_ground_content = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
for _, row in ipairs(chest_items) do
local item = row[1]
local rarity = row[2]
if math.random(1,rarity) == 1 then
meta:set_string("item", item)
else
meta:set_string("item", "default:steel_ingot 3")
end
end
inv:set_size("main", 1*1)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_rightclick = function(pos, node, clicker, item, _)
local name = clicker:get_player_name()
--if clicker:get_wielded_item():get_name() == "hyruletools:key" then
item:take_item()
local meta = minetest.get_meta(pos)
local item = meta:get_string("item")
if item == nil then
for _, row in ipairs(chest_items) do
local item = row[1]
local rarity = row[2]
if math.random(1,rarity) == 1 then
meta:set_string("item", item)
return
else
meta:set_string("item", "default:steel_ingot 3")
end
end
end
minetest.env:add_item(pos, item)
minetest.env:remove_node(pos)
--else
--minetest.chat_send_player(name, "It is locked, you need a key!")
--end
end,
})
minetest.register_node("decoblocks:dartblock", {
description = "Dart Trap",
tiles = {
"decoblocks_dartblock_top.png",
"decoblocks_dartblock_top.png",
"decoblocks_dartblock_sides.png",
"decoblocks_dartblock_sides.png",
"decoblocks_dartblock_sides.png",
"decoblocks_dartblock_front.png",
},
groups = {cracky = 1,},
paramtype2 = "facedir",
drop = "decoblocks:dart_item2 5"
})
minetest.register_entity("decoblocks:dart", {
visual = "cube",
textures = {
"decoblocks_dart.png",
"decoblocks_dart.png",
"decoblocks_dart.png",
"decoblocks_dart.png",
"decoblocks_dart.png",
"decoblocks_dart.png",
},
visual_size={x=0.1,y=0.1},
collisionbox = {0, 0, 0, 0, 0, 0},
physical = false,
automatic_rotate = true,
automatic_face_movement_dir = 0,
on_activate = function(self)
minetest.after(3, function()
self.object:remove()
end)
end,
on_step = function(self, dtime)
local pos = self.object:getpos()
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y-0.5,z=pos.z}, 0.5)
for k, obj in pairs(objs) do
if obj:is_player() then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
self.object:remove()
end
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "decoblocks:dart" and obj:get_luaentity().name ~= "__builtin:item" then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
self.object:remove()
end
end
end
end
})
minetest.register_entity("decoblocks:dart2", {
visual = "cube",
textures = {
"decoblocks_dart2.png",
"decoblocks_dart2.png",
"decoblocks_dart2.png",
"decoblocks_dart2.png",
"decoblocks_dart2.png",
"decoblocks_dart2.png",
},
visual_size={x=0.1,y=0.1},
collisionbox = {0, 0, 0, 0, 0, 0},
physical = false,
automatic_rotate = true,
automatic_face_movement_dir = 0,
on_activate = function(self)
minetest.after(3, function()
self.object:remove()
end)
end,
on_step = function(self, dtime)
local pos = self.object:getpos()
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y-0.5,z=pos.z}, 0.5)
for k, obj in pairs(objs) do
if obj:is_player() then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
minetest.after(1, function()
if obj:is_player() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
minetest.after(2, function()
if obj:is_player() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
minetest.after(3, function()
if obj:is_player() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
self.object:remove()
end
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "decoblocks:dart" and obj:get_luaentity().name ~= "__builtin:item" then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
minetest.after(1, function()
if obj:get_luaentity() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
minetest.after(2, function()
if obj:get_luaentity() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
minetest.after(3, function()
if obj:get_luaentity() ~= nil then
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=3},
}, nil)
end
end)
self.object:remove()
end
end
end
end
})
minetest.register_abm({
nodenames = {"decoblocks:dartblock"},
interval = 1,
chance = 1,
action = function(pos, node)
local x = 0
local z = 0
if node.param2 == 0 then
z = -1
elseif node.param2 == 2 then
z = 1
elseif node.param2 == 1 then
x = -1
elseif node.param2 == 3 then
x = 1
end
--minetest.chat_send_all(node.param2)
local numbers = {
{1},
{2},
{3},
{4},
}
for _, number in ipairs(numbers) do
local num = number[1]
local objs = minetest.get_objects_inside_radius({x=pos.x+x*num, y=pos.y-0.5, z=pos.z+z*num}, 1.5)
for _, obj in ipairs(objs) do
if obj:is_player() then
local ent = minetest.env:add_entity(pos, "decoblocks:dart")
ent:setvelocity({x=7*x, y=0, z=7*z})
end
end
end
end
})
minetest.register_node("decoblocks:spikes", {
description = "Spikes",
drawtype = "firelike",
tiles = {
"decoblocks_spikes.png"
},
wield_image = "decoblocks_spikes.png",
inventory_image = "decoblocks_spikes.png",
groups = {cracky=3},
paramtype = "light",
walkable = false,
damage_per_second = 3,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.2, 0.5}
}
})
minetest.register_node("decoblocks:crumblestone", {
description = "Crumbly Stone",
tiles = {"decoblocks_crumblestone.png"},
groups = {crumbly = 1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_abm({
nodenames = {"decoblocks:crumblestone"},
interval = 1,
chance = 1,
action = function(pos, node)
local objs = minetest.get_objects_inside_radius({x=pos.x, y=pos.y+0.5, z=pos.z}, 0.5)
for _, obj in ipairs(objs) do
if obj:is_player() then
minetest.add_particlespawner({
amount = 13,
time = 1,
minpos = {x=pos.x-0.2, y=pos.y, z=pos.z-0.2},
maxpos = {x=pos.x+0.2, y=pos.y+1, z=pos.z+0.2},
minvel = {x=-0.1, y=-1, z=-0.1},
maxvel = {x=0.1, y=-2, z=0.1},
minacc = {x=0, y=-0.5, z=0},
maxacc = {x=0, y=-1, z=0},
minexptime = 1,
maxexptime = 2,
minsize = 1,
maxsize = 2,
collisiondetection = true,
texture = "default_stone.png"
})
minetest.set_node(pos, {name = "air"})
end
end
end
})
minetest.register_tool("decoblocks:blowpipe", {
description = "Dart Blow Pipe",
inventory_image = "decoblocks_blowdart.png",
on_use = function(itemstack, placer)
local dir = placer:get_look_dir()
local pos = placer:getpos()
local pname = placer:get_player_name();
inv = minetest.get_inventory({type="player", name=pname})
if inv:contains_item("main", "decoblocks:dart_item2") then
local ent = minetest.env:add_entity({x=pos.x+1*dir.x, y=pos.y+1.5, z=pos.z+1*dir.z}, "decoblocks:dart2")
ent:setvelocity({x=15*dir.x, y=15*dir.y, z=15*dir.z})
local remov = inv:remove_item("main", "decoblocks:dart_item2")
elseif inv:contains_item("main", "decoblocks:dart_item") then
local ent = minetest.env:add_entity({x=pos.x+1*dir.x, y=pos.y+1.5, z=pos.z+1*dir.z}, "decoblocks:dart")
ent:setvelocity({x=15*dir.x, y=15*dir.y, z=15*dir.z})
local remov = inv:remove_item("main", "decoblocks:dart_item")
end
end,
})
minetest.register_craftitem("decoblocks:dart_item", {
description = "Dart",
inventory_image = "decoblocks_dart_item.png",
})
minetest.register_craftitem("decoblocks:dart_item2", {
description = "Dart",
inventory_image = "decoblocks_dart_item2.png",
})
minetest.register_node("decoblocks:old_skeleton", {
description = "Old Human Skeleton",
drawtype = "mesh",
mesh = "decoblocks_old_skeleton.obj",
tiles = {
"decoblocks_old_skeleton.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_skull_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
inventory_image = "decoblocks_skull_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:old_skeleton_alt", {
description = "Old Human Skeleton alt",
drawtype = "mesh",
mesh = "decoblocks_old_skeleton2.obj",
tiles = {
"decoblocks_old_skeleton.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_skull_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
inventory_image = "decoblocks_skull_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:candle", {
description = "Candle",
drawtype = "mesh",
mesh = "candle.obj",
tiles = {
"decoblocks_candle.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_candle_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
inventory_image = "decoblocks_candle_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:paper_lantern", {
description = "Paper Lantern",
tiles = {"decoblocks_paper_lantern_top.png", "decoblocks_paper_lantern_top.png", "decoblocks_paper_lantern.png"},
paramtype = "light",
light_source = 13,
is_ground_content = false,
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
flammable = 3, wool = 1},
sounds = default.node_sound_defaults(),
})
minetest.register_abm({
nodenames = {"decoblocks:paper_lantern"},
interval = 5,
chance = 1,
action = function(pos, node)
minetest.add_particle({
pos = {x=pos.x, y=pos.y, z=pos.z},
velocity = {x=0, y=0, z=0},
acceleration = {x=0, y=0, z=0},
expirationtime = 5,
size = 25,
collisiondetection = false,
collisionremoval = false,
vertical = true,
texture = "decoblocks_glow.png",
animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 2.00},
glow = 9
})
end
})
minetest.register_node("decoblocks:mammoth_wool", {
description = "Mammoth Wool",
tiles = {"decoblocks_mammoth_wool.png"},
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("decoblocks:bone_pillar", {
description = "Bone Pillar",
tiles = {"decoblocks_bone_pillar_top.png", "decoblocks_bone_pillar_top.png", "decoblocks_bone_pillar.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("decoblocks:framed_glass", {
description = "Glass With Wooden Frame",
drawtype = "glasslike",
tiles = {"decoblocks_framed_glass.png", "decoblocks_framed_glass_detail.png"},
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("decoblocks:refined_granite", {
description = "Refined Granite",
tiles = {"decoblocks_refined_granite.png"},
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:refined_granite_brown", {
description = "Refined Brown Granite",
tiles = {"decoblocks_refined_granite_brown.png"},
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:stucco", {
description = "Stucco",
tiles = {"decoblocks_stucco.png"},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:altar", {
description = "Altar",
drawtype = "mesh",
mesh = "old_skeleton.obj",
tiles = {
"old_skeleton.png",
},
visual_scale = 0.5,
wield_image = "decoblocks_skull_item.png",
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.0, 0.3}
},
inventory_image = "decoblocks_skull_item.png",
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:anvil", {
description = "Anvil",
tiles = {"decoblocks_anvil.png"},
groups = {cracky = 1},
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("decoblocks:gold_brick", {
description = "Gold Brick",
tiles = {"decoblocks_gold_brick.png"},
groups = {cracky = 1},
sounds = default.node_sound_metal_defaults(),
})
minetest.register_node("decoblocks:D00Med_Statue", {
description = "D00Med Statue",
drawtype = "mesh",
mesh = "player_statue.obj",
paramtype2 = "facedir",
tiles = {
"decoblocks_D00Med_statue.png",
},
visual_scale = 0.5,
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:toby109tt_Statue", {
description = "Toby109tt Statue",
drawtype = "mesh",
mesh = "player_statue.obj",
paramtype2 = "facedir",
tiles = {
"decoblocks_toby109tt_statue.png",
},
visual_scale = 0.5,
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:GreenXenith_Statue", {
description = "GreenXenith Statue",
drawtype = "mesh",
mesh = "player_statue.obj",
paramtype2 = "facedir",
tiles = {
"decoblocks_GreenXenith_statue.png",
},
visual_scale = 0.5,
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("decoblocks:DS_Minetest_Statue", {
description = "DS Minetest Statue",
drawtype = "mesh",
mesh = "player_statue.obj",
paramtype2 = "facedir",
tiles = {
"decoblocks_DS_Minetest_statue.png",
},
visual_scale = 0.5,
wield_scale = {x=1.0, y=1.0, z=1.0},
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
collision_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3}
},
groups = {choppy = 1, oddly_breakable_by_hand = 1},
sounds = default.node_sound_wood_defaults()
})