Thin old models and tweak codes add horses

This commit is contained in:
maikerumine 2017-05-24 19:42:03 -04:00
parent 2f5e8b61cd
commit 3a5ca04b6c
107 changed files with 496 additions and 80014 deletions

View File

@ -42,13 +42,14 @@ mobs:register_egg("mobs_mc:6chicken", "Chicken", "chicken_inv.png", 0)
mobs:register_mob("mobs_mc:chicken", {
type = "animal",
hp_max = 24,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
rotate = -180,
visual = "mesh",
mesh = "mobs_mc_chicken.x",
mesh = "chicken.b3d",
textures = {
{"mobs_mc_chicken.png"}
{"chicken.png"},
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
@ -72,21 +73,10 @@ mobs:register_mob("mobs_mc:chicken", {
hurt = "Chickenhurt1",
},
animation = {
speed_normal = 24,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 49,
hurt_start = 118,
hurt_end = 154,
death_start = 154,
death_end = 179,
eat_start = 49,
eat_end = 78,
look_start = 78,
look_end = 108,
fly_start = 181,
fly_end = 187,
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
--[[
follow = "farming:seed_wheat",
@ -150,6 +140,120 @@ mobs:register_mob("mobs_mc:chicken", {
})
--[[
mobs:register_mob("mobs_mc:chicken", {
type = "animal",
hp_max = 24,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
mesh = "mobs_mc_chicken.x",
textures = {
{"chicken.png"}
},
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:chicken_raw",
chance = 1,
min = 1,
max = 1,},
{name = "mobs:feather",
chance = 1,
min = 0,
max = 2,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
sounds = {
random = "Chicken1",
death = "Chickenhurt1",
hurt = "Chickenhurt1",
},
animation = {
speed_normal = 24,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 49,
hurt_start = 118,
hurt_end = 154,
death_start = 154,
death_end = 179,
eat_start = 49,
eat_end = 78,
look_start = 78,
look_end = 108,
fly_start = 181,
fly_end = 187,
},
follow = "farming:seed_wheat",
view_range = 5,
on_rightclick = function(self, clicker)
if clicker:get_inventory() then
if minetest.registered_items[":mobs:egg"] then
clicker:get_inventory():add_item("main", ItemStack(":mobs:egg 1"))
end
end
end,
do_custom = function(self)
if self.child
or math.random(1, 5000) > 1 then
return
end
local pos = self.object:getpos()
minetest.add_item(pos, ":mobs:egg")
minetest.sound_play("default_place_node_hard", {
pos = pos,
gain = 1.0,
max_hear_distance = 5,
})
end,
--from mobs_animals
follow = {"farming:seed_wheat", "farming:seed_cotton"},
view_range = 5,
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then
return
end
mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
end,
do_custom = function(self)
if self.child
or math.random(1, 5000) > 1 then
return
end
local pos = self.object:getpos()
minetest.add_item(pos, "mobs:egg")
minetest.sound_play("default_place_node_hard", {
pos = pos,
gain = 1.0,
max_hear_distance = 5,
})
end,
})
]]
mobs:register_spawn("mobs_mc:chicken", {"default:dirt_with_grass"}, 20, 8, 7000, 1, 31000)

View File

@ -48,12 +48,13 @@ mobs:register_mob("mobs_mc:creeper", {
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.6, 0.4},
pathfinding = true,
group_attack = true,
rotate = -180,
visual = "mesh",
visual_size = {x=.75, y=.75, z=.75},
mesh = "mobs_creeper.x",
mesh = "creeper.b3d",
textures = {
{"mobs_creeper.png"}
{"creeper.png"},
},
visual_size = {x=3, y=3},
makes_footstep_sound = false,
sounds = {
attack = "Fuse",
@ -65,7 +66,31 @@ mobs:register_mob("mobs_mc:creeper", {
walk_velocity = 1.5,
run_velocity = 3,
damage = 2,
explosion_radius = 4,
attack_type = "explode",
-- mobs:explosion(pos, radius, fire, smoke)
--mobs:explosion(0, 3, 0, 1)
--This function generates an explosion which removes nodes in a specific radius and replace them with fire or air. Protection nodes, obsidian and locked chests will not be destroyed although a normal chest will drop it's contents.
-- 'pos' centre position of explosion
-- 'radius' radius of explosion (typically set to 3)
-- 'fire' should fire appear in explosion (1=yes, 0=no)
-- 'smoke' should smoke appear in explosion (1=yes, 0=no)
-- 'sound' sound played when mob explodes
explosion_radius = 3,
explosion_fire = 0,
--[[
'pos' centre position of explosion
'radius' radius of explosion (typically set to 3)
'fire' should fire appear in explosion (1=yes, 0=no)
'smoke' should smoke appear in explosion (1=yes, 0=no)
'sound' sound played when mob explodes
]]
armor = 200,
maxdrops = 3,
drops = {
@ -166,7 +191,7 @@ mobs:register_mob("mobs_mc:creeper", {
lava_damage = 5,
light_damage = 0,
view_range = 16,
attack_type = "explode",
--[[
on_die =function(self, pos)
@ -187,7 +212,7 @@ mobs:alias_mob("mobs:creeper", "mobs_mc:creeper")
-- spawn eggs
--mobs:register_egg("mobs_mc:creeper", "Creeper", "spawn_egg_creeper.png")
mobs:register_egg("mobs_mc:27creeper", "Creeper", "creeper_inv.png", 0)
mobs:register_egg("mobs_mc:creeper", "Creeper", "creeper_inv.png", 0)
if minetest.setting_get("log_mods") then
minetest.log("action", "MC Creeper loaded")

368
horse.lua
View File

@ -50,7 +50,8 @@ local function is_ground(pos)
return minetest.get_item_group(nn, "crumbly") ~= 0 or
minetest.get_item_group(nn, "choppy") ~= 0 or
minetest.get_item_group(nn, "cracky") ~= 0 or
minetest.get_item_group(nn, "snappy") ~= 0 or
--minetest.get_item_group(nn, "snappy") ~= 0 or
minetest.get_item_group(nn, "leaves") ~= 0 or
minetest.get_item_group(nn, "unbreakable") ~= 0 or
minetest.get_item_group(nn, "immortal") ~= 0
end
@ -86,9 +87,18 @@ local horse = {
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
stepheight = 1.1,
visual_size = {x=1,y=1},
mesh = "mobs_horseh1.x",
--visual_size = {x=1,y=1},
visual_size = {x=3, y=3},
--mesh = "mobs_horseh1.x",
mesh = "horse.b3d",
rotate = -180,
driver = nil,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
v = 0,
on_rightclick = function(self, clicker)
@ -196,7 +206,7 @@ local horse = {
}
--END HORSE
--[[
-- backup table
local hbak = horse
@ -222,18 +232,68 @@ local ara = {
jmp = 3,
}
minetest.register_entity("mobs_mc:horsearah1", merge(ara, horse))
]]
-- backup table
local hbak = horse
-- Saddled Horses
local hrs = {
textures = {"horse.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s", merge(hrs, horse))
local hrs = {
textures = {"horse1.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s1", merge(hrs, horse))
local hrs = {
textures = {"horse2.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s2", merge(hrs, horse))
local hrs = {
textures = {"horse3.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s3", merge(hrs, horse))
local hrs = {
textures = {"horse4.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s4", merge(hrs, horse))
local hrs = {
textures = {"horse5.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s5", merge(hrs, horse))
local hrs = {
textures = {"horse6.png"},
jmp = 2,
}
minetest.register_entity("mobs_mc:horse_s6", merge(hrs, horse))
mobs:register_mob("mobs_mc:horse", {
type = "animal",
hp_min = 5,
hp_max = 10,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {
{"mobs_horseh.png"},
},
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse.png"},
visual = "mesh",
mesh = "mobs_horse.x",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
@ -249,11 +309,12 @@ mobs:register_mob("mobs_mc:horse", {
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 15,
stand_start = 25, stand_end = 75,
walk_start = 75, walk_end = 100,
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "farming:wheat",
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
@ -262,21 +323,71 @@ mobs:register_mob("mobs_mc:horse", {
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horseh1")
minetest.add_entity(pos, "mobs_mc:horse_s")
end
end,
})
mobs:register_mob("mobs_mc:horse1", {
type = "animal",
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse1.png"},
visual = "mesh",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:meat_raw",
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horse_s1")
end
end,
})
mobs:register_mob("mobs_mc:horse2", {
type = "animal",
hp_min = 5,
hp_max = 10,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {
{"mobs_horsepegh.png"},
},
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse2.png"},
visual = "mesh",
mesh = "mobs_horse.x",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
@ -292,11 +403,12 @@ mobs:register_mob("mobs_mc:horse2", {
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 15,
stand_start = 25, stand_end = 75,
walk_start = 75, walk_end = 100,
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "farming:wheat",
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
@ -305,21 +417,24 @@ mobs:register_mob("mobs_mc:horse2", {
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horsepegh1")
minetest.add_entity(pos, "mobs_mc:horse_s2")
end
end,
})
mobs:register_mob("mobs_mc:horse3", {
type = "animal",
hp_min = 5,
hp_max = 10,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {
{"mobs_horsearah.png"},
},
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse3.png"},
visual = "mesh",
mesh = "mobs_horse.x",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
@ -335,11 +450,12 @@ mobs:register_mob("mobs_mc:horse3", {
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 15,
stand_start = 25, stand_end = 75,
walk_start = 75, walk_end = 100,
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "farming:wheat",
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
@ -348,13 +464,165 @@ mobs:register_mob("mobs_mc:horse3", {
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horsearah1")
minetest.add_entity(pos, "mobs_mc:horse_s3")
end
end,
})
mobs:register_spawn("mobs_mc:horse", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse2", {"default:dirt_with_dry_grass"}, 20, 12, 23000, 1, 31000)
mobs:register_spawn("mobs_mc:horse3", {"default:desert_sand"}, 20, 8, 17000, 1, 5)
mobs:register_mob("mobs_mc:horse4", {
type = "animal",
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse4.png"},
visual = "mesh",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:meat_raw",
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horse_s4")
end
end,
})
mobs:register_mob("mobs_mc:horse5", {
type = "animal",
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse5.png"},
visual = "mesh",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:meat_raw",
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horse_s5")
end
end,
})
mobs:register_mob("mobs_mc:horse6", {
type = "animal",
passive = true,
runaway = true,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
textures = {"horse6.png"},
visual = "mesh",
mesh = "horse.b3d",
visual_size = {x=3, y=3},
rotate = -180,
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:meat_raw",
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
follow = "default:apple",
view_range = 5,
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horse_s6")
end
end,
})
--===========================
--===========================
--===========================
--===========================
mobs:register_spawn("mobs_mc:horse", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse1", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse2", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse3", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse4", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse5", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
mobs:register_spawn("mobs_mc:horse6", {"default:dirt_with_dry_grass","es:strange_grass","es:aiden_grass", "default:sand"}, 20, 12, 21000, 1, 12)
--mobs:register_spawn("mobs_mc:horse2", {"default:dirt_with_dry_grass"}, 20, 12, 23000, 1, 31000)
--mobs:register_spawn("mobs_mc:horse3", {"default:desert_sand"}, 20, 8, 17000, 1, 5)
-- saddle
@ -379,6 +647,20 @@ mobs:alias_mob("mobs:horse2", "mobs_mc:horse2")
mobs:alias_mob("mobs:horse3", "mobs_mc:horse3")
]]
-- spawn eggs
mobs:register_egg("mobs_mc:horse", "Horse Brown", "horse_inv.png", 0)
mobs:register_egg("mobs_mc:horse_s", "Horse Brown Saddled", "horse_inv.png", 0)
mobs:register_egg("mobs_mc:horse1", "Horse Black", "horse_inv.png^[colorize:#000000:230", 0)
mobs:register_egg("mobs_mc:horse_s1", "Horse Black Saddled", "horse_inv.png^[colorize:#000000:230", 0)
mobs:register_egg("mobs_mc:horse2", "Horse Sienna", "horse_inv.png^[colorize:#FFFF00:130", 0)
mobs:register_egg("mobs_mc:horse_s2", "Horse Sienna Saddled", "horse_inv.png^[colorize:#FFFF00:130", 0)
mobs:register_egg("mobs_mc:horse3", "Horse Red Belly", "horse_inv.png^[colorize:#FF0000:130", 0)
mobs:register_egg("mobs_mc:horse_s3", "Horse Red Belly Saddled", "horse_inv.png^[colorize:#FF0000:130", 0)
mobs:register_egg("mobs_mc:horse4", "Horse Dark Brown", "horse_inv.png^[colorize:#FFCCDD:130", 0)
mobs:register_egg("mobs_mc:horse_s4", "Horse Dark Brown Saddled", "horse_inv.png^[colorize:#FFCCDD:130", 0)
mobs:register_egg("mobs_mc:horse5", "Horse Gray", "horse_inv.png^[colorize:#CCCCCC:130", 0)
mobs:register_egg("mobs_mc:horse_s5", "Horse Gray Saddled", "horse_inv.png^[colorize:#CCCCCC:130", 0)
mobs:register_egg("mobs_mc:horse6", "Horse White", "horse_inv.png^[colorize:#FFFFFF:130", 0)
mobs:register_egg("mobs_mc:horse_s6", "Horse White Saddled", "horse_inv.png^[colorize:#FFFFFF:130", 0)
-- KPV wild horse spawn eggs
--mobs:register_egg("mobs_mc:horse", "Brown Horse", "mobs_horse_inv.png", 0)
--mobs:register_egg("mobs_mc:horse2", "White Horse", "mobs_horse_peg_inv.png", 0)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

BIN
models/models.zip Normal file

Binary file not shown.

View File

@ -45,12 +45,13 @@ mobs:register_mob("mobs_mc:pig", {
type = "animal",
hp_max = 25,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
rotate = -180,
visual = "mesh",
mesh = "mobs_pig.x",
mesh = "pig.b3d",
textures = {
{"mobs_pig.png"}
{"pig.png"},
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
@ -142,7 +143,7 @@ mobs:register_mob("mobs_mc:pig", {
local v = 1.5
if math.abs(velo.x) + math.abs(velo.z) < .6 then velo.y = 5 end
self.state = "walk"
self:set_animation("walk")
set_animation(self, "walk")
self.object:setyaw(yaw)
self.object:setvelocity({x = -math.sin(yaw) * v, y = velo.y, z = math.cos(yaw) * v})

View File

@ -48,10 +48,12 @@ mobs:register_mob("mobs_mc:skeleton", {
pathfinding = true,
group_attack = true,
visual = "mesh",
mesh = "mobs_skeleton.x",
mesh = "skeleton.b3d",
rotate = -180,
textures = {
{"mobs_skeleton.png"}
{"skeleton.png"},
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
sounds = {
random = "skeleton1",

View File

@ -1,368 +0,0 @@
--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:greensmall", {
type = "monster",
pathfinding = true,
group_attack = true,
hp_max = 5,
collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2},
visual_size = {x=0.5, y=0.5},
textures = {
{"green_slime_top.png", "green_slime_bottom.png", "green_slime_front.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png"}
},
visual = "cube",
blood_texture ="green_slime_blood.png",
rotate = 270,
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
},
walk_velocity = .8,
run_velocity = 2.6,
damage = 1,
armor = 100,
drops = {
{name = "mesecons_materials:glue 1",
chance = 3,
min = 1,
max = 4,},
{name = "default:grass",
chance = 1,
min = 1,
max = 5,},
},
animation = {
speed_normal = 24,
speed_run = 48,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 47,
run_start = 48,
run_end = 62,
hurt_start = 64,
hurt_end = 86,
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 0,
lava_damage = 10,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
passive = false,
jump = true,
jump_height = 4,
jump_chance = 98,
fear_height = 12,
})
mobs:register_mob("mobs_mc:greenmedium", {
type = "monster",
pathfinding = true,
group_attack = true,
hp_max = 10,
collisionbox = {-0.55, -0.55, -0.55, 0.55, 0.55, 0.55},
visual_size = {x=1.0, y=1.0},
textures = {
{"green_slime_top.png", "green_slime_bottom.png", "green_slime_front.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png"}
},
visual = "cube",
blood_texture ="green_slime_blood.png",
rotate = 270,
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
},
walk_velocity = .8,
run_velocity = 2.0,
damage = 2,
armor = 100,
drops = {
{name = "default:mossycobble",
chance = 2,
min = 1,
max = 1,},
{name = "default:leaves",
chance = 1,
min = 1,
max = 5,},
},
animation = {
speed_normal = 24,
speed_run = 48,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 47,
run_start = 48,
run_end = 62,
hurt_start = 64,
hurt_end = 86,
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 0,
lava_damage = 10,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
passive = false,
jump = true,
jump_height = 8,
jump_chance = 100,
fear_height = 60,
on_die =function(self, pos)
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greensmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greensmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greensmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greensmall")
ent = lavasmall:get_luaentity()
end
})
mobs:register_mob("mobs_mc:greenbig", {
type = "monster",
pathfinding = true,
group_attack = true,
hp_max = 25,
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
visual_size = {x=1.5, y=1.5},
textures = {
{"green_slime_top.png", "green_slime_bottom.png", "green_slime_front.png", "green_slime_sides.png", "green_slime_sides.png", "green_slime_sides.png"}
},
visual = "cube",
blood_texture ="green_slime_blood.png",
rotate = 270,
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
},
walk_velocity = .8,
run_velocity = 1.6,
damage = 3,
armor = 100,
drops = {
{name = "default:leaves",
chance = 2,
min = 1,
max = 1,},
{name = "default:papyrus",
chance = 1,
min = 1,
max = 5,},
},
animation = {
speed_normal = 24,
speed_run = 48,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 47,
run_start = 48,
run_end = 62,
hurt_start = 64,
hurt_end = 86,
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 0,
lava_damage = 10,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
passive = false,
jump = true,
jump_height = 8,
jump_chance = 100,
fear_height = 60,
on_die =function(self, pos)
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greenmedium")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:greenmedium")
ent = lavasmall:get_luaentity()
end
})
mobs:register_spawn("mobs_mc:greensmall", {"default:flowing_water", "default:mossycobble"}, 7, -1, 5000, 4, 31000)
mobs:register_spawn("mobs_mc:greenmedium", {"default:flowing_water", "default:mossycobble"}, 7, -1, 5000, 4, 31000)
mobs:register_spawn("mobs_mc:greenbig", {"default:flowing_water", "default:mossycobble"}, 7, -1, 5000, 4, 31000)
mobs:register_mob("mobs_mc:lavasmall", {
type = "monster",
pathfinding = true,
group_attack = true,
hp_max = 25,
collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2},
visual_size = {x=0.5, y=0.5},
textures = {
{"lava_slime_top.png", "lava_slime_bottom.png", "lava_slime_front.png", "lava_slime_sides.png", "lava_slime_sides.png", "lava_slime_sides.png"}
},
visual = "cube",
blood_texture ="lava_slime_blood.png",
rotate = 270,
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
},
walk_velocity = .8,
run_velocity = 2.6,
damage = 1,
armor = 100,
drops = {
{name = "tnt:gunpowder",
chance = 3,
min = 1,
max = 1,},
{name = "default:coal",
chance = 1,
min = 1,
max = 5,},
},
animation = {
speed_normal = 24,
speed_run = 48,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 47,
run_start = 48,
run_end = 62,
hurt_start = 64,
hurt_end = 86,
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 10,
lava_damage = 0,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
passive = false,
jump = true,
jump_height = 4,
jump_chance = 98,
fear_height = 12,
})
mobs:register_mob("mobs_mc:lavabig", {
type = "monster",
pathfinding = true,
group_attack = true,
hp_max = 95,
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
visual_size = {x=1.5, y=1.5},
textures = {
{"lava_slime_top.png", "lava_slime_bottom.png", "lava_slime_front.png", "lava_slime_sides.png", "lava_slime_sides.png", "lava_slime_sides.png"}
},
visual = "cube",
blood_texture ="lava_slime_blood.png",
rotate = 270,
makes_footstep_sound = true,
sounds = {
jump = "green_slime_jump",
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
},
walk_velocity = .8,
run_velocity = 1.6,
damage = 2,
armor = 100,
drops = {
{name = "tnt:gunpowder",
chance = 2,
min = 1,
max = 1,},
{name = "mobs_mc:lavasmall",
chance = 1,
min = 1,
max = 5,},
},
animation = {
speed_normal = 24,
speed_run = 48,
stand_start = 0,
stand_end = 23,
walk_start = 24,
walk_end = 47,
run_start = 48,
run_end = 62,
hurt_start = 64,
hurt_end = 86,
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 10,
lava_damage = 0,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
passive = false,
jump = true,
jump_height = 8,
jump_chance = 100,
fear_height = 60,
on_die =function(self, pos)
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:lavasmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:lavasmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:lavasmall")
lavasmall = minetest.add_entity(self.object:getpos(), "mobs_mc:lavasmall")
ent = lavasmall:get_luaentity()
end
})
mobs:register_spawn("mobs_mc:lavasmall", {"nether:rack", "default:lava"}, 7, -1, 5000, 4, 31000)
mobs:register_spawn("mobs_mc:lavabig", {"nether:rack", "default:lava"}, 7, -1, 5000, 4, 31000)
-- compatibility
mobs:alias_mob("mobs:lavasmall", "mobs_mc:lavasmall")
mobs:alias_mob("mobs:lavabig", "mobs_mc:lavabig")
mobs:alias_mob("mobs:greensmall", "mobs_mc:greensmall")
mobs:alias_mob("mobs:greenmediuml", "mobs_mc:greenmedium")
mobs:alias_mob("mobs:greenbig", "mobs_mc:greenbig")
mobs:alias_mob("slimes:lavasmall", "mobs_mc:lavasmall")
mobs:alias_mob("slimes:lavabig", "mobs_mc:lavabig")
mobs:alias_mob("slimes:greensmall", "mobs_mc:greensmall")
mobs:alias_mob("slimes:greenmediuml", "mobs_mc:greenmedium")
mobs:alias_mob("slimes:greenbig", "mobs_mc:greenbig")
-- spawn eggs
mobs:register_egg("mobs_mc:lavabig", "Magma Cube", "spawn_egg_magma_cube.png")
mobs:register_egg("mobs_mc:greenbig", "Green Slime", "spawn_egg_slime.png")
if minetest.setting_get("log_mods") then
minetest.log("action", "MC Slimes loaded")
end

View File

@ -47,7 +47,7 @@ mobs:register_mob("mobs_mc:squid", {
visual = "mesh",
mesh = "mobs_squid.b3d",
textures = {
{"mobs_squid.png"}
{"squid.png"}
},
sounds = {
damage = "mobs_mc_squid_hurt",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 899 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 912 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 912 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 637 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

Some files were not shown because too many files have changed in this diff Show More