2020-08-04 20:09:25 +02:00
|
|
|
local S = minetest.get_translator("homedecor_bedroom")
|
2017-01-24 21:43:20 +01:00
|
|
|
|
2020-08-05 02:36:06 +02:00
|
|
|
local sc_disallow = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil
|
2015-04-29 14:14:36 +02:00
|
|
|
|
2024-03-03 21:52:58 +01:00
|
|
|
local wood_tex, wool_tex = homedecor.textures.wood.apple.planks, homedecor.textures.wool.white
|
2022-05-03 21:21:14 +02:00
|
|
|
|
2015-04-29 14:14:36 +02:00
|
|
|
local bed_sbox = {
|
2017-01-31 05:22:47 +01:00
|
|
|
type = "wallmounted",
|
|
|
|
wall_side = { -0.5, -0.5, -0.5, 0.5, 0.5, 1.5 }
|
2015-04-29 14:14:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local bed_cbox = {
|
2017-01-31 05:22:47 +01:00
|
|
|
type = "wallmounted",
|
|
|
|
wall_side = {
|
2015-04-29 14:14:36 +02:00
|
|
|
{ -0.5, -0.5, -0.5, 0.5, -0.05, 1.5 },
|
|
|
|
{ -0.5, -0.5, 1.44, 0.5, 0.5, 1.5 },
|
|
|
|
{ -0.5, -0.5, -0.5, 0.5, 0.18, -0.44 },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
local kbed_sbox = {
|
2017-01-31 05:22:47 +01:00
|
|
|
type = "wallmounted",
|
|
|
|
wall_side = { -0.5, -0.5, -0.5, 1.5, 0.5, 1.5 }
|
2015-04-29 14:14:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local kbed_cbox = {
|
2017-01-31 05:22:47 +01:00
|
|
|
type = "wallmounted",
|
|
|
|
wall_side = {
|
2015-04-29 14:14:36 +02:00
|
|
|
{ -0.5, -0.5, -0.5, 1.5, -0.05, 1.5 },
|
|
|
|
{ -0.5, -0.5, 1.44, 1.5, 0.5, 1.5 },
|
|
|
|
{ -0.5, -0.5, -0.5, 1.5, 0.18, -0.44 },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-05 02:36:06 +02:00
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
local bed_def = minetest.registered_nodes["beds:bed"]
|
|
|
|
local bed_on_rightclick = bed_def and bed_def.on_rightclick or nil
|
2020-08-05 02:36:06 +02:00
|
|
|
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.register("bed_regular", {
|
|
|
|
mesh = "homedecor_bed_regular.obj",
|
|
|
|
tiles = {
|
|
|
|
{ name = "homedecor_bed_frame.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
{ name = wood_tex, color = 0xffffffff },
|
|
|
|
{ name = wool_tex, color = 0xffffffff },
|
|
|
|
wool_tex,
|
2017-01-31 05:22:47 +01:00
|
|
|
{ name = "homedecor_bed_bottom.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
wool_tex.."^[brighten", -- pillow
|
2017-01-31 05:22:47 +01:00
|
|
|
},
|
|
|
|
inventory_image = "homedecor_bed_inv.png",
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
description = S("Bed"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, ud_param2_colorable = 1, dig_generic=2},
|
2017-01-31 05:22:47 +01:00
|
|
|
selection_box = bed_sbox,
|
|
|
|
node_box = bed_cbox,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2020-08-04 20:09:25 +02:00
|
|
|
on_rotate = sc_disallow or nil,
|
2017-01-31 05:22:47 +01:00
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
2017-02-18 05:07:25 +01:00
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
2017-01-31 05:22:47 +01:00
|
|
|
if not placer:get_player_control().sneak then
|
|
|
|
return homedecor.bed_expansion(pos, placer, itemstack, pointed_thing)
|
|
|
|
end
|
|
|
|
end,
|
2017-03-18 10:51:46 +01:00
|
|
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.unextend_bed(pos)
|
|
|
|
end,
|
2019-07-18 08:16:46 +02:00
|
|
|
on_dig = unifieddyes.on_dig,
|
2017-01-31 05:22:47 +01:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
local itemname = itemstack:get_name()
|
2017-02-05 01:41:36 +01:00
|
|
|
if itemname == "homedecor:bed_regular" then
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.bed_expansion(pos, clicker, itemstack, pointed_thing, true)
|
2022-05-03 21:21:14 +02:00
|
|
|
elseif bed_on_rightclick then
|
2021-11-28 02:51:47 +01:00
|
|
|
bed_on_rightclick(pos, node, clicker)
|
2015-04-29 14:14:36 +02:00
|
|
|
end
|
2022-05-03 21:21:14 +02:00
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "group:stick", "", "group:stick" },
|
|
|
|
{ "wool_white", "wool_white", "wool_white" },
|
|
|
|
{ "group:wood", "", "group:wood" },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2017-01-31 05:22:47 +01:00
|
|
|
})
|
2015-04-29 14:14:36 +02:00
|
|
|
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.register("bed_extended", {
|
|
|
|
mesh = "homedecor_bed_extended.obj",
|
|
|
|
tiles = {
|
|
|
|
{ name = "homedecor_bed_frame.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
{ name = wood_tex, color = 0xffffffff },
|
|
|
|
{ name = wool_tex, color = 0xffffffff },
|
|
|
|
wool_tex,
|
2017-01-31 05:22:47 +01:00
|
|
|
{ name = "homedecor_bed_bottom.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
wool_tex.."^[brighten",
|
2017-01-31 05:22:47 +01:00
|
|
|
},
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
selection_box = bed_sbox,
|
|
|
|
node_box = bed_cbox,
|
2022-09-02 18:04:03 +02:00
|
|
|
groups = {snappy=3, ud_param2_colorable = 1, dig_generic=2, not_in_creative_inventory=1},
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2017-01-31 05:22:47 +01:00
|
|
|
expand = { forward = "air" },
|
2020-08-04 20:09:25 +02:00
|
|
|
on_rotate = sc_disallow or nil,
|
2017-03-18 10:51:46 +01:00
|
|
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.unextend_bed(pos)
|
|
|
|
end,
|
2019-07-18 08:16:46 +02:00
|
|
|
on_dig = unifieddyes.on_dig,
|
2021-11-28 02:51:47 +01:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2022-05-03 21:21:14 +02:00
|
|
|
if bed_on_rightclick then
|
|
|
|
bed_on_rightclick(pos, node, clicker)
|
|
|
|
end
|
2021-11-28 02:51:47 +01:00
|
|
|
return itemstack
|
|
|
|
end,
|
2017-01-31 05:22:47 +01:00
|
|
|
drop = "homedecor:bed_regular"
|
|
|
|
})
|
2015-04-29 14:14:36 +02:00
|
|
|
|
2017-01-31 05:22:47 +01:00
|
|
|
homedecor.register("bed_kingsize", {
|
|
|
|
mesh = "homedecor_bed_kingsize.obj",
|
|
|
|
tiles = {
|
|
|
|
{ name = "homedecor_bed_frame.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
{ name = wood_tex, color = 0xffffffff },
|
|
|
|
{ name = wool_tex, color = 0xffffffff },
|
|
|
|
wool_tex,
|
2017-01-31 05:22:47 +01:00
|
|
|
{ name = "homedecor_bed_bottom.png", color = 0xffffffff },
|
2022-05-03 21:21:14 +02:00
|
|
|
wool_tex.."^[brighten",
|
2017-01-31 05:22:47 +01:00
|
|
|
},
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
inventory_image = "homedecor_bed_kingsize_inv.png",
|
|
|
|
description = S("Bed (king sized)"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, ud_param2_colorable = 1, dig_generic=2},
|
2017-01-31 05:22:47 +01:00
|
|
|
selection_box = kbed_sbox,
|
|
|
|
node_box = kbed_cbox,
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2020-08-04 20:09:25 +02:00
|
|
|
on_rotate = sc_disallow or nil,
|
2017-03-18 10:51:46 +01:00
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
|
|
|
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
end,
|
2017-01-31 05:22:47 +01:00
|
|
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
|
|
|
local inv = digger:get_inventory()
|
2017-03-18 10:51:46 +01:00
|
|
|
if digger:get_player_control().sneak and inv:room_for_item("main", "homedecor:bed_regular 2") then
|
2017-01-31 05:22:47 +01:00
|
|
|
inv:remove_item("main", "homedecor:bed_kingsize 1")
|
|
|
|
inv:add_item("main", "homedecor:bed_regular 2")
|
|
|
|
end
|
|
|
|
end,
|
2019-07-18 08:16:46 +02:00
|
|
|
on_dig = unifieddyes.on_dig,
|
2021-11-28 02:51:47 +01:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2022-05-03 21:21:14 +02:00
|
|
|
if bed_on_rightclick then
|
|
|
|
bed_on_rightclick(pos, node, clicker)
|
|
|
|
end
|
2021-11-28 02:51:47 +01:00
|
|
|
return itemstack
|
|
|
|
end,
|
2022-05-03 21:21:14 +02:00
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:bed_regular", "homedecor:bed_regular" }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2017-01-31 05:22:47 +01:00
|
|
|
})
|
2015-08-16 18:00:34 +02:00
|
|
|
|
2020-08-04 20:09:25 +02:00
|
|
|
for w, d in pairs({ ["mahogany"] = S("mahogany"), ["oak"] = S("oak") }) do
|
2015-08-16 18:00:34 +02:00
|
|
|
homedecor.register("nightstand_"..w.."_one_drawer", {
|
2020-08-04 20:09:25 +02:00
|
|
|
description = S("Nightstand with One Drawer (@1)", d),
|
2015-08-16 18:00:34 +02:00
|
|
|
tiles = { 'homedecor_nightstand_'..w..'_tb.png',
|
|
|
|
'homedecor_nightstand_'..w..'_tb.png^[transformFY',
|
|
|
|
'homedecor_nightstand_'..w..'_lr.png^[transformFX',
|
|
|
|
'homedecor_nightstand_'..w..'_lr.png',
|
|
|
|
'homedecor_nightstand_'..w..'_back.png',
|
|
|
|
'homedecor_nightstand_'..w..'_1_drawer_front.png'},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -8/16, 0, -30/64, 8/16, 8/16, 8/16 }, -- top half
|
2016-12-15 22:23:31 +01:00
|
|
|
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64}, -- drawer face
|
2015-08-16 18:00:34 +02:00
|
|
|
{ -8/16, -8/16, -30/64, -7/16, 0, 8/16 }, -- left
|
|
|
|
{ 7/16, -8/16, -30/64, 8/16, 0, 8/16 }, -- right
|
|
|
|
{ -8/16, -8/16, 7/16, 8/16, 0, 8/16 }, -- back
|
|
|
|
{ -8/16, -8/16, -30/64, 8/16, -7/16, 8/16 } -- bottom
|
|
|
|
}
|
|
|
|
},
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_tree = 2 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2015-08-16 18:00:34 +02:00
|
|
|
selection_box = { type = "regular" },
|
|
|
|
infotext=S("One-drawer Nightstand"),
|
|
|
|
inventory = {
|
|
|
|
size=8,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-08-16 18:00:34 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("nightstand_"..w.."_two_drawers", {
|
2020-08-04 20:09:25 +02:00
|
|
|
description = S("Nightstand with Two Drawers (@1)", d),
|
2015-08-16 18:00:34 +02:00
|
|
|
tiles = { 'homedecor_nightstand_'..w..'_tb.png',
|
|
|
|
'homedecor_nightstand_'..w..'_tb.png^[transformFY',
|
|
|
|
'homedecor_nightstand_'..w..'_lr.png^[transformFX',
|
|
|
|
'homedecor_nightstand_'..w..'_lr.png',
|
|
|
|
'homedecor_nightstand_'..w..'_back.png',
|
|
|
|
'homedecor_nightstand_'..w..'_2_drawer_front.png'},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -8/16, -8/16, -30/64, 8/16, 8/16, 8/16 }, -- main body
|
|
|
|
{ -7/16, 1/16, -32/64, 7/16, 7/16, -29/64 }, -- top drawer face
|
|
|
|
{ -7/16, -7/16, -32/64, 7/16, -1/16, -29/64 }, -- bottom drawer face
|
|
|
|
}
|
|
|
|
},
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_tree = 2 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2015-08-16 18:00:34 +02:00
|
|
|
selection_box = { type = "regular" },
|
|
|
|
infotext=S("Two-drawer Nightstand"),
|
|
|
|
inventory = {
|
|
|
|
size=16,
|
2015-08-19 19:30:03 +02:00
|
|
|
lockable=true,
|
2015-08-16 18:00:34 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2017-01-31 05:22:47 +01:00
|
|
|
|
|
|
|
-- convert to param2 colorization
|
|
|
|
|
|
|
|
local bedcolors = {
|
|
|
|
"black",
|
|
|
|
"brown",
|
|
|
|
"blue",
|
|
|
|
"cyan",
|
|
|
|
"darkgrey",
|
|
|
|
"dark_green",
|
|
|
|
"green",
|
|
|
|
"grey",
|
|
|
|
"magenta",
|
|
|
|
"orange",
|
|
|
|
"pink",
|
|
|
|
"red",
|
|
|
|
"violet",
|
|
|
|
"white",
|
|
|
|
"yellow"
|
|
|
|
}
|
|
|
|
|
2020-08-04 20:09:25 +02:00
|
|
|
local old_bed_nodes = {}
|
2017-01-31 05:22:47 +01:00
|
|
|
|
|
|
|
for _, color in ipairs(bedcolors) do
|
2020-08-04 20:09:25 +02:00
|
|
|
table.insert(old_bed_nodes, "homedecor:bed_"..color.."_regular")
|
|
|
|
table.insert(old_bed_nodes, "homedecor:bed_"..color.."_extended")
|
|
|
|
table.insert(old_bed_nodes, "homedecor:bed_"..color.."_kingsize")
|
2017-01-31 05:22:47 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_lbm({
|
2019-04-20 21:49:36 +02:00
|
|
|
name = ":homedecor:convert_beds",
|
2017-01-31 05:22:47 +01:00
|
|
|
label = "Convert homedecor static bed nodes to use param2 color",
|
2017-02-16 22:58:48 +01:00
|
|
|
run_at_every_load = false,
|
2020-08-04 20:09:25 +02:00
|
|
|
nodenames = old_bed_nodes,
|
2017-01-31 05:22:47 +01:00
|
|
|
action = function(pos, node)
|
|
|
|
local name = node.name
|
|
|
|
local color = string.sub(name, string.find(name, "_") + 1)
|
2017-02-16 03:53:52 +01:00
|
|
|
|
|
|
|
-- -10 puts us near the end of the color field
|
|
|
|
color = string.sub(color, 1, string.find(color, "_", -10) - 1)
|
2017-01-31 05:22:47 +01:00
|
|
|
|
|
|
|
if color == "darkgrey" then
|
|
|
|
color = "dark_grey"
|
|
|
|
end
|
|
|
|
|
|
|
|
local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
|
|
|
|
local old_fdir = math.floor(node.param2 % 32)
|
|
|
|
local new_fdir = 3
|
2017-02-01 17:55:17 +01:00
|
|
|
local new_name
|
2017-01-31 05:22:47 +01:00
|
|
|
|
|
|
|
if old_fdir == 0 then
|
|
|
|
new_fdir = 3
|
|
|
|
elseif old_fdir == 1 then
|
|
|
|
new_fdir = 4
|
|
|
|
elseif old_fdir == 2 then
|
|
|
|
new_fdir = 2
|
|
|
|
elseif old_fdir == 3 then
|
|
|
|
new_fdir = 5
|
|
|
|
end
|
|
|
|
|
|
|
|
local param2 = paletteidx + new_fdir
|
|
|
|
|
|
|
|
if string.find(name, "regular") then
|
|
|
|
new_name = "homedecor:bed_regular"
|
|
|
|
elseif string.find(name, "extended") then
|
|
|
|
new_name = "homedecor:bed_extended"
|
|
|
|
else
|
|
|
|
new_name = "homedecor:bed_kingsize"
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.set_node(pos, { name = new_name, param2 = param2 })
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:set_string("dye", "unifieddyes:"..color)
|
|
|
|
end
|
|
|
|
})
|
2019-04-20 21:49:36 +02:00
|
|
|
|
|
|
|
-- crafting
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:nightstand_oak_one_drawer",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:drawer_small" },
|
|
|
|
{ "group:wood" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:nightstand_oak_one_drawer",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:nightstand_oak_two_drawers",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:drawer_small" },
|
|
|
|
{ "homedecor:drawer_small" },
|
|
|
|
{ "group:wood" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "homedecor:nightstand_oak_two_drawers",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:nightstand_oak_one_drawer" },
|
|
|
|
{ "homedecor:drawer_small" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:nightstand_oak_two_drawers",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "homedecor:nightstand_mahogany_one_drawer",
|
|
|
|
recipe = {
|
|
|
|
"homedecor:nightstand_oak_one_drawer",
|
2022-05-03 21:21:14 +02:00
|
|
|
homedecor.materials.dye_brown,
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:nightstand_mahogany_one_drawer",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "homedecor:nightstand_mahogany_two_drawers",
|
|
|
|
recipe = {
|
|
|
|
"homedecor:nightstand_oak_two_drawers",
|
2022-05-03 21:21:14 +02:00
|
|
|
homedecor.materials.dye_brown,
|
2019-04-20 21:49:36 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "homedecor:nightstand_mahogany_two_drawers",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "homedecor:bed_regular",
|
|
|
|
palette = "wallmounted",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "homedecor:bed_regular",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "homedecor:bed_kingsize",
|
|
|
|
palette = "wallmounted",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "homedecor:bed_kingsize",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "homedecor:bed_kingsize",
|
|
|
|
palette = "wallmounted",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "homedecor:bed_regular",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|