Skip to content

Commit

Permalink
Add and edit fuel registrations
Browse files Browse the repository at this point in the history
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 Nov 2, 2016
1 parent 7fee589 commit 23ba2d3
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 6 deletions.
14 changes: 14 additions & 0 deletions mods/beds/beds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
6 changes: 6 additions & 0 deletions mods/boats/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,9 @@ minetest.register_craft({
{"group:wood", "group:wood", "group:wood"},
},
})

minetest.register_craft({
type = "fuel",
recipe = "boats:boat",
burntime = 20,
})
61 changes: 55 additions & 6 deletions mods/default/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})


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

minetest.register_craft({
Expand Down Expand Up @@ -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,
})
45 changes: 45 additions & 0 deletions mods/doors/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
25 changes: 25 additions & 0 deletions mods/farming/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
28 changes: 28 additions & 0 deletions mods/stairs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions mods/vessels/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.