2016-04-01 20:02:19 -04:00
|
|
|
|
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons,
moreblocks, moreores, technic, teleport_request, and
worldedit
switched to caverealms_lite (with minor fixes by me)
switched to CWz's fork of player_textures
The homedecor update brings in the big split, and will
require you to re-enable all modpack components in
order to avoid loss of content.
2019-04-24 18:59:36 -04:00
|
|
|
local S = homedecor.gettext
|
2016-04-01 20:02:19 -04:00
|
|
|
|
|
|
|
local sofa_cbox = {
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
type = "wallmounted",
|
|
|
|
wall_side = {-0.5, -0.5, -0.5, 0.5, 0.5, 1.5}
|
2016-04-01 20:02:19 -04:00
|
|
|
}
|
|
|
|
|
2019-05-27 15:07:25 -04:00
|
|
|
minetest.register_node(":lrfurn:sofa", {
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
description = S("Sofa"),
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "lrfurn_sofa_short.obj",
|
|
|
|
tiles = {
|
|
|
|
"lrfurn_upholstery.png",
|
|
|
|
{ name = "lrfurn_sofa_bottom.png", color = 0xffffffff }
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "colorwallmounted",
|
|
|
|
palette = "unifieddyes_palette_colorwallmounted.png",
|
|
|
|
inventory_image = "lrfurn_sofa_inv.png",
|
2017-02-22 17:40:52 -05:00
|
|
|
wield_scale = { x = 0.6, y = 0.6, z = 0.6 },
|
2017-02-04 20:11:09 -05:00
|
|
|
groups = {snappy=3, ud_param2_colorable = 1},
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
selection_box = sofa_cbox,
|
|
|
|
node_box = sofa_cbox,
|
|
|
|
on_rotate = screwdriver.disallow,
|
|
|
|
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
2017-02-22 17:40:52 -05:00
|
|
|
lrfurn.fix_sofa_rotation_nsew(pos, placer, itemstack, pointed_thing)
|
|
|
|
local playername = placer:get_player_name()
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
if minetest.is_protected(pos, placer:get_player_name()) then return true end
|
2016-04-01 20:02:19 -04:00
|
|
|
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
local fdir = minetest.dir_to_facedir(placer:get_look_dir(), false)
|
|
|
|
|
2017-02-22 17:40:52 -05:00
|
|
|
if lrfurn.check_right(pos, fdir, false, placer) then
|
|
|
|
if not creative.is_enabled_for(playername) then
|
|
|
|
itemstack:take_item()
|
|
|
|
end
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
else
|
|
|
|
minetest.chat_send_player(placer:get_player_name(), S("No room to place the sofa!"))
|
|
|
|
minetest.set_node(pos, { name = "air" })
|
|
|
|
end
|
|
|
|
return itemstack
|
|
|
|
end,
|
update castles, areas, areas_protector, bakedclay, signs_lib,
bees, blox, bobblocks, coloredwood, homedecor, technic,
currency, digilines, digistguff, facade, farming_redo,
framedglass, gloopblocks, ilights, led_marquee, maptools,
mesecons, moreblocks, moreores, mymillwork, plasticbox,
replacer, ropes, street_signs, solidcolor, stained_glass,
teleport_request, unified_inventory, unifieddyes, worldedit,
add basic_signs, notify_hud_provider
2019-09-11 13:58:21 -04:00
|
|
|
on_dig = unifieddyes.on_dig,
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
2017-02-04 20:11:09 -05:00
|
|
|
if not clicker:is_player() then
|
updated boost_cart, plantlife, castle, homedecor, fake_fire,
glooptest, quartz, unified_inventory, inbox, mesecons, and
worldedit mods
2016-08-11 18:39:55 -04:00
|
|
|
return itemstack
|
2016-04-01 20:02:19 -04:00
|
|
|
end
|
2017-02-04 20:11:09 -05:00
|
|
|
pos.y = pos.y-0.5
|
|
|
|
clicker:setpos(pos)
|
|
|
|
clicker:set_hp(20)
|
|
|
|
return itemstack
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "lrfurn:sofa",
|
|
|
|
recipe = {
|
|
|
|
{"wool:white", "wool:white", "", },
|
|
|
|
{"stairs:slab_wood", "stairs:slab_wood", "", },
|
|
|
|
{"group:stick", "group:stick", "", }
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "lrfurn:sofa",
|
|
|
|
recipe = {
|
|
|
|
{"wool:white", "wool:white", "", },
|
|
|
|
{"moreblocks:slab_wood", "moreblocks:slab_wood", "", },
|
|
|
|
{"group:stick", "group:stick", "", }
|
|
|
|
}
|
|
|
|
})
|
2016-04-01 20:02:19 -04:00
|
|
|
|
update castles modpack, blox, bobblocks, coloredwood, technic,
gloopblocks, homedecor, ilights, led marquee, plasticbox, solidcolor,
stained_glass, unified bricks, and unified dyes
In most of these, the update is to shift over to the new "old" coloring
paradigm in Unified Dyes. See its forum thread for details.
2018-08-22 22:28:28 -04:00
|
|
|
unifieddyes.register_color_craft({
|
|
|
|
output = "lrfurn:sofa",
|
|
|
|
palette = "wallmounted",
|
|
|
|
type = "shapeless",
|
|
|
|
neutral_node = "lrfurn:sofa",
|
|
|
|
recipe = {
|
|
|
|
"NEUTRAL_NODE",
|
|
|
|
"MAIN_DYE"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
-- convert old static nodes to param2 color
|
|
|
|
|
|
|
|
lrfurn.old_static_sofas = {}
|
|
|
|
|
|
|
|
for _, color in ipairs(lrfurn.colors) do
|
|
|
|
table.insert(lrfurn.old_static_sofas, "lrfurn:sofa_"..color)
|
2016-04-01 20:02:19 -04:00
|
|
|
end
|
|
|
|
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
minetest.register_lbm({
|
2019-05-27 15:07:25 -04:00
|
|
|
name = ":lrfurn:convert_sofas",
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
label = "Convert lrfurn short sofas to use param2 color",
|
update several mods and add a few
updated: blox, bobblocks, castle, homedecor, coloredwood, ilights, stainedglass, unifiedbricks
added: cheapie's rgblightstone, digistuff, unifiedmesecons, and solidcolor
2017-02-16 17:05:50 -05:00
|
|
|
run_at_every_load = false,
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
nodenames = lrfurn.old_static_sofas,
|
|
|
|
action = function(pos, node)
|
|
|
|
local name = node.name
|
|
|
|
local color = string.sub(name, string.find(name, "_")+1)
|
|
|
|
|
|
|
|
if color == "red" then
|
|
|
|
color = "medium_red"
|
|
|
|
elseif color == "dark_green" then
|
|
|
|
color = "medium_green"
|
|
|
|
elseif color == "magenta" then
|
|
|
|
color = "medium_magenta"
|
|
|
|
elseif color == "cyan" then
|
|
|
|
color = "medium_cyan"
|
|
|
|
end
|
|
|
|
|
|
|
|
local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
|
|
|
|
local old_fdir = math.floor(node.param2 % 32)
|
|
|
|
local new_fdir = 3
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
minetest.set_node(pos, { name = "lrfurn:sofa", param2 = param2 })
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:set_string("dye", "unifieddyes:"..color)
|
|
|
|
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
Updated several mods for Minetest 0.4.16
castles modpack, areas, biome_lib, blox, boost_cart, plantlife modpack
caverealms, coloredwood, concrete, currency, farming redo, home decor,
ilights, mesecons, moreores, pipeworks, signs_lib, technic, unified inventory
unified bricks, unified dyes, worldedit, and xban2
2017-06-16 18:12:21 -04:00
|
|
|
if minetest.settings:get("log_mods") then
|
Huge update - lots of mods:
areas, biome_lib, blox, bobblocks, boost_cart, homedecor, mobs,
coloredwood, ilights, inbox, item_tweaks, moreblocks, moreores,
pipeworks, plasticbox, signs_lib, stainedglass, roads, unifieddyes,
vines, worldedit, xban2, maybe some others I didn't think about ;-)
2017-01-31 19:39:31 -05:00
|
|
|
minetest.log("action", "[lrfurn/sofas] "..S("Loaded!"))
|
2016-04-01 20:02:19 -04:00
|
|
|
end
|