[Fix issue #12] Get scorched_stuff when cooking cooked rat. Also scorched_stuff is of type fuel and can be used to craft Black dye too.

Fix craft from mobs_animal to get ability to cook rat. This craft don't worked until now (Bug)
This commit is contained in:
sys4-fr 2017-12-16 22:21:52 +01:00
parent 92446a8fec
commit d727e7d624
3 changed files with 33 additions and 1 deletions

View File

@ -21,3 +21,4 @@ darkage?
dye?
cherry_tree?
nether?
mobs_animal?

View File

@ -21,7 +21,7 @@ local mods =
"beds", "boats", "bucket",
"nyancat", "moreores", "moreblocks",
"maptools", "doors", "flowers",
"carts", "nether"
"carts", "nether", "mobs_animal"
}
for _,mod in ipairs(mods) do
@ -46,3 +46,5 @@ if minetest.get_modpath("quests") and quests then
end, player:get_player_name())
end)
end
minetest.log("action", "[MOD] NALC loaded")

29
mods/nalc/mobs_animal.lua Normal file
View File

@ -0,0 +1,29 @@
-- Scorched_stuff from cooking rat cooked
-- mobs redo bug !!!
minetest.clear_craft({output="mobs:rat_cooked"})
minetest.register_craft({
type = "cooking",
output = "mobs:rat_cooked",
recipe = "mobs_animal:rat",
cooktime = 15
})
minetest.register_craft({
type = "cooking",
output = "nalc:scorched_stuff",
recipe = "mobs:rat_cooked",
cooktime = 10
})
minetest.register_craft({
type = "shapeless",
output = "dye:black",
recipe = {"nalc:scorched_stuff"},
})
minetest.register_craft({
type = "fuel",
recipe = "nalc:scorched_stuff",
burntime = 20,
})