Skip to content

Commit acfd58c

Browse files
committedApr 11, 2017
Carts: Make rail recipes more generous
As part of making vertical travel easier to reduce reliance on sneak ladders. Calculate using cubic pixels of steel. A steelblock is 16^3 = 4096 cubic pixels steel. 6 ingots is 6/9 steelblocks. A rail is a 2*2*16 pixel length of steel, 64 cubic pixels steel. 6 ingots produces 2*21 rails = 21 rail nodes. Choose 18 for an even number that is a multiple of ingot number. Replace the stick with 2 wood in the recipe to be closer to the amount of wood that would be needed for 20*4 sleepers. Replace 2 mese crystal fragments with 1 mese crystal to compensate for the larger number of nodes returned. The result is the recipe is much more generous with steel usage but slightly less generous with mese usage, keeping power rail cost reasonably high. Replace 2 coal lumps with 1 for a similar recipe to power rails.
1 parent b377aaa commit acfd58c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
 

Diff for: ‎mods/carts/rails.lua

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ carts:register_rail("carts:rail", {
1010
}, {})
1111

1212
minetest.register_craft({
13-
output = "carts:rail 16",
13+
output = "carts:rail 18",
1414
recipe = {
15+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
1516
{"default:steel_ingot", "", "default:steel_ingot"},
16-
{"default:steel_ingot", "group:stick", "default:steel_ingot"},
17-
{"default:steel_ingot", "", "default:steel_ingot"},
17+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
1818
}
1919
})
2020

@@ -31,11 +31,11 @@ carts:register_rail("carts:powerrail", {
3131
}, {acceleration = 5})
3232

3333
minetest.register_craft({
34-
output = "carts:powerrail 8",
34+
output = "carts:powerrail 18",
3535
recipe = {
36-
{"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
37-
{"default:steel_ingot", "group:stick", "default:steel_ingot"},
38-
{"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
36+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
37+
{"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"},
38+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
3939
}
4040
})
4141

@@ -50,10 +50,10 @@ carts:register_rail("carts:brakerail", {
5050
}, {acceleration = -3})
5151

5252
minetest.register_craft({
53-
output = "carts:brakerail 8",
53+
output = "carts:brakerail 18",
5454
recipe = {
55+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
5556
{"default:steel_ingot", "default:coal_lump", "default:steel_ingot"},
56-
{"default:steel_ingot", "group:stick", "default:steel_ingot"},
57-
{"default:steel_ingot", "default:coal_lump", "default:steel_ingot"},
57+
{"default:steel_ingot", "group:wood", "default:steel_ingot"},
5858
}
5959
})

0 commit comments

Comments
 (0)