Fixed some bugs

master
npx 2016-05-01 23:57:29 +02:00
parent 02f6d94ae7
commit b3f96e1cf0
3 changed files with 167 additions and 2782 deletions

View File

@ -1927,7 +1927,6 @@ minetest.register_entity(name, {
and math.random(1, 100) <= 60 then
self.timer = 0
minetest.chat_send_all("Sparo!")
set_animation(self, "dattack") --NSSM modification
-- play shoot attack sound

View File

@ -186,12 +186,15 @@ nssm:register_arrow("nssm:phoenix_arrow", {
self.timer = os.time()
end
if os.time() - self.timer > 7 or minetest.is_protected(pos, "") or ((n~="air") and (n~="fire:basic_flame")) then
if os.time() - self.timer > 5 or minetest.is_protected(pos, "") or ((n~="air") and (n~="fire:basic_flame")) then
self.object:remove()
end
minetest.env:set_node(pos, {name="fire:basic_flame"})
if math.random(1,3)==1 then
if math.random(1,2)==2 then
minetest.env:set_node(pos, {name="fire:basic_flame"})
end
if math.random(1,6)==1 then
dx = math.random(-1,1)
dy = math.random(-1,1)
dz = math.random(-1,1)

File diff suppressed because it is too large Load Diff