mobs_mc/skeleton_wither.lua

95 lines
2.0 KiB
Lua
Raw Normal View History

2017-05-25 20:39:12 -04:00
--MCmobs v0.4
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
2017-07-02 15:31:26 +02:00
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--###################
--################### WITHER SKELETON
--###################
2017-05-23 19:03:37 -04:00
mobs:register_mob("mobs_mc:witherskeleton", {
type = "monster",
2017-06-14 19:47:33 -04:00
hp_min = 20,
hp_max = 20,
pathfinding = 1,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2.39, 0.35},
visual = "mesh",
mesh = "mobs_mc_witherskeleton.b3d",
textures = {
{"mobs_mc_wither_skeleton.png^mobs_mc_wither_skeleton_sword.png"},
},
visual_size = {x=3.6, y=3.6},
makes_footstep_sound = true,
sounds = {
random = "skeleton1",
death = "skeletondeath",
damage = "skeletonhurt1",
distance = 16,
},
walk_velocity = 1.2,
run_velocity = 2.4,
2017-06-14 19:47:33 -04:00
damage = 7,
drops = {
{name = mobs_mc.items.coal,
chance = 1,
min = 0,
max = 1,},
{name = mobs_mc.items.bone,
chance = 1,
min = 0,
max = 2,},
2017-05-23 19:03:37 -04:00
{name = "mobs_mc:skeleton_head2",
chance = 200,
min = 0,
max = 1,},
},
animation = {
stand_start = 0,
stand_end = 40,
speed_stand = 5,
walk_start = 40,
walk_end = 60,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
hurt_end = 120,
},
water_damage = 0,
lava_damage = 4,
light_damage = 1,
view_range = 16,
2017-06-14 19:47:33 -04:00
attack_type = "dogfight",
arrow = "mobs_mc:arrow_entity",
shoot_interval = 2.5,
shoot_offset = 1,
dogshoot_switch = 1,
2017-05-25 20:39:12 -04:00
dogshoot_count_max =0.5,
blood_amount = 0,
fear_height = 4,
})
2017-05-25 20:39:12 -04:00
--spawn
mobs:register_spawn("mobs_mc:witherskeleton", mobs_mc.spawn.nether_fortress, 7, 0, 5000, 3, -3000, true)
-- spawn eggs
2017-07-02 15:31:26 +02:00
mobs:register_egg("mobs_mc:witherskeleton", S("Wither Skeleton"), "mobs_mc_spawn_icon_witherskeleton.png", 0)
2017-06-21 00:20:06 -04:00
if minetest.settings:get_bool("log_mods") then
2017-05-23 19:03:37 -04:00
minetest.log("action", "MC Wither Skeleton loaded")
end