forked from Mirrorlandia_minetest/mod-sneeker
Only add gunpower drop if tnt mod available
This commit is contained in:
parent
ae9c9c32dc
commit
0e173ccefb
11
init.lua
11
init.lua
@ -379,6 +379,13 @@ if core.global_exists("nether") then
|
|||||||
table.insert(spawn_nodes, "nether:rack")
|
table.insert(spawn_nodes, "nether:rack")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local drops = nil
|
||||||
|
if core.global_exists("tnt") then
|
||||||
|
drops = {
|
||||||
|
{"tnt:gunpowder", {min=1, max=2}, chance=0.66},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
cmer.register_mob({
|
cmer.register_mob({
|
||||||
name = sneeker.mob_name,
|
name = sneeker.mob_name,
|
||||||
@ -404,9 +411,7 @@ cmer.register_mob({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
sounds = {},
|
sounds = {},
|
||||||
drops = {
|
drops = drops,
|
||||||
{"tnt:gunpowder", {min=1, max=2}, chance=0.66},
|
|
||||||
},
|
|
||||||
combat = {
|
combat = {
|
||||||
--[[
|
--[[
|
||||||
attack_damage = ,
|
attack_damage = ,
|
||||||
|
Loading…
Reference in New Issue
Block a user