2017-05-23 00:35:56 -04:00
|
|
|
--MCmobs v0.4
|
2017-05-22 22:27:00 -04:00
|
|
|
--maikerumine
|
|
|
|
--made for MC like Survival game
|
|
|
|
--License for code WTFPL and otherwise stated in readmes
|
|
|
|
|
|
|
|
|
|
|
|
--dofile(minetest.get_modpath("mobs").."/api.lua")
|
|
|
|
--###################
|
|
|
|
--################### IRON GOLEM
|
|
|
|
--###################
|
2017-05-23 00:35:56 -04:00
|
|
|
--[[
|
2017-05-22 22:27:00 -04:00
|
|
|
mobs:register_mob("mobs_mc:19iron_golem", {
|
|
|
|
type = "monster",
|
|
|
|
attack_type = "dogfight",
|
|
|
|
passive = false,
|
|
|
|
stepheight = 1.2,
|
|
|
|
hp_min = 30,
|
|
|
|
hp_max = 60,
|
|
|
|
armor = 150,
|
|
|
|
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
|
|
|
|
rotate = -180,
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "iron_golem.b3d",
|
|
|
|
textures = {
|
|
|
|
{"iron_golem.png"},
|
|
|
|
},
|
|
|
|
visual_size = {x=3, y=3},
|
|
|
|
walk_velocity = 0.6,
|
|
|
|
run_velocity = 2,
|
|
|
|
jump = true,
|
|
|
|
animation = {
|
|
|
|
speed_normal = 15, speed_run = 25,
|
|
|
|
stand_start = 0, stand_end = 0,
|
|
|
|
walk_start = 0, walk_end = 40,
|
|
|
|
run_start = 0, run_end = 40,
|
|
|
|
punch_start = 40, punch_end = 50,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
mobs:register_egg("mobs_mc:19iron_golem", "Iron Golem", "iron_golem_inv.png", 0)
|
|
|
|
|
2017-05-23 00:35:56 -04:00
|
|
|
]]
|
2017-05-22 22:27:00 -04:00
|
|
|
|
|
|
|
-- Dog
|
2017-05-23 00:35:56 -04:00
|
|
|
mobs:register_mob("mobs_mc:iron_golem", {
|
2017-05-22 22:27:00 -04:00
|
|
|
type = "npc",
|
|
|
|
passive = true,
|
2017-06-14 19:47:33 -04:00
|
|
|
hp_min = 100,
|
|
|
|
hp_max = 100,
|
2017-05-23 00:35:56 -04:00
|
|
|
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
|
|
|
|
rotate = -180,
|
2017-05-22 22:27:00 -04:00
|
|
|
visual = "mesh",
|
2017-05-23 00:35:56 -04:00
|
|
|
mesh = "iron_golem.b3d",
|
2017-05-22 22:27:00 -04:00
|
|
|
textures = {
|
2017-05-23 00:35:56 -04:00
|
|
|
{"iron_golem.png"},
|
2017-05-22 22:27:00 -04:00
|
|
|
},
|
2017-05-23 00:35:56 -04:00
|
|
|
visual_size = {x=3, y=3},
|
2017-05-22 22:27:00 -04:00
|
|
|
makes_footstep_sound = true,
|
|
|
|
sounds = {
|
|
|
|
war_cry = "mobs_wolf_attack",
|
|
|
|
},
|
2017-06-14 19:47:33 -04:00
|
|
|
view_range = 16,
|
2017-05-22 22:27:00 -04:00
|
|
|
stepheight = 1.1,
|
2017-05-23 00:35:56 -04:00
|
|
|
stepheight = 1.2,
|
2017-05-22 22:27:00 -04:00
|
|
|
owner = "",
|
|
|
|
order = "follow",
|
|
|
|
floats = {x=0,y=0,z=0},
|
|
|
|
walk_velocity = 4,
|
|
|
|
run_velocity = 4,
|
|
|
|
stepheight = 1.1,
|
2017-06-14 19:47:33 -04:00
|
|
|
damage = 14,
|
2017-05-22 22:27:00 -04:00
|
|
|
group_attack = true,
|
|
|
|
attacks_monsters = true,
|
|
|
|
attack_type = "dogfight",
|
|
|
|
drops = {
|
2017-05-23 00:35:56 -04:00
|
|
|
{name = "default:steel_block",
|
2017-05-22 22:27:00 -04:00
|
|
|
chance = 1,
|
|
|
|
min = 2,
|
|
|
|
max = 3,},
|
|
|
|
},
|
|
|
|
drawtype = "front",
|
|
|
|
water_damage = 0,
|
|
|
|
lava_damage = 5,
|
|
|
|
light_damage = 0,
|
2017-05-23 00:35:56 -04:00
|
|
|
|
2017-05-22 22:27:00 -04:00
|
|
|
animation = {
|
2017-05-23 00:35:56 -04:00
|
|
|
speed_normal = 15, speed_run = 25,
|
|
|
|
stand_start = 0, stand_end = 0,
|
|
|
|
walk_start = 0, walk_end = 40,
|
|
|
|
run_start = 0, run_end = 40,
|
|
|
|
punch_start = 40, punch_end = 50,
|
2017-05-22 22:27:00 -04:00
|
|
|
},
|
|
|
|
jump = true,
|
|
|
|
step = 1,
|
2017-05-23 00:35:56 -04:00
|
|
|
blood_texture = "default_steelblock.png",
|
2017-05-22 22:27:00 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2017-05-23 00:35:56 -04:00
|
|
|
mobs:register_spawn("mobs_mc:iron_golem", {"default:steelblock"}, 20, 0, 19000, 1, 31000)
|
|
|
|
|
2017-05-22 22:27:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- spawn eggs
|
2017-05-23 00:35:56 -04:00
|
|
|
mobs:register_egg("mobs_mc:iron_golem", "Iron Golem", "iron_golem_inv.png", 0)
|
2017-05-22 22:27:00 -04:00
|
|
|
|
|
|
|
|
2017-05-13 01:38:43 -07:00
|
|
|
if minetest.settings:get("log_mods") then
|
2017-05-23 00:35:56 -04:00
|
|
|
minetest.log("action", "MC Iron Golem loaded")
|
2017-06-14 19:47:33 -04:00
|
|
|
end
|