Update init.lua

This commit is contained in:
thunderdog1138 2019-12-12 19:14:15 -05:00 committed by GitHub
parent 2a841cc622
commit 05dbb09df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 5 deletions

View File

@ -118,9 +118,9 @@ minetest.register_node("fire:permanent_flame", {
-- Flint and steel
minetest.register_tool("fire:flint_and_steel", {
description = S("Flint and Steel"),
inventory_image = "fire_flint_steel.png",
minetest.register_tool("fire:lighter", {
description = S("Lighter"),
inventory_image = "fire_lighter.png",
sound = {breaks = "default_tool_breaks"},
on_use = function(itemstack, user, pointed_thing)
@ -162,9 +162,18 @@ minetest.register_tool("fire:flint_and_steel", {
})
minetest.register_craft({
output = "fire:flint_and_steel",
output = "fire:lighter",
recipe = {
{"default:flint", "default:steel_ingot"}
{"default:durasteel_ingot", "tnt:gunpowder"},
{"default:durasteel_ingot", "default:durasteel_ingot"},
}
})
minetest.register_craft({
output = "fire:lighter",
recipe = {
{"tnt:gunpowder", "default:durasteel_ingot"},
{"default:durasteel_ingot", "default:durasteel_ingot"},
}
})