few recipe changes, fix dupe bug
This commit is contained in:
parent
e11a96b146
commit
e3b8f86df7
20
init.lua
20
init.lua
@ -91,32 +91,28 @@ minetest.register_craft({
|
||||
|
||||
-- 2x coal lumps = 12x coal powder
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "real_torch:coal_powder 12",
|
||||
recipe = {"default:coal_lump", "default:coal_lump"}
|
||||
recipe = {{"default:coal_lump", "default:coal_lump"}}
|
||||
})
|
||||
|
||||
-- coal powder can make black dye
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "dye:black",
|
||||
recipe = {"real_torch:coal_powder"}
|
||||
recipe = {{"real_torch:coal_powder"}}
|
||||
})
|
||||
|
||||
-- add coal powder to burnt out torch to relight
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "default:torch",
|
||||
recipe = {"real_torch:torch", "real_torch:coal_powder"}
|
||||
recipe = {{"real_torch:torch", "real_torch:coal_powder"}}
|
||||
})
|
||||
|
||||
-- 4x burnt out torches = 1x stick
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "default:stick",
|
||||
recipe = {
|
||||
"real_torch:torch", "real_torch:torch",
|
||||
"real_torch:torch", "real_torch:torch"
|
||||
{"real_torch:torch", "real_torch:torch"},
|
||||
{"real_torch:torch", "real_torch:torch"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -152,7 +148,8 @@ local function add_effects(pos, radius)
|
||||
texture = "tnt_smoke.png"
|
||||
})
|
||||
|
||||
minetest.sound_play("tnt_explode", {pos = pos, gain = 0.1, max_hear_distance = 5})
|
||||
minetest.sound_play("tnt_explode",
|
||||
{pos = pos, gain = 0.1, max_hear_distance = 5}, true)
|
||||
end
|
||||
|
||||
|
||||
@ -203,7 +200,10 @@ minetest.override_item("tnt:gunpowder", {
|
||||
or nod.name == "default:torch_wall"
|
||||
or nod.name == "default:torch_ceiling" then
|
||||
|
||||
-- small delay to fix dupe bug
|
||||
minetest.after(0.1, function(user)
|
||||
user:set_hp(user:get_hp() - 2)
|
||||
end, user)
|
||||
|
||||
add_effects(pos, 1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user