train goes on rail
parent
6b4ed349f4
commit
3ab1c31315
Binary file not shown.
|
@ -15,7 +15,7 @@ minetest.register_node("minegistics:PowerPlant", {
|
|||
"One power plant is needed for every 5 buildings.\n" ..
|
||||
"Must be placed within 200 meters of the buildings it powers.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "power_plant.obj",
|
||||
wield_image = "power_plant_wield.png",
|
||||
|
|
|
@ -10,12 +10,11 @@ minetest.register_node("minegistics:Collector", {
|
|||
"Place on a resource node and connect to a\n" ..
|
||||
"factory or market with rails and a train.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "collector.obj",
|
||||
wield_image = "collector_wield.png",
|
||||
inventory_image = "collector_wield.png",
|
||||
groups = {dig_immediate=2},
|
||||
on_construct = function(pos)
|
||||
table.insert(power_consumers, pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
@ -47,7 +46,7 @@ minetest.register_node("minegistics:Market", {
|
|||
"Must be connected by rail to a factory or collector.\n" ..
|
||||
"Must also be connected to a town.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "market.obj",
|
||||
wield_image = "market_wield.png",
|
||||
|
@ -90,7 +89,7 @@ minetest.register_node("minegistics:Town", {
|
|||
description = "Town: Required to earn money from markets.\n" ..
|
||||
"Connect to a market with rails and add a train.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "town.obj",
|
||||
wield_image = "town_wield.png",
|
||||
|
@ -114,7 +113,7 @@ minetest.register_node("minegistics:Town", {
|
|||
minetest.register_node("minegistics:Warehouse", {
|
||||
description = "Warehouse: Stores items.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "warehouse.obj",
|
||||
wield_image = "warehouse_wield.png",
|
||||
|
@ -163,7 +162,7 @@ minetest.register_node("minegistics:Factory", {
|
|||
description = "Factory: Converts resources into products.\n" ..
|
||||
"Both can be sold but products are worth more.",
|
||||
tiles = {"buildings.png"},
|
||||
groups = {dig_immediate=2},
|
||||
groups = {dig_immediate=2, structures=1},
|
||||
drawtype = 'mesh',
|
||||
mesh = "factory.obj",
|
||||
wield_image = "factory_wield.png",
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 190 B |
|
@ -1,7 +1,15 @@
|
|||
minetest.register_node("minegistics_trains:new", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {dig_immediate=2, new=1},
|
||||
groups = {dig_immediate=2, new=1, rail=1},
|
||||
tiles = {
|
||||
"train_new_top.png",
|
||||
"train_new_bottom.png",
|
||||
"train_new_side.png",
|
||||
"train_new_side.png",
|
||||
"train_new_side.png",
|
||||
"train_new_side.png"
|
||||
},
|
||||
node_box = {
|
||||
type = "connected",
|
||||
connect_sides = {"front", "left", "back", "right"},
|
||||
|
@ -158,6 +166,6 @@ minetest.register_node("minegistics_trains:new", {
|
|||
}
|
||||
},
|
||||
|
||||
connects_to = {"group:new"},
|
||||
connects_to = {"group:new", "group:structures"},
|
||||
|
||||
})
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 153 B |
Binary file not shown.
After Width: | Height: | Size: 195 B |
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
Loading…
Reference in New Issue