|
@ -25,9 +25,10 @@ local skeleton = {
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_skeleton.b3d",
|
mesh = "mobs_mc_skeleton.b3d",
|
||||||
textures = {
|
textures = { {
|
||||||
{"mobs_mc_skeleton.png^mobs_mc_skeleton_bow.png"},
|
"mcl_bows_bow_0.png", -- bow
|
||||||
},
|
"mobs_mc_skeleton.png", -- skeleton
|
||||||
|
} },
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=3, y=3},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
|
@ -104,7 +105,11 @@ mobs:register_mob("mobs_mc:skeleton", skeleton)
|
||||||
local stray = table.copy(skeleton)
|
local stray = table.copy(skeleton)
|
||||||
stray.mesh = "mobs_mc_stray.b3d"
|
stray.mesh = "mobs_mc_stray.b3d"
|
||||||
stray.textures = {
|
stray.textures = {
|
||||||
{"mobs_mc_stray.png"},
|
{
|
||||||
|
"mcl_bows_bow_0.png",
|
||||||
|
"mobs_mc_stray.png",
|
||||||
|
"mobs_mc_stray_overlay.png",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
-- TODO: different sound (w/ echo)
|
-- TODO: different sound (w/ echo)
|
||||||
-- TODO: stray's arrow inflicts slowness status
|
-- TODO: stray's arrow inflicts slowness status
|
||||||
|
|
Before Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 847 B |
Before Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.2 KiB |
|
@ -7,14 +7,10 @@
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
local S, NS = dofile(MP.."/intllib.lua")
|
local S, NS = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
|
|
||||||
--dofile(minetest.get_modpath("mobs").."/api.lua")
|
|
||||||
--###################
|
--###################
|
||||||
--################### VEX
|
--################### VEX
|
||||||
--###################
|
--###################
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mobs:register_mob("mobs_mc:vex", {
|
mobs:register_mob("mobs_mc:vex", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
pathfinding = 1,
|
pathfinding = 1,
|
||||||
|
@ -27,7 +23,10 @@ mobs:register_mob("mobs_mc:vex", {
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_vex.b3d",
|
mesh = "mobs_mc_vex.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_mc_vex.png^mobs_mc_vex_sword.png"},
|
{
|
||||||
|
"default_tool_steelsword.png",
|
||||||
|
"mobs_mc_vex.png",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
visual_size = {x=1.25, y=1.25},
|
visual_size = {x=1.25, y=1.25},
|
||||||
damage = 9,
|
damage = 9,
|
||||||
|
@ -42,21 +41,26 @@ mobs:register_mob("mobs_mc:vex", {
|
||||||
distance = 16,
|
distance = 16,
|
||||||
},
|
},
|
||||||
animation = {
|
animation = {
|
||||||
stand_speed = 25, walk_speed = 25, run_speed = 50,
|
stand_speed = 25,
|
||||||
stand_start = 40, stand_end = 80,
|
walk_speed = 25,
|
||||||
walk_start = 0, walk_end = 40,
|
run_speed = 50,
|
||||||
run_start = 0, run_end = 40,
|
stand_start = 40,
|
||||||
|
stand_end = 80,
|
||||||
|
walk_start = 0,
|
||||||
|
walk_end = 40,
|
||||||
|
run_start = 0,
|
||||||
|
run_end = 40,
|
||||||
},
|
},
|
||||||
do_custom = function(self, dtime)
|
do_custom = function(self, dtime)
|
||||||
-- Glow red while attacking
|
-- Glow red while attacking
|
||||||
if self.state == "attack" then
|
if self.state == "attack" then
|
||||||
if self.base_texture[1] ~= "mobs_mc_vex_charging.png^mobs_mc_vex_sword.png" then
|
if self.base_texture[2] ~= "mobs_mc_vex_charging.png" then
|
||||||
self.base_texture = {"mobs_mc_vex_charging.png^mobs_mc_vex_sword.png"}
|
self.base_texture[2] = "mobs_mc_vex_charging.png"
|
||||||
self.object:set_properties({textures=self.base_texture})
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if self.base_texture[1] ~= "mobs_mc_vex.png^mobs_mc_vex_sword.png" then
|
if self.base_texture[1] ~= "default_tool_steelsword.png" then
|
||||||
self.base_texture = {"mobs_mc_vex.png^mobs_mc_vex_sword.png"}
|
self.base_texture[1] = "default_tool_steelsword.png"
|
||||||
self.object:set_properties({textures=self.base_texture})
|
self.object:set_properties({textures=self.base_texture})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,11 +27,11 @@ local pigman = {
|
||||||
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_zombie_pigman.b3d",
|
mesh = "mobs_mc_zombie_pigman.b3d",
|
||||||
textures = {
|
textures = { {
|
||||||
"blank.png", --baby
|
"blank.png", --baby
|
||||||
"default_tool_goldsword.png", --sword
|
"default_tool_goldsword.png", --sword
|
||||||
"mobs_mc_zombie_pigman.png", --pigman
|
"mobs_mc_zombie_pigman.png", --pigman
|
||||||
},
|
} },
|
||||||
visual_size = {x=3, y=3},
|
visual_size = {x=3, y=3},
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_mc_zombie_idle",
|
random = "mobs_mc_zombie_idle",
|
||||||
|
@ -91,11 +91,11 @@ mobs:register_mob("mobs_mc:pigman", pigman)
|
||||||
local baby_pigman = table.copy(pigman)
|
local baby_pigman = table.copy(pigman)
|
||||||
baby_pigman.collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.94, 0.25}
|
baby_pigman.collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.94, 0.25}
|
||||||
baby_pigman.visual_size = {x=pigman.visual_size.x/2, y=pigman.visual_size.y/2}
|
baby_pigman.visual_size = {x=pigman.visual_size.x/2, y=pigman.visual_size.y/2}
|
||||||
baby_pigman.textures = {
|
baby_pigman.textures = { {
|
||||||
"mobs_mc_zombie_pigman.png", --baby
|
"mobs_mc_zombie_pigman.png", --baby
|
||||||
"default_tool_goldsword.png", --sword
|
"default_tool_goldsword.png", --sword
|
||||||
"mobs_mc_zombie_pigman.png", --pigman
|
"mobs_mc_zombie_pigman.png", --pigman
|
||||||
}
|
} }
|
||||||
baby_pigman.walk_velocity = 1.2
|
baby_pigman.walk_velocity = 1.2
|
||||||
baby_pigman.run_velocity = 2.4
|
baby_pigman.run_velocity = 2.4
|
||||||
baby_pigman.light_damage = 0
|
baby_pigman.light_damage = 0
|
||||||
|
|