forked from mtcontrib/homedecor_modpack
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
0a93b0f8df
|
@ -15,7 +15,8 @@ globals = {
|
||||||
"homedecor_doors_and_gates",
|
"homedecor_doors_and_gates",
|
||||||
|
|
||||||
-- mod-deps
|
-- mod-deps
|
||||||
"armor"
|
"armor",
|
||||||
|
xcompat = {fields = {"player"}},
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
|
@ -39,4 +40,5 @@ read_globals = {
|
||||||
"creative",
|
"creative",
|
||||||
"doors",
|
"doors",
|
||||||
"i3",
|
"i3",
|
||||||
|
"xcompat",
|
||||||
}
|
}
|
|
@ -25,7 +25,4 @@ required:
|
||||||
|
|
||||||
* [Unifieddyes](https://github.com/mt-mods/unifieddyes)
|
* [Unifieddyes](https://github.com/mt-mods/unifieddyes)
|
||||||
* [Basic Materials](https://github.com/mt-mods/basic_materials)
|
* [Basic Materials](https://github.com/mt-mods/basic_materials)
|
||||||
|
* [xcompat](https://github.com/mt-mods/xcompat)
|
||||||
optional:
|
|
||||||
|
|
||||||
* [Sound Api](https://github.com/mt-mods/sound_api) - note: needed for sound support
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ local function building_blocks_stairs(nodename, def)
|
||||||
def._mcl_hardness=1.6
|
def._mcl_hardness=1.6
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def.is_ground_content = def.is_ground_content == true
|
||||||
|
|
||||||
minetest.register_node(nodename, def)
|
minetest.register_node(nodename, def)
|
||||||
if minetest.get_modpath("moreblocks") then
|
if minetest.get_modpath("moreblocks") then
|
||||||
local mod, name = nodename:match("(.*):(.*)")
|
local mod, name = nodename:match("(.*):(.*)")
|
||||||
|
@ -31,7 +33,7 @@ building_blocks_stairs("building_blocks:grate", {
|
||||||
tiles = {"building_blocks_grate.png"},
|
tiles = {"building_blocks_grate.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {cracky=1, dig_generic=3},
|
groups = {cracky=1, dig_generic=3},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -44,7 +46,7 @@ building_blocks_stairs("building_blocks:smoothglass", {
|
||||||
tiles = {"building_blocks_sglass.png"},
|
tiles = {"building_blocks_sglass.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -57,7 +59,7 @@ building_blocks_stairs("building_blocks:woodglass", {
|
||||||
tiles = {"building_blocks_wglass.png"},
|
tiles = {"building_blocks_wglass.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -68,20 +70,21 @@ building_blocks_stairs("building_blocks:woodglass", {
|
||||||
building_blocks_stairs("building_blocks:Adobe", {
|
building_blocks_stairs("building_blocks:Adobe", {
|
||||||
tiles = {"building_blocks_Adobe.png"},
|
tiles = {"building_blocks_Adobe.png"},
|
||||||
description = S("Adobe"),
|
description = S("Adobe"),
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=3, dig_stone=2},
|
groups = {crumbly=3, dig_stone=2},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
local grasstex = {"[combine:16x16^[noalpha^[colorize:#006400"}
|
local grasstex = {
|
||||||
if minetest.get_modpath("default") then
|
homedecor.textures.grass.top,
|
||||||
grasstex = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}
|
homedecor.textures.grass.dirt,
|
||||||
end
|
homedecor.textures.grass.side
|
||||||
|
}
|
||||||
building_blocks_stairs("building_blocks:fakegrass", {
|
building_blocks_stairs("building_blocks:fakegrass", {
|
||||||
tiles = grasstex,
|
tiles = grasstex,
|
||||||
description = S("Fake Grass"),
|
description = S("Fake Grass"),
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=3, dig_sand=3},
|
groups = {crumbly=3, dig_sand=3},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_dirt_defaults",
|
key = "node_sound_dirt_defaults",
|
||||||
|
@ -89,7 +92,7 @@ building_blocks_stairs("building_blocks:fakegrass", {
|
||||||
})
|
})
|
||||||
building_blocks_stairs("building_blocks:hardwood", {
|
building_blocks_stairs("building_blocks:hardwood", {
|
||||||
tiles = {"building_blocks_hardwood.png"},
|
tiles = {"building_blocks_hardwood.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
description = S("Hardwood"),
|
description = S("Hardwood"),
|
||||||
groups = {choppy=1,flammable=1, dig_tree=1},
|
groups = {choppy=1,flammable=1, dig_tree=1},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -98,7 +101,7 @@ building_blocks_stairs("building_blocks:hardwood", {
|
||||||
})
|
})
|
||||||
building_blocks_stairs("building_blocks:Roofing", {
|
building_blocks_stairs("building_blocks:Roofing", {
|
||||||
tiles = {"building_blocks_Roofing.png"},
|
tiles = {"building_blocks_Roofing.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
description = S("Roof block"),
|
description = S("Roof block"),
|
||||||
groups = {snappy=3, dig_generic=4},
|
groups = {snappy=3, dig_generic=4},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -108,7 +111,7 @@ building_blocks_stairs("building_blocks:Roofing", {
|
||||||
building_blocks_stairs("building_blocks:Tar", {
|
building_blocks_stairs("building_blocks:Tar", {
|
||||||
description = S("Tar"),
|
description = S("Tar"),
|
||||||
tiles = {"building_blocks_tar.png"},
|
tiles = {"building_blocks_tar.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=1, tar_block = 1, dig_generic=4},
|
groups = {crumbly=1, tar_block = 1, dig_generic=4},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -117,7 +120,7 @@ building_blocks_stairs("building_blocks:Tar", {
|
||||||
building_blocks_stairs("building_blocks:Marble", {
|
building_blocks_stairs("building_blocks:Marble", {
|
||||||
description = S("Marble"),
|
description = S("Marble"),
|
||||||
tiles = {"building_blocks_marble.png"},
|
tiles = {"building_blocks_marble.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {cracky=3, marble = 1, dig_stone=2},
|
groups = {cracky=3, marble = 1, dig_stone=2},
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -139,16 +142,13 @@ minetest.register_node("building_blocks:brobble_spread", {
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=3, dig_generic=4, handy=1},
|
groups = {crumbly=3, dig_generic=4, handy=1},
|
||||||
_mcl_hardness=0.6
|
_mcl_hardness=0.6
|
||||||
})
|
})
|
||||||
|
|
||||||
if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopblocks") then
|
if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopblocks") then
|
||||||
local graveltex = "[combine:16x16^[noalpha^[colorize:#3a3b3c"
|
local graveltex = homedecor.textures.gravel
|
||||||
if minetest.get_modpath("default") then
|
|
||||||
graveltex = "default_gravel.png"
|
|
||||||
end
|
|
||||||
minetest.register_node("building_blocks:gravel_spread", {
|
minetest.register_node("building_blocks:gravel_spread", {
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
description = S("Gravel Spread"),
|
description = S("Gravel Spread"),
|
||||||
|
@ -162,7 +162,7 @@ if not minetest.get_modpath("moreblocks") or not minetest.get_modpath("gloopbloc
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=2, dig_generic=4, handy=1},
|
groups = {crumbly=2, dig_generic=4, handy=1},
|
||||||
_mcl_hardness=0.6,
|
_mcl_hardness=0.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -184,7 +184,7 @@ minetest.register_node("building_blocks:Tarmac_spread", {
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {cracky=3, dig_generic=4, pickaxey=5},
|
groups = {cracky=3, dig_generic=4, pickaxey=5},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -204,7 +204,7 @@ minetest.register_node("building_blocks:terrycloth_towel", {
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=3, dig_generic=4, handy=1},
|
groups = {crumbly=3, dig_generic=4, handy=1},
|
||||||
_mcl_hardness=0.6
|
_mcl_hardness=0.6
|
||||||
})
|
})
|
||||||
|
@ -228,7 +228,7 @@ minetest.register_node("building_blocks:BWtile", {
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {crumbly=3, dig_generic=4, handy=1},
|
groups = {crumbly=3, dig_generic=4, handy=1},
|
||||||
_mcl_hardness=0.6
|
_mcl_hardness=0.6
|
||||||
})
|
})
|
||||||
|
@ -245,7 +245,7 @@ minetest.register_node("building_blocks:Fireplace", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = minetest.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
groups = {cracky=2, dig_generic=4, pickaxey=5},
|
groups = {cracky=2, dig_generic=4, pickaxey=5},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
|
|
@ -146,6 +146,7 @@ minetest.register_node("fake_fire:ice_fire", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_generic=3, handy=1},
|
groups = {dig_immediate=3, not_in_creative_inventory=1, dig_generic=3, handy=1},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=0.6,
|
_mcl_hardness=0.6,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
|
@ -177,7 +178,7 @@ local sbox = {
|
||||||
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16},
|
fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16},
|
||||||
}
|
}
|
||||||
|
|
||||||
local wtex = homedecor.textures.default_junglewood
|
local wtex = homedecor.textures.wood.jungle.planks
|
||||||
|
|
||||||
minetest.register_node("fake_fire:fancy_fire", {
|
minetest.register_node("fake_fire:fancy_fire", {
|
||||||
inventory_image = "fancy_fire_inv.png",
|
inventory_image = "fancy_fire_inv.png",
|
||||||
|
@ -188,6 +189,7 @@ minetest.register_node("fake_fire:fancy_fire", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {oddly_breakable_by_hand=3, flammable=0, handy=1},
|
groups = {oddly_breakable_by_hand=3, flammable=0, handy=1},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=0.6,
|
_mcl_hardness=0.6,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = 13,
|
light_source = 13,
|
||||||
|
@ -234,6 +236,7 @@ minetest.register_node("fake_fire:embers", {
|
||||||
},
|
},
|
||||||
light_source = 9,
|
light_source = 9,
|
||||||
groups = {crumbly=3, dig_stone=2, handy=1},
|
groups = {crumbly=3, dig_stone=2, handy=1},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=0.6,
|
_mcl_hardness=0.6,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -266,6 +269,7 @@ for _, mat in ipairs(materials) do
|
||||||
description = desc,
|
description = desc,
|
||||||
tiles = {tex.."^chimney_top.png", tex},
|
tiles = {tex.."^chimney_top.png", tex},
|
||||||
groups = {snappy=3, dig_stone=2, handy=1},
|
groups = {snappy=3, dig_stone=2, handy=1},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=0.6,
|
_mcl_hardness=0.6,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
|
|
@ -2,8 +2,8 @@ local S = minetest.get_translator("homedecor_bathroom")
|
||||||
|
|
||||||
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
||||||
|
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
local water_tex = homedecor.textures.water
|
local water_tex = homedecor.textures.water.tile
|
||||||
|
|
||||||
homedecor.register("bathroom_tiles_dark", {
|
homedecor.register("bathroom_tiles_dark", {
|
||||||
description = S("Bathroom/kitchen tiles (dark)"),
|
description = S("Bathroom/kitchen tiles (dark)"),
|
||||||
|
|
|
@ -2,7 +2,7 @@ local S = minetest.get_translator("homedecor_bedroom")
|
||||||
|
|
||||||
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
||||||
|
|
||||||
local wood_tex, wool_tex = homedecor.textures.default_wood, homedecor.textures.wool_white
|
local wood_tex, wool_tex = homedecor.textures.wood.apple.planks, homedecor.textures.wool.white
|
||||||
|
|
||||||
local bed_sbox = {
|
local bed_sbox = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
|
|
|
@ -81,7 +81,7 @@ for _, c in ipairs(bookcolors) do
|
||||||
name = "homedecor:book_"..color,
|
name = "homedecor:book_"..color,
|
||||||
param2 = fdir,
|
param2 = fdir,
|
||||||
})
|
})
|
||||||
local text = itemstack:get_metadata() or ""
|
local text = itemstack:get_meta():get_string("")
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local data = minetest.deserialize(text) or {}
|
local data = minetest.deserialize(text) or {}
|
||||||
if type(data) ~= "table" then
|
if type(data) ~= "table" then
|
||||||
|
|
|
@ -7,7 +7,7 @@ homedecor.register("air_conditioner", {
|
||||||
mesh = "homedecor_ac.obj",
|
mesh = "homedecor_ac.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_ac.png",
|
"homedecor_ac.png",
|
||||||
homedecor.textures.glass
|
homedecor.textures.glass.pane
|
||||||
},
|
},
|
||||||
groups = { snappy = 3, dig_stone = 3 },
|
groups = { snappy = 3, dig_stone = 3 },
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
|
@ -36,11 +36,13 @@ homedecor.register("air_conditioner", {
|
||||||
-- fans
|
-- fans
|
||||||
|
|
||||||
minetest.register_entity(":homedecor:mesh_desk_fan", {
|
minetest.register_entity(":homedecor:mesh_desk_fan", {
|
||||||
|
initial_properties = {
|
||||||
collisionbox = homedecor.nodebox.null,
|
collisionbox = homedecor.nodebox.null,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "homedecor_desk_fan.b3d",
|
mesh = "homedecor_desk_fan.b3d",
|
||||||
textures = {"homedecor_desk_fan_uv.png"},
|
textures = {"homedecor_desk_fan_uv.png"},
|
||||||
visual_size = {x=10, y=10},
|
visual_size = {x=10, y=10},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local add_mesh_desk_fan_entity = function(pos)
|
local add_mesh_desk_fan_entity = function(pos)
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
local S = minetest.get_translator("homedecor_clocks")
|
local S = minetest.get_translator("homedecor_clocks")
|
||||||
|
|
||||||
local wood
|
local wood = homedecor.textures.wood.apple.planks
|
||||||
if minetest.get_modpath("default") then
|
|
||||||
wood = "default_wood.png"
|
|
||||||
else
|
|
||||||
|
|
||||||
wood = "[combine:16x16^[noalpha^[colorize:#563d2d"
|
|
||||||
end
|
|
||||||
|
|
||||||
local plastic_craft = {
|
local plastic_craft = {
|
||||||
output = "homedecor:analog_clock_plastic 2",
|
output = "homedecor:analog_clock_plastic 2",
|
||||||
|
@ -135,7 +129,7 @@ homedecor.register("grandfather_clock", {
|
||||||
description = S("Grandfather Clock"),
|
description = S("Grandfather Clock"),
|
||||||
mesh = "homedecor_grandfather_clock.obj",
|
mesh = "homedecor_grandfather_clock.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
homedecor.textures.glass,
|
homedecor.textures.glass.pane,
|
||||||
"homedecor_grandfather_clock_face.png",
|
"homedecor_grandfather_clock_face.png",
|
||||||
homedecor.lux_wood,
|
homedecor.lux_wood,
|
||||||
"homedecor_grandfather_clock_face_edge.png",
|
"homedecor_grandfather_clock_face_edge.png",
|
||||||
|
|
|
@ -54,15 +54,13 @@ homedecor.color_dark_grey = 0xff606060
|
||||||
homedecor.color_med_grey = 0xffa0a0a0
|
homedecor.color_med_grey = 0xffa0a0a0
|
||||||
|
|
||||||
-- load different handler subsystems
|
-- load different handler subsystems
|
||||||
dofile(modpath.."/textures.lua")
|
dofile(modpath.."/xcompat.lua")
|
||||||
dofile(modpath.."/materials.lua")
|
|
||||||
dofile(modpath.."/nodeboxes.lua")
|
dofile(modpath.."/nodeboxes.lua")
|
||||||
dofile(modpath.."/expansion.lua")
|
dofile(modpath.."/expansion.lua")
|
||||||
dofile(modpath.."/furnaces.lua")
|
dofile(modpath.."/furnaces.lua")
|
||||||
dofile(modpath.."/inventory.lua")
|
dofile(modpath.."/inventory.lua")
|
||||||
dofile(modpath.."/registration.lua")
|
dofile(modpath.."/registration.lua")
|
||||||
dofile(modpath.."/water_particles.lua")
|
dofile(modpath.."/water_particles.lua")
|
||||||
dofile(modpath.."/sit.lua")
|
|
||||||
dofile(modpath.."/crafts.lua")
|
dofile(modpath.."/crafts.lua")
|
||||||
|
|
||||||
if minetest.settings:get_bool("log_mods") then
|
if minetest.settings:get_bool("log_mods") then
|
||||||
|
|
|
@ -12,6 +12,7 @@ local default_can_dig = function(pos,player)
|
||||||
return meta:get_inventory():is_empty("main")
|
return meta:get_inventory():is_empty("main")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local default_can_interact_with_node = xcompat.functions.can_interact_with_node
|
||||||
|
|
||||||
local default_inventory_formspecs = {
|
local default_inventory_formspecs = {
|
||||||
["4"]="size[8,6]"..
|
["4"]="size[8,6]"..
|
||||||
|
@ -133,7 +134,7 @@ function homedecor.handle_inventory(name, def, original_def)
|
||||||
|
|
||||||
local allow_move = def.allow_metadata_inventory_move
|
local allow_move = def.allow_metadata_inventory_move
|
||||||
def.allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
def.allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
if not default.can_interact_with_node(player, pos) then
|
if not default_can_interact_with_node(player, pos) then
|
||||||
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to "
|
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to "
|
||||||
..minetest.get_meta(pos):get_string("owner").." at "..minetest.pos_to_string(pos))
|
..minetest.get_meta(pos):get_string("owner").." at "..minetest.pos_to_string(pos))
|
||||||
return 0
|
return 0
|
||||||
|
@ -144,7 +145,7 @@ function homedecor.handle_inventory(name, def, original_def)
|
||||||
|
|
||||||
local allow_put = def.allow_metadata_inventory_put
|
local allow_put = def.allow_metadata_inventory_put
|
||||||
def.allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
def.allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
if not default.can_interact_with_node(player, pos) then
|
if not default_can_interact_with_node(player, pos) then
|
||||||
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to"
|
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to"
|
||||||
..minetest.get_meta(pos):get_string("owner").." at "..minetest.pos_to_string(pos))
|
..minetest.get_meta(pos):get_string("owner").." at "..minetest.pos_to_string(pos))
|
||||||
return 0
|
return 0
|
||||||
|
@ -155,7 +156,7 @@ function homedecor.handle_inventory(name, def, original_def)
|
||||||
|
|
||||||
local allow_take = def.allow_metadata_inventory_take
|
local allow_take = def.allow_metadata_inventory_take
|
||||||
def.allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
def.allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
if not default.can_interact_with_node(player, pos) then
|
if not default_can_interact_with_node(player, pos) then
|
||||||
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to"
|
minetest.log("action", player:get_player_name().." tried to access a "..name.." belonging to"
|
||||||
..minetest.get_meta(pos):get_string("owner").." at ".. minetest.pos_to_string(pos))
|
..minetest.get_meta(pos):get_string("owner").." at ".. minetest.pos_to_string(pos))
|
||||||
return 0
|
return 0
|
||||||
|
@ -166,7 +167,7 @@ function homedecor.handle_inventory(name, def, original_def)
|
||||||
|
|
||||||
local can_dig = def.can_dig or default_can_dig
|
local can_dig = def.can_dig or default_can_dig
|
||||||
def.can_dig = function(pos, player)
|
def.can_dig = function(pos, player)
|
||||||
return default.can_interact_with_node(player, pos) and (can_dig and can_dig(pos, player) == true)
|
return default_can_interact_with_node(player, pos) and (can_dig and can_dig(pos, player) == true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def.on_key_use = function(pos, player)
|
def.on_key_use = function(pos, player)
|
||||||
|
|
|
@ -1,213 +0,0 @@
|
||||||
homedecor.materials = {
|
|
||||||
dirt = "default:dirt",
|
|
||||||
sand = "default:sand",
|
|
||||||
gravel = "default:gravel",
|
|
||||||
copper_ingot = "default:copper_ingot",
|
|
||||||
steel_ingot = "default:steel_ingot",
|
|
||||||
gold_ingot = "default:gold_ingot",
|
|
||||||
tin_ingot = "default:tin_ingot",
|
|
||||||
mese_crystal_fragment = "default:mese_crystal_fragment",
|
|
||||||
torch = "default:torch",
|
|
||||||
diamond = "default:diamond",
|
|
||||||
clay_lump = "default:clay_lump",
|
|
||||||
water_bucket = "bucket:bucket_water",
|
|
||||||
empty_bucket = "bucket:bucket_empty",
|
|
||||||
dye_dark_grey = "dye:dark_grey",
|
|
||||||
dye_black = "dye:black",
|
|
||||||
dye_white = "dye:white",
|
|
||||||
dye_green = "dye:green",
|
|
||||||
dye_red = "dye:red",
|
|
||||||
dye_yellow = "dye:yellow",
|
|
||||||
dye_brown = "dye:brown",
|
|
||||||
dye_blue = "dye:blue",
|
|
||||||
dye_violet = "dye:violet",
|
|
||||||
dye_grey = "dye:grey",
|
|
||||||
dye_dark_green = "dye:dark_green",
|
|
||||||
dye_orange = "dye:orange",
|
|
||||||
dye_pink = "dye:pink",
|
|
||||||
silicon = "mesecons_materials:silicon",
|
|
||||||
string = "farming:string",
|
|
||||||
paper = "default:paper",
|
|
||||||
book = "default:book",
|
|
||||||
iron_lump = "default:iron_lump",
|
|
||||||
wool_grey = "wool:grey",
|
|
||||||
wool_green = "wool:green",
|
|
||||||
wool_dark_green = "wool:dark_green",
|
|
||||||
wool_brown = "wool:brown",
|
|
||||||
wool_black = "wool:black",
|
|
||||||
wool_white = "wool:white",
|
|
||||||
slab_stone = "stairs:slab_stone",
|
|
||||||
slab_wood = "stairs:slab_wood",
|
|
||||||
glass_block = "default:glass",
|
|
||||||
glass_bottle = "vessels:glass_bottle",
|
|
||||||
coal_lump = "default:coal_lump",
|
|
||||||
stone = "default:stone",
|
|
||||||
cobble = "default:cobble",
|
|
||||||
brick = "default:brick",
|
|
||||||
obsidian_glass = "default:obsidian_glass",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
homedecor.materials.silver_ingot = "moreores:silver_ingot"
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_core") then
|
|
||||||
homedecor.materials = {
|
|
||||||
dirt = "mcl_core:dirt",
|
|
||||||
sand = "mcl_core:sand",
|
|
||||||
gravel = "mcl_core:gravel",
|
|
||||||
copper_ingot = "mcl_copper:copper_ingot",
|
|
||||||
steel_ingot = "mcl_core:iron_ingot",
|
|
||||||
gold_ingot = "mcl_core:gold_ingot",
|
|
||||||
tin_ingot = "mcl_core:iron_ingot",
|
|
||||||
mese_crystal_fragment = "mcl_core:iron_ingot",
|
|
||||||
torch = "mcl_torches:torch",
|
|
||||||
diamond = "mcl_core:diamond",
|
|
||||||
clay_lump = "default:clay_lump",
|
|
||||||
water_bucket = "mcl_buckets:bucket:bucket_water",
|
|
||||||
empty_bucket = "mcl_buckets:bucket_empty",
|
|
||||||
dye_dark_grey = "mcl_dyes:dark_grey",
|
|
||||||
dye_black = "mcl_dyes:black",
|
|
||||||
dye_white = "mcl_dyes:white",
|
|
||||||
dye_green = "mcl_dyes:green",
|
|
||||||
dye_red = "mcl_dyes:red",
|
|
||||||
dye_yellow = "mcl_dyes:yellow",
|
|
||||||
dye_brown = "mcl_dyes:brown",
|
|
||||||
dye_blue = "mcl_dyes:blue",
|
|
||||||
dye_violet = "mcl_dyes:violet",
|
|
||||||
dye_grey = "mcl_dyes:grey",
|
|
||||||
dye_dark_green = "mcl_dyes:dark_green",
|
|
||||||
dye_orange = "mcl_dyes:orange",
|
|
||||||
dye_pink = "mcl_dyes:pink",
|
|
||||||
silicon = "mcl_core:iron_ingot",
|
|
||||||
string = "mcl_mobitems:string",
|
|
||||||
paper = "mcl_core:paper",
|
|
||||||
book = "mcl_core:book",
|
|
||||||
iron_lump = "mcl_core:stone_with_iron",
|
|
||||||
wool_grey = "mcl_wool:grey",
|
|
||||||
wool_green = "mcl_wool:green",
|
|
||||||
wool_dark_green = "mcl_wool:dark_green",
|
|
||||||
wool_brown = "mcl_wool:brown",
|
|
||||||
wool_black = "mcl_wool:black",
|
|
||||||
wool_white = "mcl_wool:white",
|
|
||||||
slab_stone = "mcl_stairs:slab_stone",
|
|
||||||
slab_wood = "mcl_stairs:slab_wood",
|
|
||||||
glass_block = "mcl_core:glass",
|
|
||||||
glass_bottle = "mcl_core:glass_bottle",
|
|
||||||
coal_lump = "mcl_core:coal",
|
|
||||||
stone = "mcl_core:stone",
|
|
||||||
cobble = "mcl_core:cobble",
|
|
||||||
brick = "mcl_core:brick",
|
|
||||||
}
|
|
||||||
elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
|
||||||
homedecor.materials = {
|
|
||||||
dirt = "fl_topsoil:dirt",
|
|
||||||
sand = "fl_stone:sand",
|
|
||||||
gravel = "fl_topsoil:gravel",
|
|
||||||
steel_ingot = "fl_ores:iron_ingot",
|
|
||||||
gold_ingot = "fl_ores:gold_ingot",
|
|
||||||
mese_crystal_fragment = "fl_ores:iron_ingot",
|
|
||||||
torch = "fl_light_sources:torch",
|
|
||||||
diamond = "fl_ores:diamond",
|
|
||||||
clay_lump = "fl_bricks:clay_lump",
|
|
||||||
water_bucket = "fl_bucket:bucket_water",
|
|
||||||
empty_bucket = "fl_bucket:bucket",
|
|
||||||
dye_dark_grey = "fl_dyes:dark_grey_dye",
|
|
||||||
dye_black = "fl_dyes:black_dye",
|
|
||||||
dye_white = "fl_dyes:white_dye",
|
|
||||||
dye_green = "fl_dyes:green_dye",
|
|
||||||
dye_red = "fl_dyes:red_dye",
|
|
||||||
dye_yellow = "fl_dyes:yellow_dye",
|
|
||||||
dye_brown = "fl_dyes:brown_dye",
|
|
||||||
dye_blue = "fl_dyes:blue_dye",
|
|
||||||
dye_violet = "fl_dyes:violet_dye",
|
|
||||||
dye_grey = "fl_dyes:grey_dye",
|
|
||||||
dye_dark_green = "fl_dyes:dark_green_dye",
|
|
||||||
dye_orange = "fl_dyes:orange_dye",
|
|
||||||
dye_pink = "fl_dyes:pink_dye",
|
|
||||||
copper_ingot = "fl_ores:copper_ingot",
|
|
||||||
tin_ingot = "fl_ores:tin_ingot",
|
|
||||||
silver_ingot = "fl_ores:iron_ingot",
|
|
||||||
silicon = "mesecons_materials:silicon",
|
|
||||||
string = "fl_plantlife:oxeye_daisy",
|
|
||||||
paper = "basic_materials:plastic_sheet",
|
|
||||||
iron_lump = "fl_ores:iron_ore",
|
|
||||||
wool_grey = "",
|
|
||||||
wool_green = "",
|
|
||||||
wool_dark_green = "",
|
|
||||||
wool_brown = "",
|
|
||||||
wool_black = "",
|
|
||||||
wool_white = "",
|
|
||||||
slab_stone = "fl_stone:stone_slab",
|
|
||||||
slab_wood = "fl_trees:apple_plank_slab",
|
|
||||||
glass_block = "fl_glass:framed_glass",
|
|
||||||
glass_bottle = "fl_bottles:bottle",
|
|
||||||
coal_lump = "fl_ores:coal_ore",
|
|
||||||
stone = "fl_stone:stone",
|
|
||||||
cobble = "fl_stone:stone_rubble",
|
|
||||||
brick = "",
|
|
||||||
}
|
|
||||||
elseif minetest.get_modpath("hades_core") then
|
|
||||||
homedecor.materials = {
|
|
||||||
sand = "hades_core:fertile_sand",
|
|
||||||
gravel = "hades_core:gravel",
|
|
||||||
copper_ingot = "hades_core:copper_ingot",
|
|
||||||
steel_ingot = "hades_core:steel_ingot",
|
|
||||||
gold_ingot = "hades_core:gold_ingot",
|
|
||||||
tin_ingot = "hades_core:tin_ingot",
|
|
||||||
silver_ingot = "--unknown--",
|
|
||||||
mese_crystal_fragment = "hades_core:mese_crystal_fragment",
|
|
||||||
torch = "hades_torches:torch",
|
|
||||||
diamond = "hades_core:diamond",
|
|
||||||
clay_lump = "hades_core:clay_lump",
|
|
||||||
clay_brick = "hades_core:clay_brick",
|
|
||||||
|
|
||||||
--[[
|
|
||||||
Since hades doesnt have buckets or water for the user,
|
|
||||||
using dirt from near water to pull the water out
|
|
||||||
]]
|
|
||||||
water_bucket = "hades_core:dirt",
|
|
||||||
empty_bucket = "hades_core:fertile_sand",
|
|
||||||
dye_dark_grey = "dye:dark_grey",
|
|
||||||
dye_black = "dye:black",
|
|
||||||
dye_white = "dye:white",
|
|
||||||
dye_green = "dye:green",
|
|
||||||
dye_red = "dye:red",
|
|
||||||
dye_yellow = "dye:yellow",
|
|
||||||
dye_brown = "dye:brown",
|
|
||||||
dye_blue = "dye:blue",
|
|
||||||
dye_violet = "dye:violet",
|
|
||||||
dye_grey = "dye:grey",
|
|
||||||
dye_dark_green = "dye:dark_green",
|
|
||||||
dye_orange = "dye:orange",
|
|
||||||
dye_pink = "dye:pink",
|
|
||||||
silicon = "hades_materials:silicon",
|
|
||||||
string = "hades_farming:string",
|
|
||||||
paper = "hades_core:paper",
|
|
||||||
book = "hades_core:book",
|
|
||||||
iron_lump = "hades_core:iron_lump",
|
|
||||||
wool_grey = "wool:grey",
|
|
||||||
wool_green = "wool:green",
|
|
||||||
wool_dark_green = "wool:dark_green",
|
|
||||||
wool_brown = "wool:brown",
|
|
||||||
wool_black = "wool:black",
|
|
||||||
wool_white = "wool:white",
|
|
||||||
slab_stone = "stairs:slab_stone",
|
|
||||||
slab_wood = "stairs:slab_wood",
|
|
||||||
glass_block = "hades_core:glass",
|
|
||||||
glass_bottle = "vessels:glass_bottle",
|
|
||||||
obsidian_glass = "hades_core:obsidian_glass",
|
|
||||||
coal_lump = "hades_core:coal_lump",
|
|
||||||
stone = "hades_core:stone",
|
|
||||||
cobble = "hades_core:cobble",
|
|
||||||
brick = "hades_core:brick"
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("hades_bucket") then
|
|
||||||
homedecor.materials["water_bucket"] = "hades_bucket:bucket_water"
|
|
||||||
homedecor.materials["empty_bucket"] = "hades_bucket:bucket_empty"
|
|
||||||
end
|
|
||||||
if minetest.get_modpath("hades_extraores") then
|
|
||||||
homedecor.materials["silver_ingot"] = "hades_extraores:silver_ingot"
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = homedecor_common
|
name = homedecor_common
|
||||||
description = Homedecor mod: common
|
description = Homedecor mod: common
|
||||||
depends = basic_materials, unifieddyes
|
depends = basic_materials, unifieddyes, xcompat
|
||||||
optional_depends = screwdriver, hopper, default, creative, sound_api, fl_stone, fl_mapgen, i3, mcl_core, mcl_mapgen_core, void_essential, mapgen
|
optional_depends = screwdriver, hopper, default, creative, sound_api, fl_stone, fl_mapgen, i3, mcl_core, mcl_mapgen_core, void_essential, mapgen
|
||||||
|
|
|
@ -19,6 +19,8 @@ function homedecor.register(name, original_def)
|
||||||
def._mcl_hardness=1.6
|
def._mcl_hardness=1.6
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def.is_ground_content = def.is_ground_content == true
|
||||||
|
|
||||||
def.drawtype = def.drawtype
|
def.drawtype = def.drawtype
|
||||||
or (def.mesh and "mesh")
|
or (def.mesh and "mesh")
|
||||||
or (def.node_box and "nodebox")
|
or (def.node_box and "nodebox")
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
function homedecor.sit(pos, node, clicker)
|
|
||||||
return -- delete it when the engine is stabler for the player's physics
|
|
||||||
--[[
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
local param2 = node.param2
|
|
||||||
local name = clicker:get_player_name()
|
|
||||||
|
|
||||||
if name == meta:get_string("is_sit") then
|
|
||||||
meta:set_string("is_sit", "")
|
|
||||||
pos.y = pos.y-0.5
|
|
||||||
clicker:setpos(pos)
|
|
||||||
clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
|
|
||||||
clicker:set_physics_override(1, 1, 1)
|
|
||||||
default.player_attached[name] = false
|
|
||||||
default.player_set_animation(clicker, "stand", 30)
|
|
||||||
else
|
|
||||||
meta:set_string("is_sit", clicker:get_player_name())
|
|
||||||
clicker:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0})
|
|
||||||
clicker:set_physics_override(0, 0, 0)
|
|
||||||
clicker:setpos(pos)
|
|
||||||
default.player_attached[name] = true
|
|
||||||
default.player_set_animation(clicker, "sit", 30)
|
|
||||||
if param2 == 0 then
|
|
||||||
clicker:set_look_yaw(3.15)
|
|
||||||
elseif param2 == 1 then
|
|
||||||
clicker:set_look_yaw(7.9)
|
|
||||||
elseif param2 == 2 then
|
|
||||||
clicker:set_look_yaw(6.28)
|
|
||||||
elseif param2 == 3 then
|
|
||||||
clicker:set_look_yaw(4.75)
|
|
||||||
else return end
|
|
||||||
end
|
|
||||||
--]]
|
|
||||||
end
|
|
|
@ -1,34 +0,0 @@
|
||||||
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
|
|
||||||
homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
|
|
||||||
homedecor.white_wood = "homedecor_generic_wood_plain.png"
|
|
||||||
homedecor.dark_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff39240f }
|
|
||||||
homedecor.lux_wood = { name = "homedecor_generic_wood_luxury.png", color = 0xff643f23 }
|
|
||||||
|
|
||||||
homedecor.textures = {
|
|
||||||
glass =
|
|
||||||
"[combine:16x16:" ..
|
|
||||||
"0,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,0=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"0,15=\\[combine\\:16x1\\^[noalpha\\^[colorize\\:#ffffff:" ..
|
|
||||||
"15,0=\\[combine\\:1x16\\^[noalpha\\^[colorize\\:#ffffff",
|
|
||||||
default_wood = "[combine:16x16^[noalpha^[colorize:#654321",
|
|
||||||
default_junglewood = "[combine:16x16^[noalpha^[colorize:#563d2d",
|
|
||||||
water = "[combine:16x16^[noalpha^[colorize:#00008b",
|
|
||||||
wool_white = "[combine:16x16^[noalpha^[colorize:#ffffff",
|
|
||||||
wool_black = "[combine:16x16^[noalpha^[colorize:#000000",
|
|
||||||
wool_grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
|
||||||
wool_dark_grey = "[combine:16x16^[noalpha^[colorize:#313b3c",
|
|
||||||
}
|
|
||||||
|
|
||||||
if minetest.get_modpath("default") then
|
|
||||||
homedecor.textures = {
|
|
||||||
glass = "default_glass.png",
|
|
||||||
default_wood = "default_wood.png",
|
|
||||||
default_junglewood = "default_junglewood.png",
|
|
||||||
water = "default_water.png",
|
|
||||||
wool_white = "wool_white.png",
|
|
||||||
wool_black = "wool_black.png",
|
|
||||||
wool_grey = "wool_grey.png",
|
|
||||||
wool_dark_grey = "wool_dark_grey.png",
|
|
||||||
}
|
|
||||||
end
|
|
Binary file not shown.
Before Width: | Height: | Size: 82 B |
8
homedecor_common/xcompat.lua
Normal file
8
homedecor_common/xcompat.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
|
||||||
|
homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
|
||||||
|
homedecor.white_wood = "homedecor_generic_wood_plain.png"
|
||||||
|
homedecor.dark_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff39240f }
|
||||||
|
homedecor.lux_wood = { name = "homedecor_generic_wood_luxury.png", color = 0xff643f23 }
|
||||||
|
|
||||||
|
homedecor.materials = xcompat.materials
|
||||||
|
homedecor.textures = xcompat.textures
|
|
@ -231,10 +231,10 @@ for i, g in ipairs(gate_list) do
|
||||||
|
|
||||||
if gate == "picket" or gate == "picket_white" then
|
if gate == "picket" or gate == "picket_white" then
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_gate_"..gate.."_back.png",
|
"homedecor_gate_"..gate.."_back.png",
|
||||||
"homedecor_gate_"..gate.."_front.png"
|
"homedecor_gate_"..gate.."_front.png"
|
||||||
}
|
}
|
||||||
|
@ -247,6 +247,7 @@ for i, g in ipairs(gate_list) do
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {snappy=3, axey=5},
|
groups = {snappy=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
|
|
@ -43,7 +43,7 @@ homedecor.register("barbecue", {
|
||||||
|
|
||||||
minetest.register_alias("homedecor:barbecue_meat", "air")
|
minetest.register_alias("homedecor:barbecue_meat", "air")
|
||||||
|
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
|
|
||||||
homedecor.register("doghouse", {
|
homedecor.register("doghouse", {
|
||||||
mesh = "homedecor_doghouse.obj",
|
mesh = "homedecor_doghouse.obj",
|
||||||
|
@ -288,8 +288,7 @@ homedecor.register("swing_rope", {
|
||||||
selection_box = homedecor.nodebox.null
|
selection_box = homedecor.nodebox.null
|
||||||
})
|
})
|
||||||
|
|
||||||
local water_tex = "default_water.png"
|
local water_tex = homedecor.textures.water.tile
|
||||||
if not minetest.get_modpath("default") then water_tex = "[combine:16x16^[noalpha^[colorize:#00008b" end
|
|
||||||
local cobble_tex = minetest.registered_nodes["mapgen_stone"].tiles[1]
|
local cobble_tex = minetest.registered_nodes["mapgen_stone"].tiles[1]
|
||||||
local stone_drop = minetest.registered_nodes["mapgen_stone"].drop
|
local stone_drop = minetest.registered_nodes["mapgen_stone"].drop
|
||||||
if stone_drop and type(stone_drop) == "string" then
|
if stone_drop and type(stone_drop) == "string" then
|
||||||
|
|
|
@ -49,8 +49,8 @@ end
|
||||||
homedecor.register("fence_picket", {
|
homedecor.register("fence_picket", {
|
||||||
description = S("Unpainted Picket Fence"),
|
description = S("Unpainted Picket Fence"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_fence_picket.png",
|
"homedecor_fence_picket.png",
|
||||||
"homedecor_fence_picket.png",
|
"homedecor_fence_picket.png",
|
||||||
"homedecor_fence_picket_backside.png",
|
"homedecor_fence_picket_backside.png",
|
||||||
|
@ -85,8 +85,8 @@ homedecor.register("fence_picket", {
|
||||||
homedecor.register("fence_picket_corner", {
|
homedecor.register("fence_picket_corner", {
|
||||||
description = S("Unpainted Picket Fence Corner"),
|
description = S("Unpainted Picket Fence Corner"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_fence_picket.png",
|
"homedecor_fence_picket.png",
|
||||||
"homedecor_fence_picket_backside.png",
|
"homedecor_fence_picket_backside.png",
|
||||||
"homedecor_fence_picket_backside.png",
|
"homedecor_fence_picket_backside.png",
|
||||||
|
@ -113,8 +113,8 @@ homedecor.register("fence_picket_corner", {
|
||||||
homedecor.register("fence_picket_white", {
|
homedecor.register("fence_picket_white", {
|
||||||
description = S("White Picket Fence"),
|
description = S("White Picket Fence"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_fence_picket_white.png",
|
"homedecor_fence_picket_white.png",
|
||||||
"homedecor_fence_picket_white.png",
|
"homedecor_fence_picket_white.png",
|
||||||
"homedecor_fence_picket_white_backside.png",
|
"homedecor_fence_picket_white_backside.png",
|
||||||
|
@ -149,8 +149,8 @@ homedecor.register("fence_picket_white", {
|
||||||
homedecor.register("fence_picket_corner_white", {
|
homedecor.register("fence_picket_corner_white", {
|
||||||
description = S("White Picket Fence Corner"),
|
description = S("White Picket Fence Corner"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_blanktile.png",
|
"blank.png",
|
||||||
"homedecor_fence_picket_white.png",
|
"homedecor_fence_picket_white.png",
|
||||||
"homedecor_fence_picket_white_backside.png",
|
"homedecor_fence_picket_white_backside.png",
|
||||||
"homedecor_fence_picket_white_backside.png",
|
"homedecor_fence_picket_white_backside.png",
|
||||||
|
|
|
@ -5,7 +5,7 @@ local ob_cbox = {
|
||||||
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
||||||
}
|
}
|
||||||
|
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
|
|
||||||
homedecor.register("openframe_bookshelf", {
|
homedecor.register("openframe_bookshelf", {
|
||||||
description = S("Bookshelf (open-frame)"),
|
description = S("Bookshelf (open-frame)"),
|
||||||
|
|
|
@ -145,7 +145,7 @@ homedecor.register("dishwasher_"..m, {
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
local cabinet_sides = "("..wood_tex.."^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
local cabinet_sides = "("..wood_tex.."^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
||||||
local cabinet_sides_colored = "(homedecor_generic_wood_plain.png^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
local cabinet_sides_colored = "(homedecor_generic_wood_plain.png^[transformR90)^homedecor_kitchen_cabinet_bevel.png"
|
||||||
|
|
||||||
|
|
|
@ -80,8 +80,7 @@ local ib_cbox = {
|
||||||
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
|
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
|
||||||
}
|
}
|
||||||
|
|
||||||
local wool_tex = "wool_grey.png"
|
local wool_tex = homedecor.textures.wool.grey
|
||||||
if not minetest.get_modpath("wool") then wool_tex = "[combine:16x16^[noalpha^[colorize:#3A3B3C" end
|
|
||||||
|
|
||||||
homedecor.register("ironing_board", {
|
homedecor.register("ironing_board", {
|
||||||
description = S("Ironing board"),
|
description = S("Ironing board"),
|
||||||
|
|
|
@ -276,6 +276,7 @@ for brightness_level = 0, 14 do
|
||||||
},
|
},
|
||||||
node_box = glowlight_nodebox.half,
|
node_box = glowlight_nodebox.half,
|
||||||
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
light_source = brightness_level,
|
light_source = brightness_level,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -345,6 +346,7 @@ for brightness_level = 0, 14 do
|
||||||
},
|
},
|
||||||
node_box = glowlight_nodebox.quarter,
|
node_box = glowlight_nodebox.quarter,
|
||||||
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
light_source = brightness_level,
|
light_source = brightness_level,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -415,6 +417,7 @@ for brightness_level = 0, 14 do
|
||||||
},
|
},
|
||||||
node_box = glowlight_nodebox.small_cube,
|
node_box = glowlight_nodebox.small_cube,
|
||||||
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory = nici, dig_glass=1, axey=5 },
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
light_source = brightness_level,
|
light_source = brightness_level,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -449,7 +452,7 @@ for brightness_level = 0, 14 do
|
||||||
lighttex = "homedecor_plasma_lamp_off.png"
|
lighttex = "homedecor_plasma_lamp_off.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
local gtex=minetest.get_modpath("default") and "default_gold_block.png" or "[combine:16x16^[noalpha^[colorize:#FFD700"
|
local gtex=homedecor.textures.metal.gold.block
|
||||||
homedecor.register("plasma_lamp_"..brightness_level, {
|
homedecor.register("plasma_lamp_"..brightness_level, {
|
||||||
description = S("Plasma Lamp/Light"),
|
description = S("Plasma Lamp/Light"),
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
|
@ -700,8 +703,7 @@ for brightness_level = 0, 14 do
|
||||||
fixed = { -0.25, -0.5, -0.25, 0.25, 1.5, 0.25 }
|
fixed = { -0.25, -0.5, -0.25, 0.25, 1.5, 0.25 }
|
||||||
}
|
}
|
||||||
|
|
||||||
local wool_brightened=(minetest.get_modpath("wool") and "wool_grey.png" or "[combine:16x16^[noalpha6[colorize:#A9A9A9")
|
local wool_brightened=homedecor.textures.wool.grey .. "^[colorize:#ffffff:"..(brightness_level * 15)
|
||||||
.. "^[colorize:#ffffff:"..(brightness_level * 15)
|
|
||||||
|
|
||||||
homedecor.register("table_lamp_"..brightness_level, {
|
homedecor.register("table_lamp_"..brightness_level, {
|
||||||
description = S("Table Lamp/Light"),
|
description = S("Table Lamp/Light"),
|
||||||
|
@ -793,7 +795,7 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
|
||||||
local gen_ls_tex_yellow = "homedecor_generic_light_source_off.png"
|
local gen_ls_tex_yellow = "homedecor_generic_light_source_off.png"
|
||||||
if onflag then gen_ls_tex_yellow = "homedecor_generic_light_source_yellow.png" end
|
if onflag then gen_ls_tex_yellow = "homedecor_generic_light_source_yellow.png" end
|
||||||
|
|
||||||
local lighttex = "homedecor_blanktile.png"
|
local lighttex = "blank.png"
|
||||||
if onflag then
|
if onflag then
|
||||||
lighttex = {
|
lighttex = {
|
||||||
name = "homedecor_plasma_ball_streamers.png",
|
name = "homedecor_plasma_ball_streamers.png",
|
||||||
|
@ -869,6 +871,7 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
|
||||||
"group:mesecon_conductor_craftable"
|
"group:mesecon_conductor_craftable"
|
||||||
},
|
},
|
||||||
groups = {cracky=3, oddly_breakable_by_hand=3, not_in_creative_inventory = nici_m, axey=5},
|
groups = {cracky=3, oddly_breakable_by_hand=3, not_in_creative_inventory = nici_m, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -918,6 +921,7 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
|
||||||
"group:mesecon_conductor_craftable"
|
"group:mesecon_conductor_craftable"
|
||||||
},
|
},
|
||||||
groups = {cracky=3, oddly_breakable_by_hand=3, not_in_creative_inventory = nici_m, axey=5},
|
groups = {cracky=3, oddly_breakable_by_hand=3, not_in_creative_inventory = nici_m, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -1133,6 +1137,7 @@ minetest.register_node(":homedecor:chain_steel_top", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
inventory_image = "basic_materials_chain_steel_inv.png",
|
inventory_image = "basic_materials_chain_steel_inv.png",
|
||||||
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = topchains_sbox,
|
selection_box = topchains_sbox,
|
||||||
})
|
})
|
||||||
|
@ -1148,6 +1153,7 @@ minetest.register_node(":homedecor:chain_brass_top", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
inventory_image = "basic_materials_chain_brass_inv.png",
|
inventory_image = "basic_materials_chain_brass_inv.png",
|
||||||
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = topchains_sbox,
|
selection_box = topchains_sbox,
|
||||||
})
|
})
|
||||||
|
@ -1176,6 +1182,7 @@ minetest.register_node(":homedecor:chandelier_steel", {
|
||||||
mesh = "homedecor_chandelier.obj",
|
mesh = "homedecor_chandelier.obj",
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -1206,6 +1213,7 @@ minetest.register_node(":homedecor:chandelier_brass", {
|
||||||
mesh = "homedecor_chandelier.obj",
|
mesh = "homedecor_chandelier.obj",
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
groups = {cracky=3, dig_glass=1, pickaxey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
@ -1413,7 +1421,71 @@ minetest.register_lbm({
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- aliases
|
||||||
|
|
||||||
|
minetest.register_alias("chains:chain_top", "homedecor:chain_steel_top")
|
||||||
|
minetest.register_alias("chains:chain_top_brass", "homedecor:chain_brass_top")
|
||||||
|
|
||||||
|
minetest.register_alias("chains:chandelier", "homedecor:chandelier_steel")
|
||||||
|
minetest.register_alias("chains:chandelier_steel", "homedecor:chandelier_steel")
|
||||||
|
minetest.register_alias("chains:chandelier_brass", "homedecor:chandelier_brass")
|
||||||
|
|
||||||
|
minetest.register_alias("homedecor:glowlight_half", "homedecor:glowlight_half_14")
|
||||||
|
minetest.register_alias("homedecor:glowlight_quarter", "homedecor:glowlight_quarter_14")
|
||||||
|
minetest.register_alias("homedecor:glowlight_small_cube", "homedecor:glowlight_small_cube_14")
|
||||||
|
minetest.register_alias("homedecor:plasma_lamp", "homedecor:plasma_lamp_14")
|
||||||
|
minetest.register_alias("homedecor:ground_lantern", "homedecor:ground_lantern_14")
|
||||||
|
minetest.register_alias("homedecor:hanging_lantern", "homedecor:hanging_lantern_14")
|
||||||
|
minetest.register_alias("homedecor:ceiling_lantern", "homedecor:ceiling_lantern_14")
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large", "homedecor:lattice_lantern_large_14")
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_small", "homedecor:lattice_lantern_small_14")
|
||||||
|
minetest.register_alias("homedecor:desk_lamp", "homedecor:desk_lamp_14")
|
||||||
|
minetest.register_alias("homedecor:ceiling_lamp", "homedecor:ceiling_lamp_14")
|
||||||
|
minetest.register_alias("homedecor:table_lamp", "homedecor:table_lamp_14")
|
||||||
|
minetest.register_alias("homedecor:standing_lamp", "homedecor:standing_lamp_14")
|
||||||
|
minetest.register_alias("3dforniture:table_lamp", "homedecor:table_lamp_14")
|
||||||
|
|
||||||
|
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
||||||
|
minetest.register_alias("torch_wall", "homedecor:torch_wall")
|
||||||
|
|
||||||
|
minetest.register_alias("homedecor:plasma_ball", "homedecor:plasma_ball_on")
|
||||||
|
minetest.register_alias("homedecor:wall_lamp", "homedecor:wall_lamp_on")
|
||||||
|
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_floor_0", "homedecor:rope_light_on_floor_off")
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_floor_14", "homedecor:rope_light_on_floor_on")
|
||||||
|
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_ceiling_0", "homedecor:rope_light_on_ceiling_off")
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_ceiling_14", "homedecor:rope_light_on_ceiling_on")
|
||||||
|
|
||||||
|
for name, level in pairs(word_to_bright) do
|
||||||
|
minetest.register_alias("homedecor:glowlight_half_"..name, "homedecor:glowlight_half_"..level)
|
||||||
|
minetest.register_alias("homedecor:glowlight_quarter_"..name, "homedecor:glowlight_quarter_"..level)
|
||||||
|
minetest.register_alias("homedecor:glowlight_small_cube_"..name, "homedecor:glowlight_small_cube_"..level)
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_floor_"..name, "homedecor:rope_light_on_floor_"..level)
|
||||||
|
minetest.register_alias("homedecor:rope_light_on_ceiling_"..name, "homedecor:rope_light_on_ceiling_"..level)
|
||||||
|
minetest.register_alias("homedecor:plasma_lamp_"..name, "homedecor:plasma_lamp_"..level)
|
||||||
|
minetest.register_alias("homedecor:plasma_ball_"..name, "homedecor:plasma_ball_"..level)
|
||||||
|
minetest.register_alias("homedecor:ground_lantern_"..name, "homedecor:ground_lantern_"..level)
|
||||||
|
minetest.register_alias("homedecor:hanging_lantern_"..name, "homedecor:hanging_lantern_"..level)
|
||||||
|
minetest.register_alias("homedecor:ceiling_lantern_"..name, "homedecor:ceiling_lantern_"..level)
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large_"..name, "homedecor:lattice_lantern_large_"..level)
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_small_"..name, "homedecor:lattice_lantern_small_"..level)
|
||||||
|
minetest.register_alias("homedecor:desk_lamp_"..name, "homedecor:desk_lamp_"..level)
|
||||||
|
minetest.register_alias("homedecor:ceiling_lamp_"..name, "homedecor:ceiling_lamp_"..level)
|
||||||
|
minetest.register_alias("homedecor:table_lamp_"..name, "homedecor:table_lamp_"..level)
|
||||||
|
minetest.register_alias("homedecor:standing_lamp_"..name, "homedecor:standing_lamp_"..level)
|
||||||
|
minetest.register_alias("3dforniture:table_lamp_"..name, "homedecor:table_lamp_"..level)
|
||||||
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("darkage") then
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp")
|
||||||
|
for n = 0, 14 do
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large_"..n, "darkage:lamp")
|
||||||
|
end
|
||||||
|
for name, level in pairs(word_to_bright) do
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large_"..name, "darkage:lamp")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- crafting
|
-- crafting
|
||||||
|
|
||||||
|
@ -1587,6 +1659,17 @@ end
|
||||||
|
|
||||||
-- glowlights
|
-- glowlights
|
||||||
|
|
||||||
|
unifieddyes.register_color_craft({
|
||||||
|
output = "homedecor:glowlight_half",
|
||||||
|
palette = "wallmounted",
|
||||||
|
type = "shapeless",
|
||||||
|
neutral_node = "homedecor:glowlight_half",
|
||||||
|
recipe = {
|
||||||
|
"NEUTRAL_NODE",
|
||||||
|
"MAIN_DYE"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:glowlight_half 6",
|
output = "homedecor:glowlight_half 6",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -1619,10 +1702,10 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
unifieddyes.register_color_craft({
|
||||||
output = "homedecor:glowlight_half",
|
output = "homedecor:glowlight_quarter",
|
||||||
palette = "wallmounted",
|
palette = "wallmounted",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
neutral_node = "homedecor:glowlight_half",
|
neutral_node = "homedecor:glowlight_quarter",
|
||||||
recipe = {
|
recipe = {
|
||||||
"NEUTRAL_NODE",
|
"NEUTRAL_NODE",
|
||||||
"MAIN_DYE"
|
"MAIN_DYE"
|
||||||
|
@ -1637,10 +1720,10 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
unifieddyes.register_color_craft({
|
||||||
output = "homedecor:glowlight_quarter",
|
output = "homedecor:glowlight_small_cube",
|
||||||
palette = "wallmounted",
|
palette = "wallmounted",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
neutral_node = "homedecor:glowlight_quarter",
|
neutral_node = "homedecor:glowlight_small_cube",
|
||||||
recipe = {
|
recipe = {
|
||||||
"NEUTRAL_NODE",
|
"NEUTRAL_NODE",
|
||||||
"MAIN_DYE"
|
"MAIN_DYE"
|
||||||
|
@ -1671,17 +1754,6 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:glowlight_small_cube",
|
|
||||||
palette = "wallmounted",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:glowlight_small_cube",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -1702,16 +1774,6 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "homedecor:desk_lamp 2",
|
|
||||||
recipe = {
|
|
||||||
{ "", "default:steel_ingot", "homedecor:glowlight_small_cube" },
|
|
||||||
{ "", "basic_materials:steel_strip", "" },
|
|
||||||
{ "basic_materials:plastic_sheet", "basic_materials:copper_wire", "basic_materials:plastic_sheet" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
unifieddyes.register_color_craft({
|
||||||
output = "homedecor:desk_lamp",
|
output = "homedecor:desk_lamp",
|
||||||
palette = "wallmounted",
|
palette = "wallmounted",
|
||||||
|
@ -1723,6 +1785,15 @@ unifieddyes.register_color_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:desk_lamp 2",
|
||||||
|
recipe = {
|
||||||
|
{ "", "default:steel_ingot", "homedecor:glowlight_small_cube" },
|
||||||
|
{ "", "basic_materials:steel_strip", "" },
|
||||||
|
{ "basic_materials:plastic_sheet", "basic_materials:copper_wire", "basic_materials:plastic_sheet" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:hanging_lantern 2",
|
output = "homedecor:hanging_lantern 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -1783,6 +1854,17 @@ minetest.register_craft({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
unifieddyes.register_color_craft({
|
||||||
|
output = "homedecor:standing_lamp_hi",
|
||||||
|
palette = "extended",
|
||||||
|
type = "shapeless",
|
||||||
|
neutral_node = "homedecor:standing_lamp_hi",
|
||||||
|
recipe = {
|
||||||
|
"NEUTRAL_NODE",
|
||||||
|
"MAIN_DYE"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:standing_lamp_hi",
|
output = "homedecor:standing_lamp_hi",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -1793,10 +1875,10 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
unifieddyes.register_color_craft({
|
||||||
output = "homedecor:standing_lamp_hi",
|
output = "homedecor:table_lamp_hi",
|
||||||
palette = "extended",
|
palette = "extended",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
neutral_node = "homedecor:standing_lamp_hi",
|
neutral_node = "homedecor:table_lamp_hi",
|
||||||
recipe = {
|
recipe = {
|
||||||
"NEUTRAL_NODE",
|
"NEUTRAL_NODE",
|
||||||
"MAIN_DYE"
|
"MAIN_DYE"
|
||||||
|
@ -1845,18 +1927,6 @@ minetest.register_craft({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
unifieddyes.register_color_craft({
|
|
||||||
output = "homedecor:table_lamp_hi",
|
|
||||||
palette = "extended",
|
|
||||||
type = "shapeless",
|
|
||||||
neutral_node = "homedecor:table_lamp_hi",
|
|
||||||
recipe = {
|
|
||||||
"NEUTRAL_NODE",
|
|
||||||
"MAIN_DYE"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "homedecor:torch_wall 10",
|
output = "homedecor:torch_wall 10",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -1864,70 +1934,5 @@ minetest.register_craft({
|
||||||
{ "default:steel_ingot" },
|
{ "default:steel_ingot" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- aliases
|
|
||||||
|
|
||||||
minetest.register_alias("chains:chain_top", "homedecor:chain_steel_top")
|
|
||||||
minetest.register_alias("chains:chain_top_brass", "homedecor:chain_brass_top")
|
|
||||||
|
|
||||||
minetest.register_alias("chains:chandelier", "homedecor:chandelier_steel")
|
|
||||||
minetest.register_alias("chains:chandelier_steel", "homedecor:chandelier_steel")
|
|
||||||
minetest.register_alias("chains:chandelier_brass", "homedecor:chandelier_brass")
|
|
||||||
|
|
||||||
minetest.register_alias("homedecor:glowlight_half", "homedecor:glowlight_half_14")
|
|
||||||
minetest.register_alias("homedecor:glowlight_quarter", "homedecor:glowlight_quarter_14")
|
|
||||||
minetest.register_alias("homedecor:glowlight_small_cube", "homedecor:glowlight_small_cube_14")
|
|
||||||
minetest.register_alias("homedecor:plasma_lamp", "homedecor:plasma_lamp_14")
|
|
||||||
minetest.register_alias("homedecor:ground_lantern", "homedecor:ground_lantern_14")
|
|
||||||
minetest.register_alias("homedecor:hanging_lantern", "homedecor:hanging_lantern_14")
|
|
||||||
minetest.register_alias("homedecor:ceiling_lantern", "homedecor:ceiling_lantern_14")
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_large", "homedecor:lattice_lantern_large_14")
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_small", "homedecor:lattice_lantern_small_14")
|
|
||||||
minetest.register_alias("homedecor:desk_lamp", "homedecor:desk_lamp_14")
|
|
||||||
minetest.register_alias("homedecor:ceiling_lamp", "homedecor:ceiling_lamp_14")
|
|
||||||
minetest.register_alias("homedecor:table_lamp", "homedecor:table_lamp_14")
|
|
||||||
minetest.register_alias("homedecor:standing_lamp", "homedecor:standing_lamp_14")
|
|
||||||
minetest.register_alias("3dforniture:table_lamp", "homedecor:table_lamp_14")
|
|
||||||
|
|
||||||
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
|
||||||
minetest.register_alias("torch_wall", "homedecor:torch_wall")
|
|
||||||
|
|
||||||
minetest.register_alias("homedecor:plasma_ball", "homedecor:plasma_ball_on")
|
|
||||||
minetest.register_alias("homedecor:wall_lamp", "homedecor:wall_lamp_on")
|
|
||||||
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_floor_0", "homedecor:rope_light_on_floor_off")
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_floor_14", "homedecor:rope_light_on_floor_on")
|
|
||||||
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_ceiling_0", "homedecor:rope_light_on_ceiling_off")
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_ceiling_14", "homedecor:rope_light_on_ceiling_on")
|
|
||||||
|
|
||||||
for name, level in pairs(word_to_bright) do
|
|
||||||
minetest.register_alias("homedecor:glowlight_half_"..name, "homedecor:glowlight_half_"..level)
|
|
||||||
minetest.register_alias("homedecor:glowlight_quarter_"..name, "homedecor:glowlight_quarter_"..level)
|
|
||||||
minetest.register_alias("homedecor:glowlight_small_cube_"..name, "homedecor:glowlight_small_cube_"..level)
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_floor_"..name, "homedecor:rope_light_on_floor_"..level)
|
|
||||||
minetest.register_alias("homedecor:rope_light_on_ceiling_"..name, "homedecor:rope_light_on_ceiling_"..level)
|
|
||||||
minetest.register_alias("homedecor:plasma_lamp_"..name, "homedecor:plasma_lamp_"..level)
|
|
||||||
minetest.register_alias("homedecor:plasma_ball_"..name, "homedecor:plasma_ball_"..level)
|
|
||||||
minetest.register_alias("homedecor:ground_lantern_"..name, "homedecor:ground_lantern_"..level)
|
|
||||||
minetest.register_alias("homedecor:hanging_lantern_"..name, "homedecor:hanging_lantern_"..level)
|
|
||||||
minetest.register_alias("homedecor:ceiling_lantern_"..name, "homedecor:ceiling_lantern_"..level)
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_large_"..name, "homedecor:lattice_lantern_large_"..level)
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_small_"..name, "homedecor:lattice_lantern_small_"..level)
|
|
||||||
minetest.register_alias("homedecor:desk_lamp_"..name, "homedecor:desk_lamp_"..level)
|
|
||||||
minetest.register_alias("homedecor:ceiling_lamp_"..name, "homedecor:ceiling_lamp_"..level)
|
|
||||||
minetest.register_alias("homedecor:table_lamp_"..name, "homedecor:table_lamp_"..level)
|
|
||||||
minetest.register_alias("homedecor:standing_lamp_"..name, "homedecor:standing_lamp_"..level)
|
|
||||||
minetest.register_alias("3dforniture:table_lamp_"..name, "homedecor:table_lamp_"..level)
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("darkage") then
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp")
|
|
||||||
for n = 0, 14 do
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_large_"..n, "darkage:lamp")
|
|
||||||
end
|
|
||||||
for name, level in pairs(word_to_bright) do
|
|
||||||
minetest.register_alias("homedecor:lattice_lantern_large_"..name, "darkage:lamp")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.log("action", "[homedecor_lightning] loaded.")
|
minetest.log("action", "[homedecor_lightning] loaded.")
|
||||||
|
|
|
@ -11,8 +11,8 @@ local S = minetest.get_translator("homedecor_misc")
|
||||||
|
|
||||||
homedecor_misc = {}
|
homedecor_misc = {}
|
||||||
|
|
||||||
local wool_black, wool_grey = homedecor.textures.wool_black, homedecor.textures.wool_grey
|
local wool_black, wool_grey = homedecor.textures.wool.black, homedecor.textures.wool.grey
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
|
|
||||||
homedecor.register("ceiling_paint", {
|
homedecor.register("ceiling_paint", {
|
||||||
description = S("Textured Ceiling Paint"),
|
description = S("Textured Ceiling Paint"),
|
||||||
|
@ -637,6 +637,7 @@ minetest.register_node(":homedecor:tatami_mat", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, axey=5},
|
groups = {snappy=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -1037,6 +1038,7 @@ minetest.register_node(":homedecor:japanese_wall_top", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, axey=5},
|
groups = {snappy=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = jp_cbox,
|
selection_box = jp_cbox,
|
||||||
collision_box = jp_cbox,
|
collision_box = jp_cbox,
|
||||||
|
@ -1056,6 +1058,7 @@ minetest.register_node(":homedecor:japanese_wall_middle", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, axey=5},
|
groups = {snappy=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = jp_cbox,
|
selection_box = jp_cbox,
|
||||||
collision_box = jp_cbox,
|
collision_box = jp_cbox,
|
||||||
|
@ -1075,6 +1078,7 @@ minetest.register_node(":homedecor:japanese_wall_bottom", {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, axey=5},
|
groups = {snappy=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = jp_cbox,
|
selection_box = jp_cbox,
|
||||||
collision_box = jp_cbox,
|
collision_box = jp_cbox,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local S = minetest.get_translator("homedecor_pictures_and_paintings")
|
local S = minetest.get_translator("homedecor_pictures_and_paintings")
|
||||||
|
|
||||||
local wood_tex = homedecor.textures.default_wood
|
local wood_tex = homedecor.textures.wood.apple.planks
|
||||||
|
|
||||||
local pframe_cbox = {
|
local pframe_cbox = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
|
|
@ -5,10 +5,11 @@ homedecor_roofing = {}
|
||||||
minetest.register_node(":homedecor:skylight", {
|
minetest.register_node(":homedecor:skylight", {
|
||||||
description = S("Glass Skylight"),
|
description = S("Glass Skylight"),
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
tiles = { homedecor.textures.glass },
|
tiles = { homedecor.textures.glass.pane },
|
||||||
wield_image = homedecor.textures.glass,
|
wield_image = homedecor.textures.glass.pane,
|
||||||
inventory_image = "homedecor_skylight_inv.png",
|
inventory_image = "homedecor_skylight_inv.png",
|
||||||
groups = { snappy = 3, dig_tree = 2 , axey=5},
|
groups = { snappy = 3, dig_tree = 2 , axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -26,6 +27,7 @@ minetest.register_node(":homedecor:skylight_frosted", {
|
||||||
inventory_image = "homedecor_skylight_frosted_inv.png",
|
inventory_image = "homedecor_skylight_frosted_inv.png",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = { snappy = 3, dig_tree = 2, axey=5},
|
groups = { snappy = 3, dig_tree = 2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -45,6 +47,7 @@ for s, s_loc in pairs({ ["asphalt"] = S("asphalt"), ["terracotta"] = S("terracot
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = { snappy = 3, dig_tree = 2, axey=5},
|
groups = { snappy = 3, dig_tree = 2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
@ -104,6 +107,7 @@ homedecor_roofing.register_outer_corner = function(modname, subname, groups, slo
|
||||||
selection_box = ocorner_cbox,
|
selection_box = ocorner_cbox,
|
||||||
collision_box = ocorner_cbox,
|
collision_box = ocorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -129,6 +133,7 @@ homedecor_roofing.register_inner_corner = function(modname, subname, groups, slo
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
collision_box = icorner_cbox,
|
collision_box = icorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -156,6 +161,7 @@ homedecor_roofing.register_slope = function(modname, subname, recipeitem, groups
|
||||||
collision_box = slope_cbox,
|
collision_box = slope_cbox,
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -330,8 +336,7 @@ homedecor_roofing.register_slope("homedecor", "glass",
|
||||||
S("Glass Shingles")
|
S("Glass Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
local brick_tex = "default_brick.png"
|
local brick_tex = homedecor.textures.brick
|
||||||
if not minetest.get_modpath("default") then brick_tex = "[combine:16x16^[noalpha^[colorize:#AA4A44" end
|
|
||||||
|
|
||||||
homedecor.register("chimney", {
|
homedecor.register("chimney", {
|
||||||
description = S("Chimney"),
|
description = S("Chimney"),
|
||||||
|
|
|
@ -20,6 +20,7 @@ minetest.register_node(":lrfurn:armchair", {
|
||||||
palette = "unifieddyes_palette_colorwallmounted.png",
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
||||||
inventory_image = "lrfurn_armchair_inv.png",
|
inventory_image = "lrfurn_armchair_inv.png",
|
||||||
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
@ -39,9 +40,9 @@ homedecor.register("armchair", {
|
||||||
description = S("Armchair"),
|
description = S("Armchair"),
|
||||||
mesh = "forniture_armchair.obj",
|
mesh = "forniture_armchair.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
homedecor.textures.wool_white,
|
homedecor.textures.wool.white,
|
||||||
{ name = homedecor.textures.wool_dark_grey, color = 0xffffffff },
|
{ name = homedecor.textures.wool.dark_grey, color = 0xffffffff },
|
||||||
{ name = homedecor.textures.default_wood, color = 0xffffffff }
|
{ name = homedecor.textures.wood.apple.planks, color = 0xffffffff }
|
||||||
},
|
},
|
||||||
inventory_image = "homedecor_armchair_inv.png",
|
inventory_image = "homedecor_armchair_inv.png",
|
||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
|
|
|
@ -78,10 +78,18 @@ function lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
||||||
minetest.swap_node(pos, { name = node.name, param2 = fdir+colorbits })
|
minetest.swap_node(pos, { name = node.name, param2 = fdir+colorbits })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local physics_cache = {}
|
||||||
|
|
||||||
function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
|
function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
|
||||||
if not clicker:is_player() then
|
if not clicker:is_player() then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if physics_cache[clicker:get_player_name()] then
|
||||||
|
lrfurn.stand(clicker)
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
|
||||||
--conversion table for param2 to dir
|
--conversion table for param2 to dir
|
||||||
local p2d = {
|
local p2d = {
|
||||||
vector.new(0, 0, 0),
|
vector.new(0, 0, 0),
|
||||||
|
@ -120,11 +128,26 @@ function lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, seats)
|
||||||
end
|
end
|
||||||
|
|
||||||
--seat the player
|
--seat the player
|
||||||
sit_pos.y = sit_pos.y-0.5
|
|
||||||
clicker:set_pos(sit_pos)
|
clicker:set_pos(sit_pos)
|
||||||
|
|
||||||
|
xcompat.player.player_attached[clicker:get_player_name()] = true
|
||||||
|
xcompat.player.set_animation(clicker, "sit", 0)
|
||||||
|
physics_cache[clicker:get_player_name()] = table.copy(clicker:get_physics_override())
|
||||||
|
clicker:set_physics_override({speed = 0, jump = 0, gravity = 0})
|
||||||
|
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function lrfurn.stand(clicker)
|
||||||
|
xcompat.player.player_attached[clicker:get_player_name()] = false
|
||||||
|
if physics_cache[clicker:get_player_name()] then
|
||||||
|
clicker:set_physics_override(physics_cache[clicker:get_player_name()])
|
||||||
|
physics_cache[clicker:get_player_name()] = nil
|
||||||
|
else --in case this is called and the cache is empty
|
||||||
|
clicker:set_physics_override({speed = 1, jump = 1, gravity = 1})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
dofile(modpath.."/longsofas.lua")
|
dofile(modpath.."/longsofas.lua")
|
||||||
dofile(modpath.."/sofas.lua")
|
dofile(modpath.."/sofas.lua")
|
||||||
dofile(modpath.."/armchairs.lua")
|
dofile(modpath.."/armchairs.lua")
|
||||||
|
|
|
@ -19,6 +19,7 @@ minetest.register_node(":lrfurn:longsofa", {
|
||||||
inventory_image = "lrfurn_longsofa_inv.png",
|
inventory_image = "lrfurn_longsofa_inv.png",
|
||||||
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
|
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
|
||||||
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
|
|
@ -162,7 +162,7 @@ homedecor.register("kitchen_chair_padded", {
|
||||||
mesh = "homedecor_kitchen_chair.obj",
|
mesh = "homedecor_kitchen_chair.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
homedecor.plain_wood,
|
homedecor.plain_wood,
|
||||||
homedecor.textures.wool_white,
|
homedecor.textures.wool.white,
|
||||||
},
|
},
|
||||||
inventory_image = "homedecor_chair_padded_inv.png",
|
inventory_image = "homedecor_chair_padded_inv.png",
|
||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
|
|
|
@ -19,6 +19,7 @@ minetest.register_node(":lrfurn:sofa", {
|
||||||
inventory_image = "lrfurn_sofa_inv.png",
|
inventory_image = "lrfurn_sofa_inv.png",
|
||||||
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
|
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
|
||||||
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
groups = {snappy=3, ud_param2_colorable = 1, dig_tree=2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
|
|
@ -59,6 +59,7 @@ minetest.register_node(":lrfurn:coffeetable", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
|
|
@ -17,6 +17,7 @@ minetest.register_node(":lrfurn:endtable", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
|
|
@ -74,9 +74,9 @@ for i, mat in ipairs(tabletop_materials) do
|
||||||
tiles = {
|
tiles = {
|
||||||
'homedecor_'..m..'_table_'..shape..'.png',
|
'homedecor_'..m..'_table_'..shape..'.png',
|
||||||
'homedecor_'..m..'_table_edges.png',
|
'homedecor_'..m..'_table_edges.png',
|
||||||
'homedecor_blanktile.png',
|
'blank.png',
|
||||||
'homedecor_blanktile.png',
|
'blank.png',
|
||||||
'homedecor_blanktile.png',
|
'blank.png',
|
||||||
},
|
},
|
||||||
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
|
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
|
@ -111,8 +111,8 @@ for i, mat in ipairs(tabletop_materials) do
|
||||||
description = string.format("%s %s table with %s legs", shape, m, leg_mat),
|
description = string.format("%s %s table with %s legs", shape, m, leg_mat),
|
||||||
mesh = "homedecor_table_"..shape..".obj",
|
mesh = "homedecor_table_"..shape..".obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
'homedecor_blanktile.png',
|
'blank.png',
|
||||||
'homedecor_blanktile.png',
|
'blank.png',
|
||||||
'homedecor_'..m..'_table_'..shape..'.png',
|
'homedecor_'..m..'_table_'..shape..'.png',
|
||||||
'homedecor_'..m..'_table_edges.png',
|
'homedecor_'..m..'_table_edges.png',
|
||||||
"homedecor_table_legs_"..leg_mat..".png",
|
"homedecor_table_legs_"..leg_mat..".png",
|
||||||
|
|
|
@ -94,6 +94,7 @@ local def = {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
|
||||||
groups = {snappy = 3, axey=5},
|
groups = {snappy = 3, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
selection_box = wd_cbox,
|
selection_box = wd_cbox,
|
||||||
collision_box = wd_cbox,
|
collision_box = wd_cbox,
|
||||||
|
|
|
@ -161,7 +161,7 @@ homedecor.register("curtain_open", {
|
||||||
local mats = {
|
local mats = {
|
||||||
{ "brass", S("brass"), "homedecor_generic_metal_brass.png" },
|
{ "brass", S("brass"), "homedecor_generic_metal_brass.png" },
|
||||||
{ "wrought_iron", S("wrought iron"), "homedecor_generic_metal_wrought_iron.png" },
|
{ "wrought_iron", S("wrought iron"), "homedecor_generic_metal_wrought_iron.png" },
|
||||||
{ "wood", S("wood"), homedecor.textures.default_wood }
|
{ "wood", S("wood"), homedecor.textures.wood.apple.planks }
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, m in ipairs(mats) do
|
for _, m in ipairs(mats) do
|
||||||
|
|
|
@ -4,12 +4,14 @@ local tmp = {}
|
||||||
local sd_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
local sd_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
||||||
|
|
||||||
minetest.register_entity("itemframes:item",{
|
minetest.register_entity("itemframes:item",{
|
||||||
|
initial_properties = {
|
||||||
hp_max = 1,
|
hp_max = 1,
|
||||||
visual="wielditem",
|
visual = "wielditem",
|
||||||
visual_size={x = 0.33, y = 0.33},
|
visual_size = {x = 0.33, y = 0.33},
|
||||||
collisionbox = {0, 0, 0, 0, 0, 0},
|
collisionbox = {0, 0, 0, 0, 0, 0},
|
||||||
physical = false,
|
physical = false,
|
||||||
textures = {"air"},
|
textures = {"air"},
|
||||||
|
},
|
||||||
on_activate = function(self, staticdata)
|
on_activate = function(self, staticdata)
|
||||||
if tmp.nodename ~= nil and tmp.texture ~= nil then
|
if tmp.nodename ~= nil and tmp.texture ~= nil then
|
||||||
self.nodename = tmp.nodename
|
self.nodename = tmp.nodename
|
||||||
|
@ -140,6 +142,7 @@ minetest.register_node("itemframes:frame",{
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {choppy = 2, dig_immediate = 2, axey=5},
|
groups = {choppy = 2, dig_immediate = 2, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
|
@ -221,6 +224,7 @@ minetest.register_node("itemframes:pedestal",{
|
||||||
tiles = {"itemframes_pedestal.png"},
|
tiles = {"itemframes_pedestal.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky = 3, dig_stone = 2, pickaxey=5},
|
groups = {cracky = 3, dig_stone = 2, pickaxey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
|
|
@ -35,6 +35,7 @@ minetest.register_node("lavalamp:lavalamp", {
|
||||||
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1, axey=5},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_glass_defaults",
|
key = "node_sound_glass_defaults",
|
||||||
|
@ -66,6 +67,7 @@ minetest.register_node("lavalamp:lavalamp_off", {
|
||||||
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1, axey=5},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1, axey=5},
|
||||||
|
is_ground_content = false,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=1.6,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_glass_defaults",
|
key = "node_sound_glass_defaults",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user