Browse Source

Rails: Make names consistent and redo all rail textures

Add rail templates
pull/20/head
SmallJoker 3 years ago
parent
commit
99d0480169
43 changed files with 16 additions and 34 deletions
  1. +2
    -15
      README.txt
  2. +2
    -2
      detector.lua
  3. +1
    -1
      functions.lua
  4. +11
    -16
      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

+ 2
- 15
README.txt View File

@@ -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

+ 2
- 2
detector.lua View File

@@ -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({


+ 1
- 1
functions.lua View File

@@ -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",


+ 11
- 16
rails.lua View File

@@ -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

-- 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 View File

Before After
Width: 16  |  Height: 16  |  Size: 577B

BIN
textures/carts_rail_cp.png View File

Before After
Width: 16  |  Height: 16  |  Size: 522B

BIN
textures/carts_rail_crossing.png View File

Before After
Width: 16  |  Height: 16  |  Size: 755B

BIN
textures/carts_rail_crossing_brk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 549B Width: 16  |  Height: 16  |  Size: 765B

BIN
textures/carts_rail_crossing_cp.png View File

Before After
Width: 16  |  Height: 16  |  Size: 495B Width: 16  |  Height: 16  |  Size: 735B

BIN
textures/carts_rail_crossing_dtc.png View File

Before After
Width: 16  |  Height: 16  |  Size: 458B Width: 16  |  Height: 16  |  Size: 823B

BIN
textures/carts_rail_crossing_dtc_on.png View File

Before After
Width: 16  |  Height: 16  |  Size: 458B Width: 16  |  Height: 16  |  Size: 823B

BIN
textures/carts_rail_crossing_pwr.png View File

Before After
Width: 16  |  Height: 16  |  Size: 458B Width: 16  |  Height: 16  |  Size: 847B

BIN
textures/carts_rail_crossing_ss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 462B Width: 16  |  Height: 16  |  Size: 813B

BIN
textures/carts_rail_curved.png View File

Before After
Width: 16  |  Height: 16  |  Size: 750B

BIN
textures/carts_rail_curved_brk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 537B Width: 16  |  Height: 16  |  Size: 738B

BIN
textures/carts_rail_curved_cp.png View File

Before After
Width: 16  |  Height: 16  |  Size: 488B Width: 16  |  Height: 16  |  Size: 691B

BIN
textures/carts_rail_curved_dtc.png View File

Before After
Width: 16  |  Height: 16  |  Size: 443B Width: 16  |  Height: 16  |  Size: 780B

BIN
textures/carts_rail_curved_dtc_on.png View File

Before After
Width: 16  |  Height: 16  |  Size: 443B Width: 16  |  Height: 16  |  Size: 780B

BIN
textures/carts_rail_curved_pwr.png View File

Before After
Width: 16  |  Height: 16  |  Size: 443B Width: 16  |  Height: 16  |  Size: 798B

BIN
textures/carts_rail_curved_ss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 445B Width: 16  |  Height: 16  |  Size: 832B

BIN
textures/carts_rail_dtc.png View File

Before After
Width: 16  |  Height: 16  |  Size: 498B

BIN
textures/carts_rail_dtc_on.png View File

Before After
Width: 16  |  Height: 16  |  Size: 498B

BIN
textures/carts_rail_pwr.png View File

Before After
Width: 16  |  Height: 16  |  Size: 498B

BIN
textures/carts_rail_ss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 507B

BIN
textures/carts_rail_straight.png View File

Before After
Width: 16  |  Height: 16  |  Size: 785B

BIN
textures/carts_rail_straight_brk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 789B

BIN
textures/carts_rail_straight_cp.png View File

Before After
Width: 16  |  Height: 16  |  Size: 728B

BIN
textures/carts_rail_straight_dtc.png View File

Before After
Width: 16  |  Height: 16  |  Size: 830B

BIN
textures/carts_rail_straight_dtc_on.png View File

Before After
Width: 16  |  Height: 16  |  Size: 830B

BIN
textures/carts_rail_straight_pwr.png View File

Before After
Width: 16  |  Height: 16  |  Size: 836B

BIN
textures/carts_rail_straight_ss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 843B

BIN
textures/carts_rail_t_junction.png View File

Before After
Width: 16  |  Height: 16  |  Size: 789B

BIN
textures/carts_rail_t_junction_brk.png View File

Before After
Width: 16  |  Height: 16  |  Size: 538B Width: 16  |  Height: 16  |  Size: 714B

BIN
textures/carts_rail_t_junction_cp.png View File

Before After
Width: 16  |  Height: 16  |  Size: 496B Width: 16  |  Height: 16  |  Size: 715B

BIN
textures/carts_rail_t_junction_dtc.png View File

Before After
Width: 16  |  Height: 16  |  Size: 431B Width: 16  |  Height: 16  |  Size: 752B

BIN
textures/carts_rail_t_junction_dtc_on.png View File

Before After
Width: 16  |  Height: 16  |  Size: 431B Width: 16  |  Height: 16  |  Size: 808B

BIN
textures/carts_rail_t_junction_pwr.png View File

Before After
Width: 16  |  Height: 16  |  Size: 539B Width: 16  |  Height: 16  |  Size: 761B

BIN
textures/carts_rail_t_junction_ss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 433B Width: 16  |  Height: 16  |  Size: 813B

BIN
textures/default_rail_t_junction.png View File

Before After
Width: 16  |  Height: 16  |  Size: 476B

BIN
textures/templates/crossing.png View File

Before After
Width: 16  |  Height: 16  |  Size: 368B

BIN
textures/templates/curved.png View File

Before After
Width: 16  |  Height: 16  |  Size: 400B

BIN
textures/templates/straight.png View File

Before After
Width: 16  |  Height: 16  |  Size: 248B

BIN
textures/templates/t_junction.png View File

Before After
Width: 16  |  Height: 16  |  Size: 323B

Loading…
Cancel
Save