Refined teleport arrow
@ -53,7 +53,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||
self.object:remove()
|
||||
if self.player ~= "" then
|
||||
self.player:setpos(pos)
|
||||
self.player:get_inventory():add_item("main", ItemStack("default:mese_crystal_fragment 2"))
|
||||
self.player:get_inventory():add_item("main", ItemStack("default:stick 2"))
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -65,7 +65,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||
self.object:remove()
|
||||
if self.player ~= "" then
|
||||
self.player:setpos(self.lastpos)
|
||||
self.player:get_inventory():add_item("main", ItemStack("default:mese_crystal_fragment 2"))
|
||||
self.player:get_inventory():add_item("main", ItemStack("default:stick 2"))
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -77,8 +77,6 @@ minetest.register_entity("throwing:arrow_teleport_entity", THROWING_ARROW_ENTITY
|
||||
minetest.register_craft({
|
||||
output = 'throwing:arrow_teleport',
|
||||
recipe = {
|
||||
{'' , '' , 'default:mese_crystal_fragment'},
|
||||
{'default:stick', 'default:stick', 'default:mese_crystal_fragment'},
|
||||
{'' , '' , 'default:mese_crystal_fragment'}
|
||||
{'default:stick', 'default:stick', 'default:mese_crystal_fragment'}
|
||||
}
|
||||
})
|
||||
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 178 B |