Added Morwa
This commit is contained in:
parent
75de6f4828
commit
680feb94c7
14
init.lua
14
init.lua
@ -29,11 +29,6 @@ dofile(path.."/mantis_beast.lua")
|
|||||||
dofile(path.."/mantis.lua")
|
dofile(path.."/mantis.lua")
|
||||||
dofile(path.."/masticone.lua")
|
dofile(path.."/masticone.lua")
|
||||||
dofile(path.."/moonheron.lua")
|
dofile(path.."/moonheron.lua")
|
||||||
dofile(path.."/mordain.lua")
|
|
||||||
dofile(path.."/morgre.lua")
|
|
||||||
dofile(path.."/morde.lua")
|
|
||||||
dofile(path.."/morgut.lua")
|
|
||||||
dofile(path.."/morvy.lua")
|
|
||||||
dofile(path.."/night_master.lua")
|
dofile(path.."/night_master.lua")
|
||||||
dofile(path.."/octopus.lua")
|
dofile(path.."/octopus.lua")
|
||||||
dofile(path.."/phoenix.lua")
|
dofile(path.."/phoenix.lua")
|
||||||
@ -55,6 +50,15 @@ dofile(path.."/white_werewolf.lua")
|
|||||||
--Final Boss
|
--Final Boss
|
||||||
dofile(path.."/mese_dragon.lua")
|
dofile(path.."/mese_dragon.lua")
|
||||||
|
|
||||||
|
--Morlavala Mobs
|
||||||
|
dofile(path.."/mordain.lua")
|
||||||
|
dofile(path.."/morgre.lua")
|
||||||
|
dofile(path.."/morde.lua")
|
||||||
|
dofile(path.."/morgut.lua")
|
||||||
|
dofile(path.."/morvy.lua")
|
||||||
|
dofile(path.."/morwa.lua")
|
||||||
|
--dofile(path.."/morlu.lua")
|
||||||
|
|
||||||
--Others
|
--Others
|
||||||
dofile(path.."/rainbow_staff.lua")
|
dofile(path.."/rainbow_staff.lua")
|
||||||
dofile(path.."/darts.lua")
|
dofile(path.."/darts.lua")
|
||||||
|
1900
models/morlu.x
1900
models/morlu.x
File diff suppressed because it is too large
Load Diff
18315
models/morwa.x
Normal file
18315
models/morwa.x
Normal file
File diff suppressed because it is too large
Load Diff
53
morwa.lua
Normal file
53
morwa.lua
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
mobs:register_mob("nssm:morwa", {
|
||||||
|
type = "monster",
|
||||||
|
hp_max = 25,
|
||||||
|
hp_min = 24,
|
||||||
|
collisionbox = {-1, 0, -1, 1, 3, 1},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "morwa.x",
|
||||||
|
textures = {{"morwa.png"}},
|
||||||
|
visual_size = {x=10, y=10},
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
view_range = 25,
|
||||||
|
fear_height = 4,
|
||||||
|
walk_velocity = 0.5,
|
||||||
|
run_velocity = 4,
|
||||||
|
--sounds = {
|
||||||
|
-- random = "morwa",
|
||||||
|
--},
|
||||||
|
damage = 4,
|
||||||
|
jump = true,
|
||||||
|
drops = {
|
||||||
|
{name = "nssm:life_energy",
|
||||||
|
chance = 1,
|
||||||
|
min = 3,
|
||||||
|
max = 4,},
|
||||||
|
},
|
||||||
|
armor = 50,
|
||||||
|
drawtype = "front",
|
||||||
|
water_damage = 0,
|
||||||
|
reach =4,
|
||||||
|
rotate = 270,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
on_rightclick = nil,
|
||||||
|
attack_type = "dogshoot",
|
||||||
|
dogshoot_stop = true,
|
||||||
|
arrow = "nssm:morarrow",
|
||||||
|
shoot_interval = 2,
|
||||||
|
shoot_offset = 0,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 25,
|
||||||
|
speed_run = 25,
|
||||||
|
stand_start = 10,
|
||||||
|
stand_end = 40,
|
||||||
|
walk_start = 50,
|
||||||
|
walk_end = 90,
|
||||||
|
run_start = 100,
|
||||||
|
run_end = 120,
|
||||||
|
punch_start = 130,
|
||||||
|
punch_end = 160,
|
||||||
|
shoot_start =176,
|
||||||
|
shoot_end=226,
|
||||||
|
}
|
||||||
|
})
|
@ -875,20 +875,24 @@ minetest.register_node("nssm:morwa_statue", {
|
|||||||
fixed = {-1, -0.5, -1, 1, 3, 1}, -- Right, Bottom, Back, Left, Top, Front
|
fixed = {-1, -0.5, -1, 1, 3, 1}, -- Right, Bottom, Back, Left, Top, Front
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
--Not working abm to make the conversion between statue and the entity
|
--Abm to make the conversion between statue and the entity, caused by light
|
||||||
|
|
||||||
--[[
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"nssm:morwa_statue"},
|
nodenames = {"nssm:morwa_statue"},
|
||||||
|
neighbors = {"air"},
|
||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function (pos, node)
|
action =
|
||||||
if (minetest.get_node_light(pos, 0.5) == 15)
|
function(pos, node)
|
||||||
and ((minetest.get_timeofday() < 0.2) or (minetest.get_timeofday() > 0.8))
|
local pos1 = {x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
|
local n = minetest.env:get_node(pos1).name
|
||||||
|
if n ~= "air" then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if (minetest.get_node_light(pos1, 0.5) > 12)
|
||||||
then
|
then
|
||||||
minetest.remove_node(pos)
|
minetest.add_entity(pos1, "nssm:morwa")
|
||||||
minetest.add_entity(pos, {name= "nssm:morvy"})
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
]]
|
|
Loading…
x
Reference in New Issue
Block a user