mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01:00
add tnt sound file for creepers and remove add_item sur explode
This commit is contained in:
parent
1dc7378e53
commit
68cb3d2a3b
|
@ -610,7 +610,7 @@ function mobs:register_mob(name, def)
|
||||||
--activate_if_tnt(n.name, np, pos, 3) -- Pas de module TNT sur le serveur donc inutile
|
--activate_if_tnt(n.name, np, pos, 3) -- Pas de module TNT sur le serveur donc inutile
|
||||||
minetest.remove_node(np)
|
minetest.remove_node(np)
|
||||||
nodeupdate(np)
|
nodeupdate(np)
|
||||||
if n.name ~= "tnt:tnt" and math.random() > 0.9 then
|
--[[ if n.name ~= "tnt:tnt" and math.random() > 0.9 then
|
||||||
local drop = minetest.get_node_drops(n.name, "")
|
local drop = minetest.get_node_drops(n.name, "")
|
||||||
for _,item in ipairs(drop) do
|
for _,item in ipairs(drop) do
|
||||||
if type(item) == "string" then
|
if type(item) == "string" then
|
||||||
|
@ -619,7 +619,7 @@ function mobs:register_mob(name, def)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end ]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
BIN
mods/mobs/sounds/tnt_explode.ogg
Normal file
BIN
mods/mobs/sounds/tnt_explode.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user