forked from mtcontrib/boost_cart
Add moreores compatibility
This commit is contained in:
parent
b6f476db37
commit
717721c912
@ -1,6 +1,6 @@
|
|||||||
Minetest mod: boost_cart
|
Minetest mod: boost_cart
|
||||||
=======================
|
=======================
|
||||||
Based on the mod "carts" by PilzAdam
|
Based on (and fully compatible with) the mod "carts" by PilzAdam
|
||||||
Target: Run smoothly and do not use too much CPU
|
Target: Run smoothly and do not use too much CPU
|
||||||
|
|
||||||
License of source code:
|
License of source code:
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
default
|
default
|
||||||
mesecons?
|
mesecons?
|
||||||
|
moreores?
|
14
rails.lua
14
rails.lua
@ -15,8 +15,11 @@ minetest.register_node(":default:rail", {
|
|||||||
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
|
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Copper rail
|
if minetest.get_modpath("moreores") then
|
||||||
minetest.register_node(":carts:copperrail", {
|
-- Moreores' copper rail
|
||||||
|
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
|
||||||
|
else
|
||||||
|
minetest.register_node(":carts:copperrail", {
|
||||||
description = "Copper rail",
|
description = "Copper rail",
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
tiles = {"carts_rail_cp.png", "carts_rail_curved_cp.png", "carts_rail_t_junction_cp.png", "carts_rail_crossing_cp.png"},
|
tiles = {"carts_rail_cp.png", "carts_rail_curved_cp.png", "carts_rail_t_junction_cp.png", "carts_rail_crossing_cp.png"},
|
||||||
@ -31,16 +34,17 @@ minetest.register_node(":carts:copperrail", {
|
|||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
|
groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "carts:copperrail 12",
|
output = "carts:copperrail 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
||||||
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
||||||
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Speed up
|
-- Speed up
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user