This commit is contained in:
Jordach 2015-07-17 10:10:18 +01:00
commit 8e7cb94498
2 changed files with 5 additions and 5 deletions

View File

@ -84,13 +84,13 @@ minetest.register_entity("throwing:arrow_entity", THROWING_ARROW_ENTITY)
minetest.register_craft({ minetest.register_craft({
output = "throwing:arrow 16", output = "throwing:arrow 16",
recipe = { recipe = {
{"default:stick", "default:stick", "default:steel_ingot"}, {"tools:stick", "tools:stick", "tools:steel_ingot"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "throwing:arrow 16", output = "throwing:arrow 16",
recipe = { recipe = {
{"default:steel_ingot", "default:stick", "default:stick"}, {"tools:steel_ingot", "tools:stick", "tools:stick"},
} }
}) })

View File

@ -50,14 +50,14 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
if obj:get_luaentity() ~= nil then if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "throwing:arrow_fire_entity" and obj:get_luaentity().name ~= "__builtin:item" then if obj:get_luaentity().name ~= "throwing:arrow_fire_entity" and obj:get_luaentity().name ~= "__builtin:item" then
if self.node ~= "" then if self.node ~= "" then
minetest.env:set_node(self.lastpos, {name="default:torch"}) minetest.env:set_node(self.lastpos, {name="deco:torch"})
minetest.sound_play("default_place_node", {pos = self.lastpos}) minetest.sound_play("default_place_node", {pos = self.lastpos})
end end
self.object:remove() self.object:remove()
end end
else else
if self.node ~= "" then if self.node ~= "" then
minetest.env:set_node(self.lastpos, {name="default:torch"}) minetest.env:set_node(self.lastpos, {name="deco:torch"})
minetest.sound_play("default_place_node", {pos = self.lastpos}) minetest.sound_play("default_place_node", {pos = self.lastpos})
end end
self.object:remove() self.object:remove()
@ -68,7 +68,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
if self.lastpos.x~=nil then if self.lastpos.x~=nil then
if node.name ~= "air" then if node.name ~= "air" then
if self.node ~= "" then if self.node ~= "" then
minetest.env:set_node(self.lastpos, {name="default:torch"}) minetest.env:set_node(self.lastpos, {name="deco:torch"})
minetest.sound_play("default_place_node", {pos = self.lastpos}) minetest.sound_play("default_place_node", {pos = self.lastpos})
end end
self.object:remove() self.object:remove()