Rails: Make names consistent and redo all rail textures
Add rail templates
17
README.txt
|
@ -22,15 +22,8 @@ CC-0, if not specified otherwise below
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
---------
|
---------
|
||||||
Hawk777
|
Various authors
|
||||||
carts_rail_ss.png
|
carts_rail_*.png
|
||||||
carts_rail_*_ss.png
|
|
||||||
|
|
||||||
hexafraction
|
|
||||||
carts_rail_brk.png
|
|
||||||
carts_rail_*_brk.png
|
|
||||||
carts_rail_pwr.png
|
|
||||||
carts_rail_*_pwr.png
|
|
||||||
|
|
||||||
kddekadenz
|
kddekadenz
|
||||||
cart_bottom.png
|
cart_bottom.png
|
||||||
|
@ -41,12 +34,6 @@ klankbeeld (CC-BY 3.0)
|
||||||
http://freesound.org/people/klankbeeld/sounds/174042/
|
http://freesound.org/people/klankbeeld/sounds/174042/
|
||||||
cart_rail.*.ogg
|
cart_rail.*.ogg
|
||||||
|
|
||||||
numberZero
|
|
||||||
carts_rail_dtc.png
|
|
||||||
carts_rail_dtc_on.png
|
|
||||||
carts_rail_*_dtc.png
|
|
||||||
carts_rail_*_dtc_on.png
|
|
||||||
|
|
||||||
Zeg9
|
Zeg9
|
||||||
cart.x
|
cart.x
|
||||||
cart.png
|
cart.png
|
|
@ -26,7 +26,7 @@ end
|
||||||
boost_cart:register_rail("boost_cart:detectorrail", {
|
boost_cart:register_rail("boost_cart:detectorrail", {
|
||||||
description = "Detector rail",
|
description = "Detector rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_dtc.png", "carts_rail_curved_dtc.png",
|
"carts_rail_straight_dtc.png", "carts_rail_curved_dtc.png",
|
||||||
"carts_rail_t_junction_dtc.png", "carts_rail_crossing_dtc.png"
|
"carts_rail_t_junction_dtc.png", "carts_rail_crossing_dtc.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups({detector_rail = 1}),
|
groups = boost_cart:get_rail_groups({detector_rail = 1}),
|
||||||
|
@ -37,7 +37,7 @@ boost_cart:register_rail("boost_cart:detectorrail", {
|
||||||
boost_cart:register_rail("boost_cart:detectorrail_on", {
|
boost_cart:register_rail("boost_cart:detectorrail_on", {
|
||||||
description = "Detector rail ON (you hacker you)",
|
description = "Detector rail ON (you hacker you)",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_dtc_on.png", "carts_rail_curved_dtc_on.png",
|
"carts_rail_straight_dtc_on.png", "carts_rail_curved_dtc_on.png",
|
||||||
"carts_rail_t_junction_dtc_on.png", "carts_rail_crossing_dtc_on.png"
|
"carts_rail_t_junction_dtc_on.png", "carts_rail_crossing_dtc_on.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups({
|
groups = boost_cart:get_rail_groups({
|
||||||
|
|
|
@ -197,7 +197,7 @@ function boost_cart:register_rail(name, def)
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
|
28
rails.lua
|
@ -1,20 +1,20 @@
|
||||||
boost_cart:register_rail(":default:rail", {
|
boost_cart:register_rail(":default:rail", {
|
||||||
description = "Rail",
|
description = "Rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"default_rail.png", "default_rail_curved.png",
|
"carts_rail_straight.png", "carts_rail_curved.png",
|
||||||
"default_rail_t_junction.png", "default_rail_crossing.png"
|
"carts_rail_t_junction.png", "carts_rail_crossing.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups()
|
groups = boost_cart:get_rail_groups()
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("moreores") then
|
|
||||||
-- Moreores' copper rail
|
-- Moreores' copper rail
|
||||||
|
if minetest.get_modpath("moreores") then
|
||||||
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
|
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
|
||||||
else
|
else
|
||||||
boost_cart:register_rail(":carts:copperrail", {
|
boost_cart:register_rail(":carts:copperrail", {
|
||||||
description = "Copper rail",
|
description = "Copper rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_cp.png", "carts_rail_curved_cp.png",
|
"carts_rail_straight_cp.png", "carts_rail_curved_cp.png",
|
||||||
"carts_rail_t_junction_cp.png", "carts_rail_crossing_cp.png"
|
"carts_rail_t_junction_cp.png", "carts_rail_crossing_cp.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups()
|
groups = boost_cart:get_rail_groups()
|
||||||
|
@ -23,29 +23,26 @@ else
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "carts:copperrail 12",
|
output = "carts:copperrail 12",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
{"default:copper_ingot", "", "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", "", "default:copper_ingot"},
|
||||||
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Speed up
|
-- Power rail
|
||||||
|
|
||||||
boost_cart:register_rail(":carts:powerrail", {
|
boost_cart:register_rail(":carts:powerrail", {
|
||||||
description = "Powered rail",
|
description = "Powered rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_pwr.png", "carts_rail_curved_pwr.png",
|
"carts_rail_straight_pwr.png", "carts_rail_curved_pwr.png",
|
||||||
"carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"
|
"carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups(),
|
groups = boost_cart:get_rail_groups(),
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
if not mesecon then
|
if not mesecon then
|
||||||
minetest.get_meta(pos):set_string("cart_acceleration", "0.5")
|
minetest.get_meta(pos):set_string("cart_acceleration", "0.5")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
|
@ -67,20 +64,19 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Brake rail
|
||||||
boost_cart:register_rail(":carts:brakerail", {
|
boost_cart:register_rail(":carts:brakerail", {
|
||||||
description = "Brake rail",
|
description = "Brake rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_brk.png", "carts_rail_curved_brk.png",
|
"carts_rail_straight_brk.png", "carts_rail_curved_brk.png",
|
||||||
"carts_rail_t_junction_brk.png", "carts_rail_crossing_brk.png"
|
"carts_rail_t_junction_brk.png", "carts_rail_crossing_brk.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups(),
|
groups = boost_cart:get_rail_groups(),
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
if not mesecon then
|
if not mesecon then
|
||||||
minetest.get_meta(pos):set_string("cart_acceleration", "-0.3")
|
minetest.get_meta(pos):set_string("cart_acceleration", "-0.3")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
|
@ -105,17 +101,15 @@ minetest.register_craft({
|
||||||
boost_cart:register_rail("boost_cart:startstoprail", {
|
boost_cart:register_rail("boost_cart:startstoprail", {
|
||||||
description = "Start-stop rail",
|
description = "Start-stop rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
"carts_rail_ss.png", "carts_rail_curved_ss.png",
|
"carts_rail_straight_ss.png", "carts_rail_curved_ss.png",
|
||||||
"carts_rail_t_junction_ss.png", "carts_rail_crossing_ss.png"
|
"carts_rail_t_junction_ss.png", "carts_rail_crossing_ss.png"
|
||||||
},
|
},
|
||||||
groups = boost_cart:get_rail_groups(),
|
groups = boost_cart:get_rail_groups(),
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
if not mesecon then
|
if not mesecon then
|
||||||
minetest.get_meta(pos):set_string("cart_acceleration", "halt")
|
minetest.get_meta(pos):set_string("cart_acceleration", "halt")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
mesecons = {
|
mesecons = {
|
||||||
effector = {
|
effector = {
|
||||||
action_on = function(pos, node)
|
action_on = function(pos, node)
|
||||||
|
|
Before Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 522 B |
BIN
textures/carts_rail_crossing.png
Normal file
After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 765 B |
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 847 B |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 813 B |
BIN
textures/carts_rail_curved.png
Normal file
After Width: | Height: | Size: 750 B |
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 798 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 507 B |
BIN
textures/carts_rail_straight.png
Normal file
After Width: | Height: | Size: 785 B |
BIN
textures/carts_rail_straight_brk.png
Normal file
After Width: | Height: | Size: 789 B |
BIN
textures/carts_rail_straight_cp.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
textures/carts_rail_straight_dtc.png
Normal file
After Width: | Height: | Size: 830 B |
BIN
textures/carts_rail_straight_dtc_on.png
Normal file
After Width: | Height: | Size: 830 B |
BIN
textures/carts_rail_straight_pwr.png
Normal file
After Width: | Height: | Size: 836 B |
BIN
textures/carts_rail_straight_ss.png
Normal file
After Width: | Height: | Size: 843 B |
BIN
textures/carts_rail_t_junction.png
Normal file
After Width: | Height: | Size: 789 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 714 B |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 539 B After Width: | Height: | Size: 761 B |
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 813 B |
Before Width: | Height: | Size: 476 B |
BIN
textures/templates/crossing.png
Normal file
After Width: | Height: | Size: 368 B |
BIN
textures/templates/curved.png
Normal file
After Width: | Height: | Size: 400 B |
BIN
textures/templates/straight.png
Normal file
After Width: | Height: | Size: 248 B |
BIN
textures/templates/t_junction.png
Normal file
After Width: | Height: | Size: 323 B |