forked from mtcontrib/throwing
Update 0.9.2: Introduced chance to break for many arrows, added golden bow
This commit is contained in:
parent
5082c33059
commit
b2ca6a4c58
@ -53,7 +53,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
|||||||
self.object:remove()
|
self.object:remove()
|
||||||
if self.player ~= "" then
|
if self.player ~= "" then
|
||||||
self.player:setpos(pos)
|
self.player:setpos(pos)
|
||||||
self.player:get_inventory():add_item("main", ItemStack("defautl:mese_crystal_fragment"))
|
self.player:get_inventory():add_item("main", ItemStack("default:mese_crystal_fragment 2"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -65,7 +65,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
|||||||
self.object:remove()
|
self.object:remove()
|
||||||
if self.player ~= "" then
|
if self.player ~= "" then
|
||||||
self.player:setpos(self.lastpos)
|
self.player:setpos(self.lastpos)
|
||||||
self.player:get_inventory():add_item("main", ItemStack("defautl:mese_crystal_fragment"))
|
self.player:get_inventory():add_item("main", ItemStack("default:mese_crystal_fragment 2"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -77,6 +77,8 @@ minetest.register_entity("throwing:arrow_teleport_entity", THROWING_ARROW_ENTITY
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'throwing:arrow_teleport',
|
output = 'throwing:arrow_teleport',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:stick', 'default:stick', 'default:mese_crystal_fragment 2'},
|
{'' , '' , 'default:mese_crystal_fragment'},
|
||||||
|
{'default:stick', 'default:stick', 'default:mese_crystal_fragment'},
|
||||||
|
{'' , '' , 'default:mese_crystal_fragment'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user