2017-01-16 16:40:08 +00:00
|
|
|
--MCmobs v0.2
|
|
|
|
--maikerumine
|
|
|
|
--made for MC like Survival game
|
|
|
|
--License for code WTFPL and otherwise stated in readmes
|
|
|
|
|
|
|
|
|
|
|
|
--dofile(minetest.get_modpath("mobs").."/api.lua")
|
|
|
|
|
|
|
|
|
|
|
|
mobs:register_mob("mobs_mc:enderman", {
|
|
|
|
type = "monster",
|
2017-01-20 20:24:56 +00:00
|
|
|
hp_min = 40,
|
2017-01-16 19:52:09 +00:00
|
|
|
hp_max = 40,
|
2017-02-22 19:15:04 +00:00
|
|
|
collisionbox = {-0.4, -1.5, -0.4, 0.4, 1.5, 0.4},
|
2017-03-03 00:27:10 +00:00
|
|
|
pathfinding = 1,
|
2017-01-16 16:40:08 +00:00
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_sand_monster.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_endermen.png"}
|
|
|
|
},
|
2017-02-22 19:15:04 +00:00
|
|
|
visual_size = {x=1.5, y=1.6},
|
2017-01-16 16:40:08 +00:00
|
|
|
makes_footstep_sound = true,
|
|
|
|
sounds = {
|
|
|
|
random = "mobs_sandmonster",
|
|
|
|
death = "green_slime_death",
|
|
|
|
damage = "Creeperdeath",
|
|
|
|
},
|
|
|
|
walk_velocity = 3.2,
|
|
|
|
run_velocity = 5.4,
|
|
|
|
damage = 1,
|
2017-01-16 19:52:09 +00:00
|
|
|
armor = 100,
|
2017-01-16 16:40:08 +00:00
|
|
|
drops = {
|
2017-01-25 10:47:44 +00:00
|
|
|
{name = "mcl_throwing:ender_pearl",
|
2017-01-16 19:52:09 +00:00
|
|
|
chance = 1,
|
2017-01-16 16:40:08 +00:00
|
|
|
min = 0,
|
|
|
|
max = 1,},
|
|
|
|
},
|
|
|
|
animation = {
|
|
|
|
speed_normal = 45,
|
|
|
|
speed_run = 15,
|
|
|
|
stand_start = 0,
|
|
|
|
stand_end = 39,
|
|
|
|
walk_start = 41,
|
|
|
|
walk_end = 72,
|
|
|
|
run_start = 74,
|
|
|
|
run_end = 105,
|
|
|
|
punch_start = 74,
|
|
|
|
punch_end = 105,
|
|
|
|
},
|
|
|
|
drawtype = "front",
|
|
|
|
water_damage = 1,
|
2017-02-23 18:52:07 +00:00
|
|
|
lava_damage = minetest.registered_nodes["mcl_core:lava_source"].damage_per_second,
|
2017-01-16 16:40:08 +00:00
|
|
|
light_damage = 0,
|
|
|
|
view_range = 16,
|
|
|
|
attack_type = "dogfight",
|
|
|
|
replace_rate = 1,
|
2017-03-01 00:16:52 +00:00
|
|
|
replace_what = {"mcl_flowers:allium", "mcl_flowers:azure_bluet", "mcl_flowers:blue_orchid", "mcl_flowers:dandelion", "mcl_flowers:tulip_orange", "mcl_flowers:tulip_red", "mcl_flowers:tulip_pink", "mcl_flowers:tulip_white", "mcl_flowers:oxeye_daisy", "mcl_flowers:poppy", "mcl_core:cactus", "mcl_core:clay", "mcl_core:coarse_dirt", "mcl_core:dirt", "mcl_core:dirt_with_grass", "mcl_core:gravel", "mcl_farming:melon", "mcl_farming:pumpkin_face", "mcl_core:mycelium", "mcl_core:podzol", "mcl_mushrooms:mushroom_red", "mcl_mushrooms:mushroom_brown", "mcl_core:redsand", "mcl_core:sand", "mcl_tnt:tnt", "mcl_nether:netherrack"},
|
2017-01-16 16:40:08 +00:00
|
|
|
replace_with = "air",
|
|
|
|
replace_offset = -1,
|
|
|
|
|
|
|
|
})
|
2017-02-22 05:11:40 +00:00
|
|
|
mobs:register_spawn("mobs_mc:enderman", { "group:solid"}, 7, -1, 6000, 4, 31000)
|
2017-01-16 16:40:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- spawn eggs
|
2017-01-16 23:19:03 +00:00
|
|
|
mobs:register_egg("mobs_mc:enderman", "Spawn Enderman", "spawn_egg_enderman.png")
|
2017-01-16 16:40:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
if minetest.setting_get("log_mods") then
|
|
|
|
minetest.log("action", "MC Enderman loaded")
|
|
|
|
end
|