Browse Source

Rails: Make names consistent and redo all rail textures

Add rail templates
pull/20/head
SmallJoker 6 years ago
parent
commit
99d0480169
  1. 17
      README.txt
  2. 4
      detector.lua
  3. 2
      functions.lua
  4. 28
      rails.lua
  5. BIN
      textures/carts_rail_brk.png
  6. BIN
      textures/carts_rail_cp.png
  7. BIN
      textures/carts_rail_crossing.png
  8. BIN
      textures/carts_rail_crossing_brk.png
  9. BIN
      textures/carts_rail_crossing_cp.png
  10. BIN
      textures/carts_rail_crossing_dtc.png
  11. BIN
      textures/carts_rail_crossing_dtc_on.png
  12. BIN
      textures/carts_rail_crossing_pwr.png
  13. BIN
      textures/carts_rail_crossing_ss.png
  14. BIN
      textures/carts_rail_curved.png
  15. BIN
      textures/carts_rail_curved_brk.png
  16. BIN
      textures/carts_rail_curved_cp.png
  17. BIN
      textures/carts_rail_curved_dtc.png
  18. BIN
      textures/carts_rail_curved_dtc_on.png
  19. BIN
      textures/carts_rail_curved_pwr.png
  20. BIN
      textures/carts_rail_curved_ss.png
  21. BIN
      textures/carts_rail_dtc.png
  22. BIN
      textures/carts_rail_dtc_on.png
  23. BIN
      textures/carts_rail_pwr.png
  24. BIN
      textures/carts_rail_ss.png
  25. BIN
      textures/carts_rail_straight.png
  26. BIN
      textures/carts_rail_straight_brk.png
  27. BIN
      textures/carts_rail_straight_cp.png
  28. BIN
      textures/carts_rail_straight_dtc.png
  29. BIN
      textures/carts_rail_straight_dtc_on.png
  30. BIN
      textures/carts_rail_straight_pwr.png
  31. BIN
      textures/carts_rail_straight_ss.png
  32. BIN
      textures/carts_rail_t_junction.png
  33. BIN
      textures/carts_rail_t_junction_brk.png
  34. BIN
      textures/carts_rail_t_junction_cp.png
  35. BIN
      textures/carts_rail_t_junction_dtc.png
  36. BIN
      textures/carts_rail_t_junction_dtc_on.png
  37. BIN
      textures/carts_rail_t_junction_pwr.png
  38. BIN
      textures/carts_rail_t_junction_ss.png
  39. BIN
      textures/default_rail_t_junction.png
  40. BIN
      textures/templates/crossing.png
  41. BIN
      textures/templates/curved.png
  42. BIN
      textures/templates/straight.png
  43. BIN
      textures/templates/t_junction.png

17
README.txt

@ -22,15 +22,8 @@ CC-0, if not specified otherwise below
Authors
---------
Hawk777
carts_rail_ss.png
carts_rail_*_ss.png
hexafraction
carts_rail_brk.png
carts_rail_*_brk.png
carts_rail_pwr.png
carts_rail_*_pwr.png
Various authors
carts_rail_*.png
kddekadenz
cart_bottom.png
@ -41,12 +34,6 @@ klankbeeld (CC-BY 3.0)
http://freesound.org/people/klankbeeld/sounds/174042/
cart_rail.*.ogg
numberZero
carts_rail_dtc.png
carts_rail_dtc_on.png
carts_rail_*_dtc.png
carts_rail_*_dtc_on.png
Zeg9
cart.x
cart.png

4
detector.lua

