Ladder recipe: Make wooden ladder recipe more generous
authorparamat <mat.gregory@virginmedia.com>
Mon, 6 Mar 2017 07:26:12 +0000 (07:26 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 7 Mar 2017 06:43:44 +0000 (06:43 +0000)
Increase to 5 ladders from 7 sticks.
More generous to help with vertical travel.

Divide the log core volume of 14 * 14 * 16 cubic pixels by the volume of
a ladder node with two 2 * 2 * 16 side pieces and four 2 * 1 * 16 rungs
(cut down to length 14), to get 12.25 ladders per log.
The recipe of 7 stick items is 7 / 16 = 0.4375 logs.
Ladders per 7 stick items = 0.4375 * 12.25 = 5.36.

mods/default/crafting.lua

index b360ddcfdd7bb9ea8920cfd523e4d749fc360196..1eca8887551aef6c6234aa9702f62a992cf11beb 100644 (file)
@@ -646,11 +646,11 @@ minetest.register_craft({
 })
 
 minetest.register_craft({
-       output = 'default:ladder_wood 3',
+       output = "default:ladder_wood 5",
        recipe = {
-               {'group:stick', '', 'group:stick'},
-               {'group:stick', 'group:stick', 'group:stick'},
-               {'group:stick', '', 'group:stick'},
+               {"group:stick", "", "group:stick"},
+               {"group:stick", "group:stick", "group:stick"},
+               {"group:stick", "", "group:stick"},
        }
 })