forked from mtcontrib/throwing
Update 0.9.2: Introduced chance to break for many arrows, added golden bow
This commit is contained in:
@ -116,7 +116,7 @@ local function destroy(drops, pos, cid)
|
||||
if def and def.flammable then
|
||||
minetest.set_node(pos, fire_node)
|
||||
else
|
||||
minetest.remove_node(pos)
|
||||
minetest.dig_node(pos)
|
||||
if def then
|
||||
local node_drops = minetest.get_node_drops(def.name, "")
|
||||
for _, item in ipairs(node_drops) do
|
||||
@ -156,7 +156,7 @@ local function entity_physics(pos, radius)
|
||||
obj_vel, radius * 10))
|
||||
end
|
||||
|
||||
local damage = (4 / dist) * radius
|
||||
local damage = (5 / dist) * radius
|
||||
obj:set_hp(obj:get_hp() - damage)
|
||||
end
|
||||
end
|
||||
@ -254,7 +254,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||
if obj:get_luaentity() ~= nil then
|
||||
if obj:get_luaentity().name ~= "throwing:arrow_tnt_entity" and obj:get_luaentity().name ~= "__builtin:item" then
|
||||
self.object:remove()
|
||||
boom(self.lastpos)
|
||||
boom(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user