Improvements

This commit is contained in:
2022-11-26 13:52:38 -05:00
parent 512918f24c
commit cf67a8046b
46 changed files with 56 additions and 79 deletions

View File

@@ -79,6 +79,7 @@ MORE_FIRE_PIPEBOMB_ENTITY.on_step = function(self, dtime)
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= 'more_fire:pipebomb_entity' and obj:get_luaentity().name ~= '__builtin:item' then
if self.node ~= '' then
minetest.sound_play('tnt_explode', {gain = 1.0})
explosives.boom(pos, {radius = 5})
local damage = 1
obj:punch(self.object, 1.0, {
@@ -93,13 +94,13 @@ MORE_FIRE_PIPEBOMB_ENTITY.on_step = function(self, dtime)
if node.name ~= 'air' then
self.object:remove()
minetest.sound_play('tnt_explode', {gain = 1.0})
explosives.boom(pos, {
owner = playerWhoThrewObject
})
minetest.add_particlespawner({
amount = 64,
amount = 256,
time = 0.5,
minpos = {x = pos.x - 2, y = pos.y - 2, z = pos.z - 2},
maxpos = {x = pos.x + 2, y = pos.y + 2, z = pos.z + 2},
@@ -109,8 +110,8 @@ MORE_FIRE_PIPEBOMB_ENTITY.on_step = function(self, dtime)
maxacc = vector.new(),
minexptime = 1,
maxexptime = 2.5,
minsize = 2,
maxsize = 5,
minsize = 4,
maxsize = 7,
texture = "tnt_smoke.png",
})