Fixed some bugs
This commit is contained in:
parent
02f6d94ae7
commit
b3f96e1cf0
1
api.lua
1
api.lua
@ -1927,7 +1927,6 @@ minetest.register_entity(name, {
|
|||||||
and math.random(1, 100) <= 60 then
|
and math.random(1, 100) <= 60 then
|
||||||
|
|
||||||
self.timer = 0
|
self.timer = 0
|
||||||
minetest.chat_send_all("Sparo!")
|
|
||||||
set_animation(self, "dattack") --NSSM modification
|
set_animation(self, "dattack") --NSSM modification
|
||||||
|
|
||||||
-- play shoot attack sound
|
-- play shoot attack sound
|
||||||
|
@ -186,12 +186,15 @@ nssm:register_arrow("nssm:phoenix_arrow", {
|
|||||||
self.timer = os.time()
|
self.timer = os.time()
|
||||||
end
|
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()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.env:set_node(pos, {name="fire:basic_flame"})
|
if math.random(1,2)==2 then
|
||||||
if math.random(1,3)==1 then
|
minetest.env:set_node(pos, {name="fire:basic_flame"})
|
||||||
|
end
|
||||||
|
|
||||||
|
if math.random(1,6)==1 then
|
||||||
dx = math.random(-1,1)
|
dx = math.random(-1,1)
|
||||||
dy = math.random(-1,1)
|
dy = math.random(-1,1)
|
||||||
dz = math.random(-1,1)
|
dz = math.random(-1,1)
|
||||||
|
2939
models/masticone.x
2939
models/masticone.x
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user