1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-20 16:55:19 +01:00

update throwing mod

add spear original + add spear mithril
    improve arrows
This commit is contained in:
2015-09-21 21:41:53 +02:00
parent aa9647ff4e
commit 303a724cda
19 changed files with 204 additions and 10 deletions

View File

@@ -66,7 +66,11 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
end
end
if node.name ~= "air" then
if node.name == 'air' then
minetest.add_node(pos, {name="throwing:torch_trail"})
minetest.get_node_timer(pos):start(0.1)
elseif node.name ~= "air" and not string.find(node.name, "trail") and not string.find(node.name, 'grass') and not string.find(node.name, 'flowers:') and not string.find(node.name, 'farming:') and not string.find(node.name, 'fire:') then
local player = minetest.get_player_by_name(self.player)
if not player then self.object:remove() return end
if node.name ~= "ignore" and not string.find(node.name, "water_") and not string.find(node.name, "lava")
@@ -107,3 +111,14 @@ minetest.register_craft({
{'group:coal', 'default:stick', 'default:stick'},
}
})
minetest.register_node("throwing:torch_trail", {
drawtype = "airlike",
light_source = default.LIGHT_MAX-1,
walkable = false,
drop = "",
groups = {dig_immediate=3},
on_timer = function(pos, elapsed)
minetest.remove_node(pos)
end,
})