forked from Mirrorlandia_minetest/mod-sneeker
Fix tnt drop
This commit is contained in:
parent
2b275380df
commit
00a7f5a550
10
entity.lua
10
entity.lua
@ -95,6 +95,11 @@ if #spawn_nodes == 0 then
|
|||||||
sneeker.log("warning", "no spawning nodes set, cannot spawn")
|
sneeker.log("warning", "no spawning nodes set, cannot spawn")
|
||||||
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",
|
||||||
@ -247,11 +252,6 @@ local function h_collides(pos, collision_info, touching_ground)
|
|||||||
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, dtime, moveresult)
|
def.on_step = function(self, dtime, moveresult)
|
||||||
--[[
|
--[[
|
||||||
-- update lifetime timer
|
-- update lifetime timer
|
||||||
|
Loading…
Reference in New Issue
Block a user