Updated homedecor
- Updated fonts and sign_lib - Did some remove_whitespaces
@ -51,3 +51,11 @@ Dependencies: none (just the game's default stuff)
|
|||||||
|
|
||||||
Recommends: buckets, flowers, unifieddyes, junglegrass, moreores,
|
Recommends: buckets, flowers, unifieddyes, junglegrass, moreores,
|
||||||
mesecons, wool
|
mesecons, wool
|
||||||
|
|
||||||
|
Skin credits:
|
||||||
|
|
||||||
|
Mammu by hansuke123
|
||||||
|
http://minetest.fensta.bplaced.net/#name=Mammu
|
||||||
|
|
||||||
|
BrightGirl by Malarif
|
||||||
|
http://minetest.fensta.bplaced.net/#name=BrightGirl
|
||||||
|
@ -149,14 +149,13 @@ if not minetest.get_modpath("mesecons") then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- alternate crafting if technic is/isn't installed
|
-- alternate crafting if technic is/isn't installed
|
||||||
|
|
||||||
if not minetest.get_modpath("technic") then
|
if not minetest.get_modpath("technic") then
|
||||||
|
|
||||||
minetest.register_craftitem(":technic:brass_ingot", {
|
minetest.register_craftitem(":technic:brass_ingot", {
|
||||||
description = S("Brass Ingot"),
|
description = S("Brass Ingot"),
|
||||||
inventory_image = "homedecor_brass_ingot.png",
|
inventory_image = "homedecor_brass_ingot.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("moreores") then
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "technic:brass_ingot 2",
|
output = "technic:brass_ingot 2",
|
||||||
@ -165,6 +164,17 @@ if not minetest.get_modpath("technic") then
|
|||||||
"default:copper_ingot",
|
"default:copper_ingot",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "technic:brass_ingot 3",
|
||||||
|
recipe = {
|
||||||
|
"default:steel_ingot",
|
||||||
|
"default:copper_ingot",
|
||||||
|
"default:gold_ingot",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_alias("homedecor:brass_ingot", "technic:brass_ingot")
|
minetest.register_alias("homedecor:brass_ingot", "technic:brass_ingot")
|
||||||
|
@ -24,9 +24,13 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
on_construct = function(pos)
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
local param2 = node.param2
|
local param2 = node.param2
|
||||||
|
|
||||||
|
if lrfurn.check_forward(pos, fdir, false, placer) then
|
||||||
|
|
||||||
node.name = "lrfurn:coffeetable_front"
|
node.name = "lrfurn:coffeetable_front"
|
||||||
if param2 == 0 then
|
if param2 == 0 then
|
||||||
pos.z = pos.z+1
|
pos.z = pos.z+1
|
||||||
@ -37,14 +41,19 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
|||||||
elseif param2 == 3 then
|
elseif param2 == 3 then
|
||||||
pos.x = pos.x-1
|
pos.x = pos.x-1
|
||||||
end
|
end
|
||||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "air" ) then
|
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
|
else
|
||||||
|
minetest.chat_send_player(placer:get_player_name(), "No room to place the coffee table!")
|
||||||
|
minetest.set_node(pos, {name = "air"})
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_destruct = function(pos)
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
local node = minetest.get_node(pos)
|
if minetest.is_protected(pos, digger:get_player_name()) then return true end
|
||||||
local param2 = node.param2
|
|
||||||
|
local param2 = oldnode.param2
|
||||||
if param2 == 0 then
|
if param2 == 0 then
|
||||||
pos.z = pos.z+1
|
pos.z = pos.z+1
|
||||||
elseif param2 == 1 then
|
elseif param2 == 1 then
|
||||||
@ -54,11 +63,13 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
|||||||
elseif param2 == 3 then
|
elseif param2 == 3 then
|
||||||
pos.x = pos.x-1
|
pos.x = pos.x-1
|
||||||
end
|
end
|
||||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:coffeetable_front" ) then
|
|
||||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
if minetest.is_protected(pos, digger:get_player_name()) then return true end
|
||||||
|
|
||||||
|
if (minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:coffeetable_front")
|
||||||
|
and (minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2) then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -8,19 +8,32 @@ lrfurn.fdir_to_fwd = {
|
|||||||
{ -1, 0 },
|
{ -1, 0 },
|
||||||
}
|
}
|
||||||
|
|
||||||
function lrfurn.check_forward(pos, fdir, long)
|
function lrfurn.check_forward(pos, fdir, long, placer)
|
||||||
|
|
||||||
if not fdir or fdir > 3 then fdir = 0 end
|
if not fdir or fdir > 3 then fdir = 0 end
|
||||||
|
|
||||||
local pos2 = { x = pos.x + lrfurn.fdir_to_fwd[fdir+1][1], y=pos.y, z = pos.z + lrfurn.fdir_to_fwd[fdir+1][2] }
|
local pos2 = { x = pos.x + lrfurn.fdir_to_fwd[fdir+1][1], y=pos.y, z = pos.z + lrfurn.fdir_to_fwd[fdir+1][2] }
|
||||||
local pos3 = { x = pos.x + lrfurn.fdir_to_fwd[fdir+1][1] * 2, y=pos.y, z = pos.z + lrfurn.fdir_to_fwd[fdir+1][2] * 2 }
|
local pos3 = { x = pos.x + lrfurn.fdir_to_fwd[fdir+1][1] * 2, y=pos.y, z = pos.z + lrfurn.fdir_to_fwd[fdir+1][2] * 2 }
|
||||||
|
|
||||||
local node2 = minetest.get_node(pos2)
|
local node2 = minetest.get_node(pos2)
|
||||||
if node2 and node2.name ~= "air" then return false end
|
if node2 and node2.name ~= "air" then
|
||||||
|
return false
|
||||||
|
elseif minetest.is_protected(pos2, placer:get_player_name()) then
|
||||||
|
if not long then
|
||||||
|
minetest.chat_send_player(placer:get_player_name(), "Someone else owns the spot where other end goes!")
|
||||||
|
else
|
||||||
|
minetest.chat_send_player(placer:get_player_name(), "Someone else owns the spot where the middle or far end goes!")
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
if long then
|
if long then
|
||||||
local node3 = minetest.get_node(pos3)
|
local node3 = minetest.get_node(pos3)
|
||||||
if node3 and node3.name ~= "air" then return false end
|
if node3 and node3.name ~= "air" then
|
||||||
|
return false
|
||||||
|
elseif minetest.is_protected(pos3, placer:get_player_name()) then
|
||||||
|
minetest.chat_send_player(placer:get_player_name(), "Someone else owns the spot where the other end goes!")
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
@ -42,15 +42,18 @@ for i in ipairs(longsofas_list) do
|
|||||||
selection_box = longsofa_sbox,
|
selection_box = longsofa_sbox,
|
||||||
node_box = longsofa_cbox,
|
node_box = longsofa_cbox,
|
||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
|
||||||
local pos = pointed_thing.above
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
||||||
|
|
||||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
|
||||||
|
|
||||||
if lrfurn.check_forward(pos, fdir, true) then
|
if lrfurn.check_forward(pos, fdir, true, placer) then
|
||||||
minetest.set_node(pos, {name = "lrfurn:longsofa_"..colour, param2 = fdir})
|
minetest.set_node(pos, {name = "lrfurn:longsofa_"..colour, param2 = fdir})
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!")
|
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!")
|
||||||
|
minetest.set_node(pos, { name = "air" })
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
@ -42,15 +42,19 @@ for i in ipairs(sofas_list) do
|
|||||||
selection_box = sofa_sbox,
|
selection_box = sofa_sbox,
|
||||||
node_box = sofa_cbox,
|
node_box = sofa_cbox,
|
||||||
on_rotate = screwdriver.disallow,
|
on_rotate = screwdriver.disallow,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
|
||||||
local pos = pointed_thing.above
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||||
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
||||||
|
|
||||||
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
|
||||||
|
|
||||||
if lrfurn.check_forward(pos, fdir, true) then
|
if lrfurn.check_forward(pos, fdir, false, placer) then
|
||||||
minetest.set_node(pos, {name = "lrfurn:sofa_"..colour, param2 = fdir})
|
minetest.set_node(pos, {name = "lrfurn:sofa_"..colour, param2 = fdir})
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!")
|
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!")
|
||||||
|
minetest.set_node(pos, { name = "air" })
|
||||||
|
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
Before ![]() (image error) Size: 67 B After ![]() (image error) Size: 67 B ![]() ![]() |
Before ![]() (image error) Size: 83 B After ![]() (image error) Size: 83 B ![]() ![]() |
Before ![]() (image error) Size: 83 B After ![]() (image error) Size: 83 B ![]() ![]() |
Before ![]() (image error) Size: 97 B After ![]() (image error) Size: 97 B ![]() ![]() |
Before ![]() (image error) Size: 112 B After ![]() (image error) Size: 112 B ![]() ![]() |
Before ![]() (image error) Size: 125 B After ![]() (image error) Size: 125 B ![]() ![]() |
Before ![]() (image error) Size: 120 B After ![]() (image error) Size: 120 B ![]() ![]() |
Before ![]() (image error) Size: 78 B After ![]() (image error) Size: 78 B ![]() ![]() |
Before ![]() (image error) Size: 88 B After ![]() (image error) Size: 88 B ![]() ![]() |
Before ![]() (image error) Size: 88 B After ![]() (image error) Size: 88 B ![]() ![]() |
Before ![]() (image error) Size: 90 B After ![]() (image error) Size: 90 B ![]() ![]() |
Before ![]() (image error) Size: 84 B After ![]() (image error) Size: 84 B ![]() ![]() |
Before ![]() (image error) Size: 79 B After ![]() (image error) Size: 79 B ![]() ![]() |
Before ![]() (image error) Size: 77 B After ![]() (image error) Size: 77 B ![]() ![]() |
Before ![]() (image error) Size: 77 B After ![]() (image error) Size: 77 B ![]() ![]() |
Before ![]() (image error) Size: 93 B After ![]() (image error) Size: 93 B ![]() ![]() |
Before ![]() (image error) Size: 97 B After ![]() (image error) Size: 97 B ![]() ![]() |
Before ![]() (image error) Size: 87 B After ![]() (image error) Size: 87 B ![]() ![]() |
Before ![]() (image error) Size: 113 B After ![]() (image error) Size: 113 B ![]() ![]() |
Before ![]() (image error) Size: 109 B After ![]() (image error) Size: 109 B ![]() ![]() |
Before ![]() (image error) Size: 103 B After ![]() (image error) Size: 103 B ![]() ![]() |
Before ![]() (image error) Size: 109 B After ![]() (image error) Size: 109 B ![]() ![]() |
Before ![]() (image error) Size: 104 B After ![]() (image error) Size: 104 B ![]() ![]() |
Before ![]() (image error) Size: 95 B After ![]() (image error) Size: 95 B ![]() ![]() |
Before ![]() (image error) Size: 104 B After ![]() (image error) Size: 104 B ![]() ![]() |
Before ![]() (image error) Size: 110 B After ![]() (image error) Size: 110 B ![]() ![]() |
Before ![]() (image error) Size: 77 B After ![]() (image error) Size: 77 B ![]() ![]() |
Before ![]() (image error) Size: 80 B After ![]() (image error) Size: 80 B ![]() ![]() |
Before ![]() (image error) Size: 96 B After ![]() (image error) Size: 96 B ![]() ![]() |
Before ![]() (image error) Size: 80 B After ![]() (image error) Size: 80 B ![]() ![]() |
Before ![]() (image error) Size: 95 B After ![]() (image error) Size: 95 B ![]() ![]() |
Before ![]() (image error) Size: 102 B After ![]() (image error) Size: 102 B ![]() ![]() |
Before ![]() (image error) Size: 128 B After ![]() (image error) Size: 128 B ![]() ![]() |
Before ![]() (image error) Size: 117 B After ![]() (image error) Size: 117 B ![]() ![]() |
Before ![]() (image error) Size: 97 B After ![]() (image error) Size: 97 B ![]() ![]() |
Before ![]() (image error) Size: 113 B After ![]() (image error) Size: 113 B ![]() ![]() |
Before ![]() (image error) Size: 104 B After ![]() (image error) Size: 104 B ![]() ![]() |
Before ![]() (image error) Size: 92 B After ![]() (image error) Size: 92 B ![]() ![]() |
Before ![]() (image error) Size: 91 B After ![]() (image error) Size: 91 B ![]() ![]() |
Before ![]() (image error) Size: 118 B After ![]() (image error) Size: 118 B ![]() ![]() |
Before ![]() (image error) Size: 89 B After ![]() (image error) Size: 89 B ![]() ![]() |
Before ![]() (image error) Size: 77 B After ![]() (image error) Size: 77 B ![]() ![]() |
Before ![]() (image error) Size: 91 B After ![]() (image error) Size: 91 B ![]() ![]() |
Before ![]() (image error) Size: 114 B After ![]() (image error) Size: 114 B ![]() ![]() |
Before ![]() (image error) Size: 82 B After ![]() (image error) Size: 82 B ![]() ![]() |
Before ![]() (image error) Size: 108 B After ![]() (image error) Size: 108 B ![]() ![]() |
Before ![]() (image error) Size: 103 B After ![]() (image error) Size: 103 B ![]() ![]() |
Before ![]() (image error) Size: 116 B After ![]() (image error) Size: 116 B ![]() ![]() |
Before ![]() (image error) Size: 99 B After ![]() (image error) Size: 99 B ![]() ![]() |
Before ![]() (image error) Size: 122 B After ![]() (image error) Size: 122 B ![]() ![]() |
Before ![]() (image error) Size: 100 B After ![]() (image error) Size: 100 B ![]() ![]() |
Before ![]() (image error) Size: 111 B After ![]() (image error) Size: 111 B ![]() ![]() |
Before ![]() (image error) Size: 85 B After ![]() (image error) Size: 85 B ![]() ![]() |
Before ![]() (image error) Size: 95 B After ![]() (image error) Size: 95 B ![]() ![]() |
Before ![]() (image error) Size: 103 B After ![]() (image error) Size: 103 B ![]() ![]() |
Before ![]() (image error) Size: 107 B After ![]() (image error) Size: 107 B ![]() ![]() |
Before ![]() (image error) Size: 115 B After ![]() (image error) Size: 115 B ![]() ![]() |
Before ![]() (image error) Size: 105 B After ![]() (image error) Size: 105 B ![]() ![]() |
Before ![]() (image error) Size: 108 B After ![]() (image error) Size: 108 B ![]() ![]() |
Before ![]() (image error) Size: 80 B After ![]() (image error) Size: 80 B ![]() ![]() |
Before ![]() (image error) Size: 94 B After ![]() (image error) Size: 94 B ![]() ![]() |
Before ![]() (image error) Size: 80 B After ![]() (image error) Size: 80 B ![]() ![]() |
Before ![]() (image error) Size: 96 B After ![]() (image error) Size: 96 B ![]() ![]() |
Before ![]() (image error) Size: 76 B After ![]() (image error) Size: 76 B ![]() ![]() |
Before ![]() (image error) Size: 78 B After ![]() (image error) Size: 78 B ![]() ![]() |
Before ![]() (image error) Size: 102 B After ![]() (image error) Size: 102 B ![]() ![]() |
Before ![]() (image error) Size: 99 B After ![]() (image error) Size: 99 B ![]() ![]() |
Before ![]() (image error) Size: 98 B After ![]() (image error) Size: 98 B ![]() ![]() |
Before ![]() (image error) Size: 105 B After ![]() (image error) Size: 105 B ![]() ![]() |
Before ![]() (image error) Size: 98 B After ![]() (image error) Size: 98 B ![]() ![]() |
Before ![]() (image error) Size: 89 B After ![]() (image error) Size: 89 B ![]() ![]() |
Before ![]() (image error) Size: 101 B After ![]() (image error) Size: 101 B ![]() ![]() |
Before ![]() (image error) Size: 93 B After ![]() (image error) Size: 93 B ![]() ![]() |
Before ![]() (image error) Size: 82 B After ![]() (image error) Size: 82 B ![]() ![]() |
Before ![]() (image error) Size: 83 B After ![]() (image error) Size: 83 B ![]() ![]() |
Before ![]() (image error) Size: 103 B After ![]() (image error) Size: 103 B ![]() ![]() |
Before ![]() (image error) Size: 77 B After ![]() (image error) Size: 77 B ![]() ![]() |
Before ![]() (image error) Size: 99 B After ![]() (image error) Size: 99 B ![]() ![]() |
Before ![]() (image error) Size: 93 B After ![]() (image error) Size: 93 B ![]() ![]() |
Before ![]() (image error) Size: 97 B After ![]() (image error) Size: 97 B ![]() ![]() |
Before ![]() (image error) Size: 100 B After ![]() (image error) Size: 100 B ![]() ![]() |
Before ![]() (image error) Size: 100 B After ![]() (image error) Size: 100 B ![]() ![]() |
Before ![]() (image error) Size: 87 B After ![]() (image error) Size: 87 B ![]() ![]() |
Before ![]() (image error) Size: 100 B After ![]() (image error) Size: 100 B ![]() ![]() |
Before ![]() (image error) Size: 92 B After ![]() (image error) Size: 92 B ![]() ![]() |
Before ![]() (image error) Size: 91 B After ![]() (image error) Size: 91 B ![]() ![]() |
Before ![]() (image error) Size: 98 B After ![]() (image error) Size: 98 B ![]() ![]() |
Before ![]() (image error) Size: 107 B After ![]() (image error) Size: 107 B ![]() ![]() |
Before ![]() (image error) Size: 99 B After ![]() (image error) Size: 99 B ![]() ![]() |
Before ![]() (image error) Size: 102 B After ![]() (image error) Size: 102 B ![]() ![]() |
Before ![]() (image error) Size: 95 B After ![]() (image error) Size: 95 B ![]() ![]() |
Before ![]() (image error) Size: 88 B After ![]() (image error) Size: 88 B ![]() ![]() |
Before ![]() (image error) Size: 67 B After ![]() (image error) Size: 67 B ![]() ![]() |
Before ![]() (image error) Size: 87 B After ![]() (image error) Size: 87 B ![]() ![]() |