365 lines
8.8 KiB
Lua
365 lines
8.8 KiB
Lua
assets_warehouse= {}
|
|
|
|
local default_path = minetest.get_modpath("assets_warehouse")
|
|
model_detail = minetest.settings:get("assets_warehouse_model_quality") or 1
|
|
texture_detail = minetest.settings:get("assets_warehouse_texture_quality") or 1
|
|
|
|
dofile(default_path.."/light.lua")
|
|
dofile(default_path.."/stuff.lua")
|
|
dofile(default_path.."/aperture_science.lua")
|
|
dofile(default_path.."/tuxemons.lua")
|
|
dofile(default_path.."/menus.lua")
|
|
dofile(default_path.."/care_bears.lua")
|
|
dofile(default_path.."/peppert_and_carrot.lua")
|
|
dofile(default_path.."/postal.lua")
|
|
|
|
|
|
minetest.register_node('assets_warehouse:bed_nordic', {
|
|
drawtype = 'mesh',
|
|
mesh = 'bed_nordic.obj',
|
|
tiles ={'bed_nordicTQ'..texture_detail..'.png'},
|
|
description= 'A bed in nordic style',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,-0.1,-1.5,0.5,-0.5,0.5},
|
|
{-0.5,0.5,0.4,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,-0.1,-1.5,0.5,-0.5,0.5},
|
|
{-0.5,0.5,0.4,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=false,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
minetest.register_node('assets_warehouse:writtetable_colony_flash', {
|
|
drawtype = 'mesh',
|
|
mesh = 'writtetable_colony_flash.obj',
|
|
tiles ={'writtetable_colony_flashTQ'..texture_detail..'.png'},
|
|
description= 'A colony style writtetable in flash design',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,0.3,-0.1,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,0.3,-0.1,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=false,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
minetest.register_node('assets_warehouse:writtetable_colony_nova', {
|
|
drawtype = 'mesh',
|
|
mesh = 'writtetable_colony_nova.obj',
|
|
tiles ={'writtetable_colony_novaTQ'..texture_detail..'.png'},
|
|
description= 'A colony style writtetable in nova design',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.25,0.05,0.1,0.25,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.25,0.05,0.1,0.25,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
minetest.register_node('assets_warehouse:chair_colony_palau', {
|
|
drawtype = 'mesh',
|
|
mesh = 'chair_colony_palauMD'..model_detail..'.obj',
|
|
tiles ={'chair_colony_palauTQ'..texture_detail..'.png'},
|
|
description= 'Chair with a palau design',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,-0.1,-0.25,0.2,-0.5,0.5},
|
|
{-0.2,0.5,0.35,0.2,-0.5,0.4},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,-0.1,-0.25,0.2,-0.5,0.5},
|
|
{-0.2,0.5,0.35,0.2,-0.5,0.4},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
minetest.register_node('assets_warehouse:chair_nordic', {
|
|
drawtype = 'mesh',
|
|
mesh = 'chair_nordicMD'..model_detail..'.obj',
|
|
tiles ={'chair_nordicTQ'..texture_detail..'.png'},
|
|
description= 'Chair with a nordic design',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,-0.05,-0.05,0.2,-0.5,0.4},
|
|
{-0.2,0.4,0.35,0.2,-0.5,0.4},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,-0.05,-0.05,0.2,-0.5,0.4},
|
|
{-0.2,0.4,0.35,0.2,-0.5,0.4},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
minetest.register_node('assets_warehouse:couch', {
|
|
drawtype = 'mesh',
|
|
mesh = 'couchMD'..model_detail..'.obj',
|
|
tiles ={'couchTQ'..texture_detail..'.png'},
|
|
description= 'Couch',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,-0.2,-0.44,1.65,-0.5,0.5},
|
|
{-0.5,0.2,0.2,1.65,-0.5,0.5},
|
|
{-0.5,0.2,-0.44,-0.15,-0.5,0.5},
|
|
{1.3,0.2,-0.44,1.65,-0.5,0.5},
|
|
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,-0.2,-0.44,1.65,-0.5,0.5},
|
|
{-0.5,0.2,0.2,1.65,-0.5,0.5},
|
|
{-0.5,0.2,-0.44,-0.15,-0.5,0.5},
|
|
{1.3,0.2,-0.44,1.65,-0.5,0.5},
|
|
|
|
},
|
|
},
|
|
sunlight_propagates=false,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
|
|
minetest.register_node('assets_warehouse:shouwcase_colony', {
|
|
drawtype = 'mesh',
|
|
mesh = 'shouwcase_colony.obj',
|
|
tiles ={'shouwcase_colonyTQ'..texture_detail..'.png'},
|
|
description= 'Shouwcase',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,0.85,0.1,0.2,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.2,0.85,0.1,0.2,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
|
|
minetest.register_node('assets_warehouse:rusticbancpalau', {
|
|
drawtype = 'mesh',
|
|
mesh = 'rusticbancpalauMD'..model_detail..'.obj',
|
|
tiles ={'rusticbancpalauTQ'..texture_detail..'.png'},
|
|
description= 'A rustic banc in a palau design',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.45,0.0,-0.2,0.45,-0.5,0.2},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.45,0.0,-0.2,0.45,-0.5,0.2},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
|
|
|
|
minetest.register_node('assets_warehouse:armchair', {
|
|
drawtype = 'mesh',
|
|
mesh = 'armchair.obj',
|
|
tiles ={'armchairTQ'..texture_detail..'.png'},
|
|
description= 'armchair',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,0.4,0.0,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5,0.4,0.0,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=false,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|
|
|
|
minetest.register_node('assets_warehouse:flagM26_7', {
|
|
drawtype = 'mesh',
|
|
mesh = 'flagM26_7.obj',
|
|
tiles ={'flagM26_7.png'},
|
|
description= 'Flag of the 26 of july',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-1.5,0.5,0.35,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-1.5,0.5,0.45,0.5,-0.5,0.5},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=true,
|
|
walkable=true,
|
|
pointable=true,
|
|
}) |