1
0
mirror of https://gitlab.com/echoes91/throwing.git synced 2025-06-30 07:10:22 +02:00

Update 0.9.2: Introduced chance to break for many arrows, added golden bow

This commit is contained in:
echoes91
2015-03-10 16:40:18 +01:00
parent bdc555c290
commit ff044fb1f1
11 changed files with 168 additions and 31 deletions

View File

@ -49,12 +49,13 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "throwing:arrow_fire_entity" and obj:get_luaentity().name ~= "__builtin:item" then
local damage = 5
local damage = 4
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=damage},
}, nil)
self.object:remove()
minetest.add_item(self.lastpos, 'default:stick')
end
end
end