diff --git a/arrow.lua b/arrow.lua index 2ae410f00220a13f0d192c8e374d33ccdb88eb05..6edfaec935d22fb1278bb7752404799d1d24fc50 100644 --- a/arrow.lua +++ b/arrow.lua @@ -13,7 +13,7 @@ bows.is_in_entity=function(self,ob) end bows.on_hit_object=function(self,target,hp,user,lastpos) - target:punch(user, 2,{full_punch_interval=1.0,damage_groups={fleshy=hp}}, "default:sword_wood", nil) + target:punch(user, 2,{full_punch_interval=1.0,damage_groups={fleshy=hp}}, nil) if target:get_hp()>0 then local pos=self.object:getpos() local opos=target:getpos() @@ -54,9 +54,9 @@ end bows.arrow_remove=function(self) if self.object:get_attach() then self.object:set_detach() end - if self.target then self.target:punch(self.object, {full_punch_interval=1,damage_groups={fleshy=4}}, "default:bronze_pick", nil) end + if self.target then self.target:punch(self.object, 1.0, {full_punch_interval=1,damage_groups={fleshy=4}}, nil) end self.object:set_hp(0) - self.object:punch(self.object, {full_punch_interval=1.0,damage_groups={fleshy=4}}, "bows:bow_wood", nil) + self.object:punch(self.object, 1.0, {full_punch_interval=1.0,damage_groups={fleshy=4}}, nil) return self end diff --git a/items_functions.lua b/items_functions.lua index 1e3e91322e224656337d970612ccf911c972e8f3..b946de2e78bb1ea4c4600ebac03c6b1cc4407789 100644 --- a/items_functions.lua +++ b/items_functions.lua @@ -20,7 +20,7 @@ bows.arrow_toxic=function(self,target,hp,user,lastpos) bows.arrow_remove(self) return self end - target:punch(user, 3,{full_punch_interval=1.0,damage_groups={fleshy=4}}, "default:sword_wood", nil) + target:punch(user, 3,{full_punch_interval=1.0,damage_groups={fleshy=4}}, nil) local rnd=math.random(1,10) if rnd~=4 and target:get_hp()>0 then minetest.after(math.random(0.5,2), function(self,target,hp,user,lastpos) @@ -88,4 +88,4 @@ bows.arrow_rainbow_step=function(self,dtime,user,pos,lastpos) maxsize = 9, texture = "bows_rainbow.png", }) - end \ No newline at end of file + end