1
0
鏡像自 https://github.com/sys4-fr/server-nalc.git 已同步 2025-10-28 03:15:18 +01:00

[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)
此提交包含在:
sys4-fr
2017-12-16 22:21:52 +01:00
父節點 92446a8fec
當前提交 d727e7d624
共有 3 個檔案被更改,包括 33 行新增1 行删除

查看文件

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

查看文件

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

29
mods/nalc/mobs_animal.lua 一般檔案
查看文件

@@ -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,
})