@ -26,7 +26,7 @@ end
boost_cart:register_rail("boost_cart:detectorrail", {
description = "Detector rail",
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"
},
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", {
description = "Detector rail ON (you hacker you)",
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"
},
groups = boost_cart:get_rail_groups({

2
functions.lua

@ -197,7 +197,7 @@ function boost_cart:register_rail(name, def)
drawtype = "raillike",
paramtype = "light",
sunlight_propagates = true,
is_ground_content = true,
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",

28
rails.lua

@ -1,20 +1,20 @@
boost_cart:register_rail(":default:rail", {
description = "Rail",
tiles = {
"default_rail.png", "default_rail_curved.png",
"default_rail_t_junction.png", "default_rail_crossing.png"
"carts_rail_straight.png", "carts_rail_curved.png",
"carts_rail_t_junction.png", "carts_rail_crossing.png"
},
groups = boost_cart:get_rail_groups()
})
-- Moreores' copper rail
if minetest.get_modpath("moreores") then
-- Moreores' copper rail
minetest.register_alias("carts:copperrail", "moreores:copper_rail")
else
boost_cart:register_rail(":carts:copperrail", {
description = "Copper rail",
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"
},
groups = boost_cart:get_rail_groups()
@ -23,29 +23,26 @@ else
minetest.register_craft({
output = "carts:copperrail 12",
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"},
}
})
end
-- Speed up
-- Power rail
boost_cart:register_rail(":carts:powerrail", {
description = "Powered rail",
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"
},
groups = boost_cart:get_rail_groups(),
after_place_node = function(pos, placer, itemstack)
if not mesecon then
minetest.get_meta(pos):set_string("cart_acceleration", "0.5")
end
end,
mesecons = {
effector = {
action_on = function(pos, node)
@ -67,20 +64,19 @@ minetest.register_craft({
}
})
-- Brake rail
boost_cart:register_rail(":carts:brakerail", {
description = "Brake rail",
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"
},
groups = boost_cart:get_rail_groups(),
after_place_node = function(pos, placer, itemstack)
if not mesecon then
minetest.get_meta(pos):set_string("cart_acceleration", "-0.3")
end
end,
mesecons = {
effector = {
action_on = function(pos, node)
@ -105,17 +101,15 @@ minetest.register_craft({
boost_cart:register_rail("boost_cart:startstoprail", {
description = "Start-stop rail",
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"
},
groups = boost_cart:get_rail_groups(),
after_place_node = function(pos, placer, itemstack)
if not mesecon then
minetest.get_meta(pos):set_string("cart_acceleration", "halt")
end
end,
mesecons = {
effector = {
action_on = function(pos, node)

BIN
textures/carts_rail_brk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 B

BIN
textures/carts_rail_cp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 B

BIN
textures/carts_rail_crossing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

BIN
textures/carts_rail_crossing_brk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 765 B

BIN
textures/carts_rail_crossing_cp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 B

After

Width:  |  Height:  |  Size: 735 B

BIN
textures/carts_rail_crossing_dtc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 823 B

BIN
textures/carts_rail_crossing_dtc_on.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 823 B

BIN
textures/carts_rail_crossing_pwr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 847 B

BIN
textures/carts_rail_crossing_ss.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 813 B

BIN
textures/carts_rail_curved.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

BIN
textures/carts_rail_curved_brk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 738 B

BIN
textures/carts_rail_curved_cp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 691 B

BIN
textures/carts_rail_curved_dtc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 780 B

BIN
textures/carts_rail_curved_dtc_on.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 780 B

BIN
textures/carts_rail_curved_pwr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 798 B

BIN
textures/carts_rail_curved_ss.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 832 B

BIN
textures/carts_rail_dtc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

BIN
textures/carts_rail_dtc_on.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

BIN
textures/carts_rail_pwr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

BIN
textures/carts_rail_ss.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

BIN
textures/carts_rail_straight.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

BIN
textures/carts_rail_straight_brk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

BIN
textures/carts_rail_straight_cp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

BIN
textures/carts_rail_straight_dtc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

BIN
textures/carts_rail_straight_dtc_on.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

BIN
textures/carts_rail_straight_pwr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

BIN
textures/carts_rail_straight_ss.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

BIN
textures/carts_rail_t_junction.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

BIN
textures/carts_rail_t_junction_brk.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 714 B

BIN
textures/carts_rail_t_junction_cp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

After

Width:  |  Height:  |  Size: 715 B

BIN
textures/carts_rail_t_junction_dtc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 752 B

BIN
textures/carts_rail_t_junction_dtc_on.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 808 B

BIN
textures/carts_rail_t_junction_pwr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 761 B

BIN
textures/carts_rail_t_junction_ss.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

After

Width:  |  Height:  |  Size: 813 B

BIN
textures/default_rail_t_junction.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

BIN
textures/templates/crossing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

BIN
textures/templates/curved.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

BIN
textures/templates/straight.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

BIN
textures/templates/t_junction.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Loading…
Cancel
Save