Skip to content
Permalink
Browse files

Add and edit fuel registrations

Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
  • Loading branch information...
cx384 authored and paramat committed Oct 30, 2016
1 parent 7fee589 commit 23ba2d3a0c918281e01402a9160902b865aa2580
Showing with 179 additions and 6 deletions.
  1. +14 −0 mods/beds/beds.lua
  2. +6 −0 mods/boats/init.lua
  3. +55 −6 mods/default/crafting.lua
  4. +45 −0 mods/doors/init.lua
  5. +25 −0 mods/farming/init.lua
  6. +28 −0 mods/stairs/init.lua
  7. +6 −0 mods/vessels/init.lua
@@ -88,3 +88,17 @@ beds.register_bed("beds:bed", {

minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
minetest.register_alias("beds:bed_top_red", "beds:bed_top")

-- Fuel

minetest.register_craft({
type = "fuel",
recipe = "beds:fancy_bed_bottom",
burntime = 13,
})

minetest.register_craft({
type = "fuel",
recipe = "beds:bed_bottom",
burntime = 12,
})
@@ -248,3 +248,9 @@ minetest.register_craft({
{"group:wood", "group:wood", "group:wood"},
},
})

minetest.register_craft({
type = "fuel",
recipe = "boats:boat",
burntime = 20,
})
@@ -915,31 +915,31 @@ minetest.register_craft({
minetest.register_craft({
type = "fuel",
recipe = "default:fence_aspen_wood",
burntime = 11,
burntime = 5,
})

minetest.register_craft({
type = "fuel",
recipe = "default:fence_pine_wood",
burntime = 13,
burntime = 6,
})

minetest.register_craft({
type = "fuel",
recipe = "default:fence_wood",
burntime = 15,
burntime = 7,
})

minetest.register_craft({
type = "fuel",
recipe = "default:fence_acacia_wood",
burntime = 17,
burntime = 8,
})

minetest.register_craft({
type = "fuel",
recipe = "default:fence_junglewood",
burntime = 19,
burntime = 9,
})


@@ -988,7 +988,7 @@ minetest.register_craft({
minetest.register_craft({
type = "fuel",
recipe = "default:ladder_wood",
burntime = 5,
burntime = 2,
})

minetest.register_craft({
@@ -1050,3 +1050,52 @@ minetest.register_craft({
recipe = "default:dry_grass_1",
burntime = 2,
})

minetest.register_craft({
type = "fuel",
recipe = "default:paper",
burntime = 1,
})

minetest.register_craft({
type = "fuel",
recipe = "default:book",
burntime = 3,
})

minetest.register_craft({
type = "fuel",
recipe = "default:dry_shrub",
burntime = 2,
})

minetest.register_craft({
type = "fuel",
recipe = "group:stick",
burntime = 1,
})


minetest.register_craft({
type = "fuel",
recipe = "default:pick_wood",
burntime = 6,
})

minetest.register_craft({
type = "fuel",
recipe = "default:shovel_wood",
burntime = 4,
})

minetest.register_craft({
type = "fuel",
recipe = "default:axe_wood",
burntime = 6,
})

minetest.register_craft({
type = "fuel",
recipe = "default:sword_wood",
burntime = 5,
})
@@ -745,3 +745,48 @@ doors.register_fencegate("doors:gate_aspen_wood", {
material = "default:aspen_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
})


----fuels----

minetest.register_craft({
type = "fuel",
recipe = "doors:trapdoor",
burntime = 7,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:door_wood",
burntime = 14,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:gate_wood_closed",
burntime = 7,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:gate_acacia_wood_closed",
burntime = 8,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:gate_junglewood_closed",
burntime = 9,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:gate_pine_wood_closed",
burntime = 6,
})

minetest.register_craft({
type = "fuel",
recipe = "doors:gate_aspen_wood_closed",
burntime = 5,
})
@@ -80,3 +80,28 @@ minetest.register_craft({
{"farming:straw"},
}
})

-- Fuels
minetest.register_craft({
type = "fuel",
recipe = "farming:straw",
burntime = 3,
})

minetest.register_craft({
type = "fuel",
recipe = "farming:wheat",
burntime = 1,
})

minetest.register_craft({
type = "fuel",
recipe = "farming:cotton",
burntime = 1,
})

minetest.register_craft({
type = "fuel",
recipe = "farming:hoe_wood",
burntime = 5,
})
@@ -106,6 +106,20 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
{recipeitem, recipeitem, recipeitem},
},
})

-- Fuel
local baseburntime = minetest.get_craft_result({
method = "fuel",
width = 1,
items = {recipeitem}
}).time
if baseburntime > 0 then
minetest.register_craft({
type = "fuel",
recipe = 'stairs:stair_' .. subname,
burntime = math.floor(baseburntime * 0.75),
})
end
end
end

@@ -207,6 +221,20 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
{recipeitem, recipeitem, recipeitem},
},
})

-- Fuel
local baseburntime = minetest.get_craft_result({
method = "fuel",
width = 1,
items = {recipeitem}
}).time
if baseburntime > 0 then
minetest.register_craft({
type = "fuel",
recipe = 'stairs:slab_' .. subname,
burntime = math.floor(baseburntime * 0.5),
})
end
end
end

@@ -195,3 +195,9 @@ minetest.register_craft( {
output = "default:steel_ingot",
recipe = "vessels:steel_bottle",
})

minetest.register_craft({
type = "fuel",
recipe = "vessels:shelf",
burntime = 30,
})

0 comments on commit 23ba2d3

Please sign in to comment.
You can’t perform that action at this time.