Merge branch 'master' of https://github.com/Jordach/big_freaking_dig
This commit is contained in:
commit
8e7cb94498
@ -84,13 +84,13 @@ minetest.register_entity("throwing:arrow_entity", THROWING_ARROW_ENTITY)
|
||||
minetest.register_craft({
|
||||
output = "throwing:arrow 16",
|
||||
recipe = {
|
||||
{"default:stick", "default:stick", "default:steel_ingot"},
|
||||
{"tools:stick", "tools:stick", "tools:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "throwing:arrow 16",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "default:stick", "default:stick"},
|
||||
{"tools:steel_ingot", "tools:stick", "tools:stick"},
|
||||
}
|
||||
})
|
||||
|
@ -50,14 +50,14 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||
if obj:get_luaentity() ~= nil then
|
||||
if obj:get_luaentity().name ~= "throwing:arrow_fire_entity" and obj:get_luaentity().name ~= "__builtin:item" 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})
|
||||
end
|
||||
self.object:remove()
|
||||
end
|
||||
else
|
||||
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})
|
||||
end
|
||||
self.object:remove()
|
||||
@ -68,7 +68,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||
if self.lastpos.x~=nil then
|
||||
if node.name ~= "air" 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})
|
||||
end
|
||||
self.object:remove()
|
||||
|
Loading…
x
Reference in New Issue
Block a user