Use mesh nodes instead of nodeboxes
also, removed the 512px textures since they only bloat the repo and are now obsolete.
69
elevator.lua
@ -4,18 +4,19 @@
|
|||||||
|
|
||||||
minetest.register_node("travelnet:elevator", {
|
minetest.register_node("travelnet:elevator", {
|
||||||
description = "Elevator",
|
description = "Elevator",
|
||||||
|
drawtype = "mesh",
|
||||||
drawtype = "nodebox",
|
mesh = "travelnet_elevator.obj",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
wield_scale = {x=0.6, y=0.6, z=0.6},
|
||||||
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||||
},
|
},
|
||||||
|
|
||||||
node_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
|
||||||
@ -28,22 +29,17 @@ minetest.register_node("travelnet:elevator", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
tiles = {
|
tiles = {
|
||||||
|
"travelnet_elevator_front.png",
|
||||||
"travelnet_elevator_inside_floor.png", -- view from top
|
"travelnet_elevator_inside_controls.png",
|
||||||
"default_stone.png", -- view from bottom
|
"travelnet_elevator_sides_outside.png",
|
||||||
"travelnet_elevator_inside_bottom.png", -- left side
|
"travelnet_elevator_inside_ceiling.png",
|
||||||
"travelnet_elevator_inside_bottom.png", -- right side
|
"travelnet_elevator_inside_floor.png",
|
||||||
"travelnet_elevator_inside_bottom.png", -- front view
|
"default_steel_block.png"
|
||||||
"travelnet_elevator_inside_bottom.png", -- backward view
|
|
||||||
},
|
},
|
||||||
inventory_image = "travelnet_elevator_inv.png",
|
inventory_image = "travelnet_elevator_inv.png",
|
||||||
wield_image = "travelnet_elevator_wield.png",
|
|
||||||
|
|
||||||
groups = {cracky=1,choppy=1,snappy=1},
|
groups = {cracky=1,choppy=1,snappy=1},
|
||||||
|
|
||||||
|
|
||||||
light_source = 10,
|
light_source = 10,
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
@ -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 |
@ -7,17 +7,18 @@ minetest.register_node("travelnet:travelnet", {
|
|||||||
|
|
||||||
description = "Travelnet box",
|
description = "Travelnet box",
|
||||||
|
|
||||||
drawtype = "nodebox",
|
drawtype = "mesh",
|
||||||
|
mesh = "travelnet.obj",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
wield_scale = {x=0.6, y=0.6, z=0.6},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||||
},
|
},
|
||||||
|
|
||||||
node_box = {
|
collision_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
|
||||||
@ -36,15 +37,12 @@ minetest.register_node("travelnet:travelnet", {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
tiles = {
|
tiles = {
|
||||||
|
|
||||||
"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
|
"travelnet_travelnet_front.png", -- backward view
|
||||||
|
"travelnet_travelnet_back.png", -- front view
|
||||||
|
"travelnet_travelnet_side.png", -- sides :)
|
||||||
|
"default_steel_block.png", -- view from top
|
||||||
|
"default_clay.png", -- view from bottom
|
||||||
},
|
},
|
||||||
inventory_image = "travelnet_inv.png",
|
inventory_image = "travelnet_inv.png",
|
||||||
|
|
||||||
|