diff --git a/README.md b/README.md new file mode 100644 index 0000000..c2c56f2 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +### Introduction + +Farlands is a subgame featuring steampunk-style machines, villages, and dinosaurs. diff --git a/README.txt b/README.txt deleted file mode 100644 index 076fe9e..0000000 --- a/README.txt +++ /dev/null @@ -1,56 +0,0 @@ - - - -License for Code ----------------- - -Copyright (C) 2017 D00Med , DS-minetest, and toby109tt(aka tobyplowy) - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 2.1 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -License for Textures, Models and Sounds ---------------------------------------- - -CC-BY-SA 3.0 UNPORTED. Created by tobyplowy(aka toby109tt) and D00Med - - -Based of Minetest game (license below) -License of source code ----------------------- -Copyright (C) 2010-2012 celeron55, Perttu Ahola -See README.txt in each mod directory for information about other authors. - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation; either version 2.1 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -License of media (textures and sounds) --------------------------------------- -Copyright (C) 2010-2012 celeron55, Perttu Ahola -See README.txt in each mod directory for information about other authors. - -Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) -http://creativecommons.org/licenses/by-sa/3.0/ - diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..f06a822 --- /dev/null +++ b/license.txt @@ -0,0 +1,20 @@ +Copyright (C) 2017 D00Med , DS-minetest, and toby109tt(aka tobyplowy) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +License for Textures, Models and Sounds +--------------------------------------- + +CC-BY-SA 3.0 UNPORTED. Created by tobyplowy(aka toby109tt) and D00Med diff --git a/mods/decoblocks/crafts.lua b/mods/decoblocks/crafts.lua index 5241ea0..b55e82b 100644 --- a/mods/decoblocks/crafts.lua +++ b/mods/decoblocks/crafts.lua @@ -1,3 +1,92 @@ +minetest.register_craft({ + output = "decoblocks:bamboo_chair", + recipe = { + {"", "", "default:stick"}, + {"mapgen:bamboo_wood", "mapgen:bamboo_wood", "mapgen:bamboo_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:wooden_chair", + recipe = { + {"", "", "default:stick"}, + {"default:wood", "default:wood", "default:wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:junglewood_chair", + recipe = { + {"", "", "default:stick"}, + {"default:junglewood", "default:junglewood", "default:junglewood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:aspen_chair", + recipe = { + {"", "", "default:stick"}, + {"default:aspen_wood", "default:aspen_wood", "default:aspen_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:pine_chair", + recipe = { + {"", "", "default:stick"}, + {"default:pine_wood", "default:pine_wood", "default:pine_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:acacia_chair", + recipe = { + {"", "", "default:stick"}, + {"defualt:acacia_wood", "default:acacia_wood", "default:acacia_wood"}, + {"defaultt:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:palm_chair", + recipe = { + {"", "", "default:stick"}, + {"mapgen:palm_wood", "mapgen:palm_wood", "mapgen:palm_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:baobab_chair", + recipe = { + {"", "", "default:stick"}, + {"mapgen:baobab_wood", "mapgen:baobab_wood", "mapgen:baobab_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:yellow_ipe_chair", + recipe = { + {"", "", "default:stick"}, + {"mapgen:yellow_ipe_wood", "mapgen:yellow_ipe_wood", "mapgen:yellow_ipe_wood"}, + {"default:stick", "", "default:stick"} + } +}) + +minetest.register_craft({ + output = "decoblocks:bamboo_table", + recipe = { + {"mapgen:bamboo_wood", "mapgen:bamboo_wood", "mapgen:bamboo_wood"}, + {"group:stick", "", "group:stick"}, + {"group:stick", "", "group:stick"} + } +}) minetest.register_craft({ output = 'decoblocks:vase', diff --git a/mods/decoblocks/nodes.lua b/mods/decoblocks/nodes.lua index 0d16da2..58bbcd5 100644 --- a/mods/decoblocks/nodes.lua +++ b/mods/decoblocks/nodes.lua @@ -1,3 +1,903 @@ +minetest.register_node("decoblocks:wooden_chair", { + description = "Oak Wood Chair", + tiles = {"default_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:jungle_chair", { + description = "Junglewood Chair", + tiles = {"default_junglewood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:aspen_chair", { + description = "Aspen Chair", + tiles = {"default_aspen_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:pine_chair", { + description = "Pine Chair", + tiles = {"default_pine_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:acacia_chair", { + description = "Acacia Chair", + tiles = {"default_acacia_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:palm_chair", { + description = "Palm Chair", + tiles = {"mapgen_palm_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:bamboo_chair", { + description = "Bamboo Chair", + tiles = {"mapgen_bamboo_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:baobab_chair", { + description = "Baobab Chair", + tiles = {"mapgen_baobab_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:yellow_ipe_chair", { + description = "Yellow Ipe Chair", + tiles = {"mapgen_yellow_ipe_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125}, + {0.1875, -0.5, -0.3125, 0.3125, -0.0625, -0.1875}, + {-0.3125, -0.5, -0.3125, -0.1875, -0.0625, -0.1875}, + {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, + {-0.1875, 0.3125, 0.1875, 0.1875, 0.4375, 0.3125}, + {-0.3125, 0.125, 0.1875, 0.3125, 0.1875, 0.3125}, + {0.23, -0.4375, -0.3125, 0.29, -0.375, 0.3125}, + {-0.29, -0.4375, -0.3125, -0.23, -0.375, 0.3125}, + {-0.29, -0.4375, -0.0315, 0.29, -0.375, 0.031}, + }, + }, + selection_box = { + type = "fixed", + fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125}, + }, + collision_box={ + type="fixed", + fixed={ + {-0.3125, -0.5, -0.3125, 0.3125, -0.0625, 0.3125}, + {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125}, + }, + }, + groups = {cracky=1, oddly_breakable_by_hand=1}, + on_rightclick = function(pos, node, player, itemstack, pointed_thing) + local v=player:get_player_velocity() + if v.x~=0 or v.y~=0 or v.z~=0 then return end + player:setpos({x=pos.x,y=pos.y,z=pos.z}) + local name=player:get_player_name() + local nname=minetest.get_node(pos).name + if default.player_attached[name] then + player:set_physics_override(1, 1, 1) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0}) + default.player_attached[name]=false + default.player_set_animation(player, "stand",30) + end,player,name) + else + player:set_physics_override(0, 0, 0) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + minetest.after(0.3, function(player,name) + player:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0}) + default.player_attached[name]=true + default.player_set_animation(player, "sit",30) + end,player,name) + end + end, + can_dig = function(pos, player) + for _, ob in ipairs(minetest.get_objects_inside_radius(pos,1)) do + return false + end + return true + end, + on_construct=function(pos) + local meta=minetest.get_meta(pos) + minetest.get_node_timer(pos):start(1) + meta:set_int("n",20) + meta:set_int("y",0) + end, + after_place_node = function(pos, placer) + minetest.get_meta(pos):set_int("placed",1) + end +}) +minetest.register_node("decoblocks:wooden_table", { + description = "Wooden Table", + tiles = {"default_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:jungle_table", { + description = "Junglewood Table", + tiles = {"default_junglewood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:aspen_table", { + description = "Aspen Table", + tiles = {"default_aspen_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:pine_table", { + description = "Pine Table", + tiles = {"default_pine_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:acacia_table", { + description = "Acacia Table", + tiles = {"default_acacia_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:palm_table", { + description = "Palm Table", + tiles = {"mapgen_palm_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:bamboo_table", { + description = "Bamboo Table", + tiles = {"mapgen_bamboo_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:baobab_table", { + description = "Baobab Table", + tiles = {"mapgen_baobab_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) +minetest.register_node("decoblocks:yellow_ipe_table", { + description = "Yellow Ipe Table", + tiles = {"mapgen_yellow_ipe_wood.png"}, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.4,-0.5,-0.4, -0.3,0.4,-0.3}, + {0.3,-0.5,-0.4, 0.4,0.4,-0.3}, + {-0.4,-0.5,0.3, -0.3,0.4,0.4}, + {0.3,-0.5,0.3, 0.4,0.4,0.4}, + {-0.5,0.4,-0.5, 0.5,0.5,0.5}, + {-0.4,-0.2,-0.3, -0.3,-0.1,0.3}, + {0.3,-0.2,-0.4, 0.4,-0.1,0.3}, + {-0.3,-0.2,-0.4, 0.4,-0.1,-0.3}, + {-0.3,-0.2,0.3, 0.3,-0.1,0.4}, + }, + }, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1} +}) minetest.register_node("decoblocks:bamboo_fence", { description = "Bamboo Fence", tiles = { @@ -1190,145 +2090,4 @@ minetest.register_node("decoblocks:sandstone_pillar_base", { } }, on_place = minetest.rotate_node -}) - -minetest.register_node("decoblocks:snow_bricks", { - description = "Snow Bricks", - tiles = {"decoblocks_snow_bricks.png"}, - groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1}, -}) - - -minetest.register_node("decoblocks:bear_rug", { - description = "Bear Rug", - drawtype = "mesh", - paramtype2 = "facedir", - mesh = "bear_rug.obj", - tiles = { - "mobs_bear.png", - }, - visual_scale = 0.5, - wield_scale = {x=0.5, y=0.5, z=0.5}, - paramtype = "light", - selection_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5} - }, - collision_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, 0.-49, 0.5} - }, - groups = {cracky = 2, oddly_breakable_by_hand = 1}, - sounds = default.node_sound_stone_defaults(), -}) - - -minetest.register_node("decoblocks:polar_bear_rug", { - description = "Polar Bear Rug", - drawtype = "mesh", - paramtype2 = "facedir", - mesh = "bear_rug.obj", - tiles = { - "mobs_polar_bear.png", - }, - visual_scale = 0.5, - wield_scale = {x=0.5, y=0.5, z=0.5}, - paramtype = "light", - selection_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5} - }, - collision_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, 0.-49, 0.5} - }, - groups = {cracky = 2, oddly_breakable_by_hand = 1}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("decoblocks:rusty_steel_plating", { - description = "Rusty Plating", - tiles = {"decoblocks_rusty_steel_plating.png"}, - groups = {cracky = 1, level = 2}, - sounds = default.node_sound_metal_defaults(), -}) - -minetest.register_node("decoblocks:broken_glass", { - description = "Broken Glass", - drawtype = "glasslike_framed_optional", - tiles = {"decoblocks_broken_glass.png", "decoblocks_broken_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:plank_walkway", { - description = "Wood Plank Walkway", - tiles = { - "decoblocks_wood_planks.png", - "decoblocks_wood_planks.png", - "default_wood.png", - }, - drawtype = "nodebox", - paramtype = "light", - paramtype2 = "facedir", - node_box = { - type = "fixed", - fixed = { - {-0.5, 0.4375, -0.5, -0.3125, 0.5, 0.5}, -- NodeBox1 - {-0.25, 0.4375, -0.4375, -0.0625, 0.5, 0.5}, -- NodeBox2 - {0, 0.4375, -0.5, 0.1875, 0.5, 0.5}, -- NodeBox3 - {0.25, 0.4375, -0.375, 0.4375, 0.5, 0.5}, -- NodeBox4 - } - }, - sounds = default.node_sound_wood_defaults(), - groups = {choppy=1,} -}) - ---stained glass - -local colours = { -{"red", "Red"}, -{"green", "Green"}, -{"blue", "Blue"}, -{"yellow", "Yellow"}, -{"cyan", "Cyan"}, -{"brown", "Brown"}, -{"orange", "Orange"}, -{"purple", "Purple"}, -{"magenta", "Magenta"}, -{"darkgreen", "Dark Green"}, -{"darkgrey", "Dark Grey"}, -{"grey", "Grey"}, -{"white", "White"}, -{"black", "Black"}, -{"pink", "Pink"}, -} - -for _, row in ipairs(colours) do -local colour = row[1] -local desc = row[2] -minetest.register_node("decoblocks:"..colour.."_glass", { - description = ""..desc.." Stained Glass", - drawtype = "glasslike", - tiles = {"decoblocks_"..colour.."_glass.png"}, - use_texture_alpha = true, - sounds = default.node_sound_glass_defaults(), - groups = {cracky=1, oddly_breakable_by_hand=3, snappy=2} -}) -xpanes.register_pane(""..colour.."_glass", { - description = ""..desc.." Stained Glass Pane", - textures = {"decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png"}, - use_texture_alpha = true, - inventory_image = "decoblocks_"..colour.."_glass.png", - wield_image = "decoblocks_"..colour.."_glass.png", - sounds = default.node_sound_glass_defaults(), - groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3}, - recipe = { - {"", "dye:"..colour, ""}, - {"", "xpanes:pane", ""} - } -}) -end \ No newline at end of file +}) \ No newline at end of file diff --git a/mods/mapgen/mapgen.lua b/mods/mapgen/mapgen.lua index 69d5ad8..ed09941 100644 --- a/mods/mapgen/mapgen.lua +++ b/mods/mapgen/mapgen.lua @@ -1324,7 +1324,28 @@ heat_point = 50, humidity_point = 50, }) - + + -- Volcano + --[[ + minetest.register_biome({ + name = "volcanic", + node_dust = "default:obsidian", + node_top = "default:stone", + depth_top = 5, + --node_filler = "", + --depth_filler = "", + --node_stone = "", + node_water_top = "default:lava_source", + depth_water_top = 5, + node_water = "default:lava_source", + node_river_water = "default:lava_flowing", + node_riverbed = "default:obsidian", + depth_riverbed = 4, + y_min = 500, + y_max = 31000, + heat_point = 90, + humidity_point = 50, + })--]] -- -- Register decorations @@ -2938,4 +2959,4 @@ if minetest.get_mapgen_params().mgname == "v6" then else farming.register_mgv7_decorations() flowers.register_decorations() -end \ No newline at end of file +end