Use mesh nodes instead of nodeboxes
also, removed the 512px textures since they only bloat the repo and are now obsolete.
111
elevator.lua
@ -3,46 +3,42 @@
|
|||||||
-- >utor: Sokomine
|
-- >utor: Sokomine
|
||||||
|
|
||||||
minetest.register_node("travelnet:elevator", {
|
minetest.register_node("travelnet:elevator", {
|
||||||
description = "Elevator",
|
description = "Elevator",
|
||||||
|
drawtype = "mesh",
|
||||||
|
mesh = "travelnet_elevator.obj",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = 'light',
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
wield_scale = {x=0.6, y=0.6, z=0.6},
|
||||||
|
|
||||||
drawtype = "nodebox",
|
selection_box = {
|
||||||
sunlight_propagates = true,
|
type = "fixed",
|
||||||
paramtype = 'light',
|
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||||
paramtype2 = "facedir",
|
},
|
||||||
|
|
||||||
selection_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
fixed = {
|
||||||
},
|
|
||||||
|
|
||||||
node_box = {
|
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
|
||||||
type = "fixed",
|
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
|
||||||
fixed = {
|
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
|
||||||
|
|
||||||
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
|
--groundplate to stand on
|
||||||
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
|
{ -0.5,-0.5,-0.5,0.5,-0.48, 0.5},
|
||||||
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
|
},
|
||||||
|
},
|
||||||
--groundplate to stand on
|
|
||||||
{ -0.5,-0.5,-0.5,0.5,-0.48, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
tiles = {
|
|
||||||
|
|
||||||
"travelnet_elevator_inside_floor.png", -- view from top
|
|
||||||
"default_stone.png", -- view from bottom
|
|
||||||
"travelnet_elevator_inside_bottom.png", -- left side
|
|
||||||
"travelnet_elevator_inside_bottom.png", -- right side
|
|
||||||
"travelnet_elevator_inside_bottom.png", -- front view
|
|
||||||
"travelnet_elevator_inside_bottom.png", -- backward view
|
|
||||||
},
|
|
||||||
inventory_image = "travelnet_elevator_inv.png",
|
|
||||||
wield_image = "travelnet_elevator_wield.png",
|
|
||||||
|
|
||||||
groups = {cracky=1,choppy=1,snappy=1},
|
|
||||||
|
|
||||||
|
tiles = {
|
||||||
|
"travelnet_elevator_front.png",
|
||||||
|
"travelnet_elevator_inside_controls.png",
|
||||||
|
"travelnet_elevator_sides_outside.png",
|
||||||
|
"travelnet_elevator_inside_ceiling.png",
|
||||||
|
"travelnet_elevator_inside_floor.png",
|
||||||
|
"default_steel_block.png"
|
||||||
|
},
|
||||||
|
inventory_image = "travelnet_elevator_inv.png",
|
||||||
|
groups = {cracky=1,choppy=1,snappy=1},
|
||||||
|
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
|
|
||||||
@ -96,50 +92,7 @@ minetest.register_node("travelnet:elevator", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("travelnet:elevator_top", {
|
minetest.register_alias("travelnet:elevator_top", "air")
|
||||||
description = "Elevator Top",
|
|
||||||
|
|
||||||
drawtype = "nodebox",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
paramtype = 'light',
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = { 0, 0, 0, 0, 0, 0 }
|
|
||||||
-- fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
|
||||||
},
|
|
||||||
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
|
|
||||||
{ 0.48, -0.5,-0.5, 0.5, 0.5, 0.5},
|
|
||||||
{-0.5 , -0.5, 0.48, 0.48, 0.5, 0.5},
|
|
||||||
{-0.5, -0.5,-0.5 ,-0.48, 0.5, 0.5},
|
|
||||||
|
|
||||||
--top ceiling
|
|
||||||
{ -0.5, 0.48,-0.5,0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
tiles = {
|
|
||||||
|
|
||||||
"default_stone.png", -- view from top
|
|
||||||
"travelnet_elevator_inside_ceiling.png", -- view from bottom
|
|
||||||
"travelnet_elevator_inside_top_control.png", -- left side
|
|
||||||
"travelnet_elevator_inside_top.png", -- right side
|
|
||||||
"travelnet_elevator_inside_top.png", -- front view
|
|
||||||
"travelnet_elevator_inside_top.png", -- backward view
|
|
||||||
},
|
|
||||||
inventory_image = "travelnet_elevator_inv.png",
|
|
||||||
wield_image = "travelnet_elevator_wield.png",
|
|
||||||
|
|
||||||
light_source = 10,
|
|
||||||
|
|
||||||
groups = {cracky=1,choppy=1,snappy=1,not_in_creative_inventory=1},
|
|
||||||
})
|
|
||||||
|
|
||||||
--if( minetest.get_modpath("technic") ~= nil ) then
|
--if( minetest.get_modpath("technic") ~= nil ) then
|
||||||
-- minetest.register_craft({
|
-- minetest.register_craft({
|
||||||
|
63
models/travelnet.obj
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# Blender v2.73 (sub 0) OBJ File: 'travelnet.blend'
|
||||||
|
# www.blender.org
|
||||||
|
o Cylinder
|
||||||
|
v -0.499016 -0.499034 0.499022
|
||||||
|
v -0.499016 -0.499034 -0.498989
|
||||||
|
v 0.499035 -0.499034 -0.498989
|
||||||
|
v 0.499035 -0.499034 0.499022
|
||||||
|
v -0.499016 1.498990 0.499022
|
||||||
|
v -0.499016 1.498990 -0.498989
|
||||||
|
v 0.499035 1.498990 -0.498989
|
||||||
|
v 0.499035 1.498990 0.499022
|
||||||
|
v 0.437500 -0.437500 0.437500
|
||||||
|
v -0.499016 1.437500 -0.498989
|
||||||
|
v 0.499035 1.437500 -0.498989
|
||||||
|
v -0.437500 -0.437500 0.437500
|
||||||
|
v 0.437500 1.437500 0.437500
|
||||||
|
v -0.499016 -0.437500 -0.498989
|
||||||
|
v 0.499035 -0.437500 -0.498989
|
||||||
|
v -0.437500 1.437500 0.437500
|
||||||
|
v -0.437500 -0.437500 -0.498989
|
||||||
|
v 0.437500 -0.437500 -0.498989
|
||||||
|
v -0.437500 1.437500 -0.498989
|
||||||
|
v 0.437500 1.437500 -0.498989
|
||||||
|
vt 0.000000 0.968750
|
||||||
|
vt 1.000000 0.968750
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.062500 0.031250
|
||||||
|
vt 0.062500 0.968750
|
||||||
|
vt 0.000000 0.031250
|
||||||
|
vt 0.937500 0.031250
|
||||||
|
vt 1.000000 0.031250
|
||||||
|
vt 0.937500 0.968750
|
||||||
|
vt 1.000000 -0.000000
|
||||||
|
vt 0.000000 -0.000000
|
||||||
|
vt 0.062500 0.000000
|
||||||
|
vt 0.062500 1.000000
|
||||||
|
vt 0.937500 -0.000000
|
||||||
|
vt 0.937500 0.937500
|
||||||
|
vt 0.062500 0.937500
|
||||||
|
vt 0.062500 0.062500
|
||||||
|
vt 0.937500 0.062500
|
||||||
|
vt 0.937500 1.000000
|
||||||
|
g Cylinder_Cylinder_front
|
||||||
|
s off
|
||||||
|
f 11/1 10/2 6/3 7/4
|
||||||
|
f 18/5 20/6 11/1 15/7
|
||||||
|
f 17/8 14/9 10/2 19/10
|
||||||
|
f 13/6 9/5 12/8 16/10
|
||||||
|
f 2/11 14/9 15/7 3/12
|
||||||
|
g Cylinder_Cylinder_back
|
||||||
|
f 8/4 5/3 1/11 4/12
|
||||||
|
g Cylinder_Cylinder_sides
|
||||||
|
f 18/5 9/8 13/10 20/6
|
||||||
|
f 17/5 19/6 16/10 12/8
|
||||||
|
f 8/3 4/11 3/13 7/14
|
||||||
|
f 6/14 2/13 1/11 5/3
|
||||||
|
g Cylinder_Cylinder_top
|
||||||
|
f 5/12 8/11 7/3 6/4
|
||||||
|
f 19/13 20/15 13/16 16/17
|
||||||
|
g Cylinder_Cylinder_bottom
|
||||||
|
f 17/14 12/18 9/19 18/20
|
||||||
|
f 2/12 3/11 4/3 1/4
|
64
models/travelnet_elevator.obj
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
# Blender v2.73 (sub 0) OBJ File: 'travelnet_elevator.blend'
|
||||||
|
# www.blender.org
|
||||||
|
o Cylinder
|
||||||
|
v -0.499016 -0.499034 0.499022
|
||||||
|
v -0.499016 -0.499034 -0.498989
|
||||||
|
v 0.499035 -0.499034 -0.498989
|
||||||
|
v 0.499035 -0.499034 0.499022
|
||||||
|
v -0.499016 1.498990 0.499022
|
||||||
|
v -0.499016 1.498990 -0.498989
|
||||||
|
v 0.499035 1.498990 -0.498989
|
||||||
|
v 0.499035 1.498990 0.499022
|
||||||
|
v 0.437500 -0.437500 0.437500
|
||||||
|
v -0.499016 1.437500 -0.498989
|
||||||
|
v 0.499035 1.437500 -0.498989
|
||||||
|
v -0.437500 -0.437500 0.437500
|
||||||
|
v 0.437500 1.437500 0.437500
|
||||||
|
v -0.499016 -0.437500 -0.498989
|
||||||
|
v 0.499035 -0.437500 -0.498989
|
||||||
|
v -0.437500 1.437500 0.437500
|
||||||
|
v -0.437500 -0.437500 -0.498989
|
||||||
|
v 0.437500 -0.437500 -0.498989
|
||||||
|
v -0.437500 1.437500 -0.498989
|
||||||
|
v 0.437500 1.437500 -0.498989
|
||||||
|
vt 0.000000 0.968750
|
||||||
|
vt 1.000000 0.968750
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt 0.062500 0.031250
|
||||||
|
vt 0.062500 0.968750
|
||||||
|
vt 0.000000 0.031250
|
||||||
|
vt 0.937500 0.031250
|
||||||
|
vt 1.000000 0.031250
|
||||||
|
vt 0.937500 0.968750
|
||||||
|
vt 1.000000 -0.000000
|
||||||
|
vt 0.000000 -0.000000
|
||||||
|
vt 0.062500 -0.000000
|
||||||
|
vt 0.937500 -0.000000
|
||||||
|
vt 0.937500 0.937500
|
||||||
|
vt 0.062500 0.937500
|
||||||
|
vt 0.062500 1.000000
|
||||||
|
vt 0.062500 0.062500
|
||||||
|
vt 0.937500 0.062500
|
||||||
|
vt 0.937500 1.000000
|
||||||
|
g Cylinder_Cylinder_front
|
||||||
|
s off
|
||||||
|
f 11/1 10/2 6/3 7/4
|
||||||
|
f 18/5 20/6 11/1 15/7
|
||||||
|
f 17/8 14/9 10/2 19/10
|
||||||
|
f 13/6 9/5 12/8 16/10
|
||||||
|
f 2/11 14/9 15/7 3/12
|
||||||
|
f 17/7 19/1 16/10 12/8
|
||||||
|
g Cylinder_Cylinder_controls
|
||||||
|
f 18/7 9/8 13/10 20/1
|
||||||
|
g Cylinder_Cylinder_outside
|
||||||
|
f 8/3 4/11 3/12 7/4
|
||||||
|
f 6/4 2/12 1/11 5/3
|
||||||
|
f 8/4 5/3 1/11 4/12
|
||||||
|
g Cylinder_Cylinder_ceiling
|
||||||
|
f 19/13 20/14 13/15 16/16
|
||||||
|
g Cylinder_Cylinder_floor
|
||||||
|
f 17/17 12/18 9/19 18/20
|
||||||
|
g Cylinder_Cylinder_top-bottom
|
||||||
|
f 5/12 8/11 7/3 6/4
|
||||||
|
f 2/12 3/11 4/3 1/4
|
BIN
textures/travelnet_elevator_front.png
Normal file
After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 292 B |
BIN
textures/travelnet_elevator_inside_controls.png
Normal file
After Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.8 KiB |
BIN
textures/travelnet_elevator_sides_outside.png
Normal file
After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 533 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 904 B |
Before Width: | Height: | Size: 602 B After Width: | Height: | Size: 731 B |
Before Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 118 KiB |
@ -5,47 +5,45 @@
|
|||||||
-- Autor: Sokomine
|
-- Autor: Sokomine
|
||||||
minetest.register_node("travelnet:travelnet", {
|
minetest.register_node("travelnet:travelnet", {
|
||||||
|
|
||||||
description = "Travelnet box",
|
description = "Travelnet box",
|
||||||
|
|
||||||
drawtype = "nodebox",
|
drawtype = "mesh",
|
||||||
sunlight_propagates = true,
|
mesh = "travelnet.obj",
|
||||||
paramtype = 'light',
|
sunlight_propagates = true,
|
||||||
paramtype2 = "facedir",
|
paramtype = 'light',
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
wield_scale = {x=0.6, y=0.6, z=0.6},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||||
|
},
|
||||||
|
|
||||||
selection_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
fixed = {
|
||||||
},
|
|
||||||
|
|
||||||
node_box = {
|
{ 0.45, -0.5,-0.5, 0.5, 1.45, 0.5},
|
||||||
type = "fixed",
|
{-0.5 , -0.5, 0.45, 0.45, 1.45, 0.5},
|
||||||
fixed = {
|
{-0.5, -0.5,-0.5 ,-0.45, 1.45, 0.5},
|
||||||
|
|
||||||
{ 0.45, -0.5,-0.5, 0.5, 1.45, 0.5},
|
--groundplate to stand on
|
||||||
{-0.5 , -0.5, 0.45, 0.45, 1.45, 0.5},
|
{ -0.5,-0.5,-0.5,0.5,-0.45, 0.5},
|
||||||
{-0.5, -0.5,-0.5 ,-0.45, 1.45, 0.5},
|
--roof
|
||||||
|
{ -0.5, 1.45,-0.5,0.5, 1.5, 0.5},
|
||||||
|
|
||||||
--groundplate to stand on
|
-- control panel
|
||||||
{ -0.5,-0.5,-0.5,0.5,-0.45, 0.5},
|
-- { -0.2, 0.6, 0.3, 0.2, 1.1, 0.5},
|
||||||
--roof
|
|
||||||
{ -0.5, 1.45,-0.5,0.5, 1.5, 0.5},
|
|
||||||
|
|
||||||
-- control panel
|
},
|
||||||
-- { -0.2, 0.6, 0.3, 0.2, 1.1, 0.5},
|
},
|
||||||
|
|
||||||
},
|
tiles = {
|
||||||
},
|
"travelnet_travelnet_front.png", -- backward view
|
||||||
|
"travelnet_travelnet_back.png", -- front view
|
||||||
|
"travelnet_travelnet_side.png", -- sides :)
|
||||||
tiles = {
|
"default_steel_block.png", -- view from top
|
||||||
|
"default_clay.png", -- view from bottom
|
||||||
"default_clay.png", -- view from top
|
},
|
||||||
"default_clay.png", -- view from bottom
|
|
||||||
"travelnet_travelnet_side.png", -- left side
|
|
||||||
"travelnet_travelnet_side.png", -- right side
|
|
||||||
"travelnet_travelnet_back.png", -- front view
|
|
||||||
"travelnet_travelnet_front.png", -- backward view
|
|
||||||
},
|
|
||||||
inventory_image = "travelnet_inv.png",
|
inventory_image = "travelnet_inv.png",
|
||||||
|
|
||||||
groups = {cracky=1,choppy=1,snappy=1},
|
groups = {cracky=1,choppy=1,snappy=1},
|
||||||
|