forked from Mirrorlandia_minetest/mod-sneeker
Fix tnt drop
This commit is contained in:
parent
b2494a40f7
commit
6033dbf52a
10
entity.lua
10
entity.lua
@ -92,6 +92,11 @@ for _, node_name in ipairs(spawn_nodes) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local item_drops = {}
|
||||||
|
if core.registered_items["tnt:gunpowder"] then
|
||||||
|
table.insert(item_drops, {"tnt:gunpowder", {min=1, max=2}, chance=0.66})
|
||||||
|
end
|
||||||
|
|
||||||
local def = {
|
local def = {
|
||||||
name = "sneeker:sneeker",
|
name = "sneeker:sneeker",
|
||||||
nametag = "Sneeker",
|
nametag = "Sneeker",
|
||||||
@ -213,11 +218,6 @@ local function explode(self, pos)
|
|||||||
core.sound_play("sneeker_explode", {object=self.object, gain=sneeker.boom_gain, max_hear_distance=2*64})
|
core.sound_play("sneeker_explode", {object=self.object, gain=sneeker.boom_gain, max_hear_distance=2*64})
|
||||||
end
|
end
|
||||||
|
|
||||||
local item_drops = {}
|
|
||||||
if core.registered_items["tnt:gunpowder"] then
|
|
||||||
table.insert(item_drops, {"tnt:gunpowder", {min=1, max=2}, chance=0.66})
|
|
||||||
end
|
|
||||||
|
|
||||||
def.on_step = function(self, staticdata, dtime_s)
|
def.on_step = function(self, staticdata, dtime_s)
|
||||||
--[[
|
--[[
|
||||||
-- update lifetime timer
|
-- update lifetime timer
|
||||||
|
Loading…
Reference in New Issue
Block a user