mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-23 15:53:44 +01:00
made compatible with mineclone2
This commit is contained in:
parent
c295395ae8
commit
af49bccd79
53
config.lua
53
config.lua
@ -29,6 +29,59 @@ travelnet.elevator_recipe = {
|
||||
{"default:steel_ingot", "", "default:steel_ingot", },
|
||||
{"default:steel_ingot", "default:glass", "default:steel_ingot", }
|
||||
}
|
||||
travelnet.tiles_travelnet = {
|
||||
"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
|
||||
}
|
||||
travelnet.tiles_elevator = {
|
||||
"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"
|
||||
}
|
||||
travelnet.travelnet_inventory_image = "travelnet_inv.png"
|
||||
travelnet.elevator_inventory_image = "travelnet_elevator_inv.png"
|
||||
|
||||
if( minetest.registered_nodes["mcl_core:wood"]) then
|
||||
travelnet.travelnet_recipe = {
|
||||
{"mcl_stairs:slab_wood", "mcl_stairs:slab_wood", "mcl_stairs:slab_wood",},
|
||||
{"mesecons_torch:mesecon_torch_on", "mcl_chests:chest", "mesecons_torch:mesecon_torch_on"},
|
||||
{"mesecons_torch:mesecon_torch_on", "mcl_chests:chest", "mesecons_torch:mesecon_torch_on"},
|
||||
-- {"core:glass", "mcl_core:iron_ingot", "mcl_core:glass", },
|
||||
-- {"mcl_core:glass", "mesecons_torch:redstoneblock", "mcl_core:glass", },
|
||||
-- {"mcl_core:glass", "mcl_core:iron_ingot", "mcl_core:glass", }
|
||||
}
|
||||
travelnet.elevator_recipe = {
|
||||
{"mcl_stairs:slab_wood", "mcl_stairs:slab_wood", "mcl_stairs:slab_wood",},
|
||||
{"mesecons_torch:mesecon_torch_on", "", "mesecons_torch:mesecon_torch_on"},
|
||||
{"mesecons_torch:mesecon_torch_on", "", "mesecons_torch:mesecon_torch_on"},
|
||||
-- {"mcl_core:iron_ingot", "mcl_core:glass", "mcl_core:iron_ingot", },
|
||||
-- {"mcl_core:iron_ingot", "", "mcl_core:iron_ingot", },
|
||||
-- {"mcl_core:iron_ingot", "mcl_core:glass", "mcl_core:iron_ingot", }
|
||||
}
|
||||
travelnet.tiles_travelnet = {
|
||||
"default_wood.png^[transformR90", -- backward view
|
||||
"default_wood.png^[transformR90", -- front view
|
||||
"default_wood.png^[transformR90", -- sides :)
|
||||
"default_wood.png^[transformR90", -- view from top
|
||||
"default_wood.png^[transformR90", -- view from bottom
|
||||
}
|
||||
travelnet.tiles_elevator = {
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- front
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- inside
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- sides outside
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- inside ceiling
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- inside floor
|
||||
"mcl_core_planks_big_oak.png^[transformR90", -- top
|
||||
}
|
||||
travelnet.travelnet_inventory_image = nil
|
||||
travelnet.elevator_inventory_image = nil
|
||||
end
|
||||
|
||||
-- if this function returns true, the player with the name player_name is
|
||||
-- allowed to add a box to the network named network_name, which is owned
|
||||
|
@ -92,6 +92,9 @@ travelnet.register_door = function( node_base_name, def_tiles, material )
|
||||
end
|
||||
|
||||
-- actually register the doors
|
||||
-- (but only if the materials for them exist)
|
||||
if( minetest.registered_nodes["default:glass"]) then
|
||||
travelnet.register_door( "travelnet:elevator_door_steel", {"default_stone.png"}, "default:steel_ingot");
|
||||
travelnet.register_door( "travelnet:elevator_door_glass", {"travelnet_elevator_door_glass.png"}, "default:glass");
|
||||
travelnet.register_door( "travelnet:elevator_door_tin", {"default_clay.png"}, "default:tin_ingot");
|
||||
end
|
||||
|
16
elevator.lua
16
elevator.lua
@ -114,16 +114,12 @@ minetest.register_node("travelnet:elevator", {
|
||||
},
|
||||
},
|
||||
|
||||
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},
|
||||
tiles = travelnet.tiles_elevator,
|
||||
|
||||
inventory_image = travelnet.elevator_inventory_image,
|
||||
groups = {cracky=1,choppy=1,snappy=1,
|
||||
-- for MineClone2
|
||||
handy=1, axey=1, pickaxey=1, building_block=1, material_wood=1},
|
||||
|
||||
light_source = 10,
|
||||
|
||||
|
@ -39,16 +39,14 @@ minetest.register_node("travelnet:travelnet", {
|
||||
},
|
||||
},
|
||||
|
||||
tiles = {
|
||||
"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",
|
||||
tiles = travelnet.tiles_travelnet,
|
||||
|
||||
inventory_image = travelnet.travelnet_inventory_image,
|
||||
|
||||
groups = {cracky=1,choppy=1,snappy=1,
|
||||
-- for MineClone2
|
||||
handy=1, axey=1, pickaxey=1, building_block=1, material_wood=1},
|
||||
|
||||
groups = {cracky=1,choppy=1,snappy=1},
|
||||
|
||||
light_source = 10,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user