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
|
||||
|
||||
self.timer = 0
|
||||
minetest.chat_send_all("Sparo!")
|
||||
set_animation(self, "dattack") --NSSM modification
|
||||
|
||||
-- play shoot attack sound
|
||||
|
@ -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
|
||||
|
||||
if math.random(1,2)==2 then
|
||||
minetest.env:set_node(pos, {name="fire:basic_flame"})
|
||||
if math.random(1,3)==1 then
|
||||
end
|
||||
|
||||
if math.random(1,6)==1 then
|
||||
dx = math.random(-1,1)
|
||||
dy = 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