added charcoal lumps into the game. can be used in the same way as coal in cooking. Working on other recipes.

master
Joe H 2018-06-30 16:47:13 -04:00
parent 87484ac8c0
commit b0e433bc93
4 changed files with 24 additions and 0 deletions

1
basics Symbolic link
View File

@ -0,0 +1 @@
basics/

21
charcoal.lua Normal file
View File

@ -0,0 +1,21 @@
-- Charcoal
-- Charcoal Lump
minetest.register_craftitem("basics:charcoal", {
description = "charcoal",
inventory_image = "default_coal_lump.png",
})
minetest.register_craft({
type = "cooking",
output = "basics:charcoal",
recipe = "group:tree",
cooktime = 5,
})
minetest.register_craft({
type = "fuel",
recipe = "basics:charcoal",
burntime = "40",
})

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

1
init.lua Normal file
View File

@ -0,0 +1 @@
dofile(minetest.get_modpath("basics") .. "/charcoal.lua")