f23e0a544d
#### Links [blender models](https://github.com/22i/minecraft-voxel-blender-models), [mobs_mc](https://github.com/maikerumine/mobs_mc), [how to recreate mobs from textures with Blender and Gimp](http://imgur.com/a/Iqg88) Minecraft mobs were remade in blender Credits: [toby109tt](https://github.com/tobyplowy) mapping fixes - better 2d planes
280 lines
6.5 KiB
Lua
280 lines
6.5 KiB
Lua
--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")
|
|
|
|
--###################
|
|
--################### BOAT
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:81boat", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "boat.b3d",
|
|
textures = {{"boat.png"},{"boat1.png"},{"boat2.png"},{"boat3.png"},{"boat4.png"},{"boat5.png"},{"boat6.png"},},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
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,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:81boat", "Boat", "boat_inv.png", 0)
|
|
|
|
--###################
|
|
--################### SHIELD
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:82shield", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "shield.b3d",
|
|
textures = {{"shield.png"}},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 40, stand_end = 80,
|
|
walk_start = 0, walk_end = 40,
|
|
run_start = 0, run_end = 40,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:82shield", "Shield", "shield_inv.png", 0)
|
|
|
|
--###################
|
|
--################### BANNER
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:83banner", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "banner.b3d",
|
|
textures = {{"banner_base.png"}},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 40, stand_end = 80,
|
|
walk_start = 0, walk_end = 40,
|
|
run_start = 0, run_end = 40,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:83banner", "Banner", "banner_inv.png", 0)
|
|
|
|
--###################
|
|
--################### CHEST
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:84chest", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "chest.b3d",
|
|
textures = {{"normal.png"}},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:84chest", "Chest", "normal_inv.png", 0)
|
|
|
|
--###################
|
|
--################### MINECART
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:85minecart", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "minecart.b3d",
|
|
textures = {{"minecart.png"}},
|
|
visual_size = {x=12, y=12},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:85minecart", "Minecart", "minecart_normal.png", 0)
|
|
|
|
--###################
|
|
--################### BED
|
|
--###################
|
|
|
|
mobs:register_mob("mobs_mc:86bed", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "bed.b3d",
|
|
textures = {{"light_blue.png"},{"green.png"},{"gray.png"},{"cyan.png"},{"brown.png"},{"blue.png"},{"black.png"},{"yellow.png"},{"lime.png"},{"magenta.png"},{"orange.png"},{"pink.png"},{"purple.png"},{"red.png"},{"silver.png"},{"white.png"}},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:86bed", "Bed", "bed.png", 0)
|
|
|
|
mobs:register_mob("mobs_mc:87stonesword", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "stonesword.b3d",
|
|
textures = {{"stone_sword.png"}},
|
|
visual_size = {x=4, y=4},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:87stonesword", "Stone sword", "stone_sword.png", 0)
|
|
|
|
mobs:register_mob("mobs_mc:88sstonesword", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "3d_item.b3d",
|
|
textures = {{"stone_sword.png"}},
|
|
visual_size = {x=1, y=1},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:88sstonesword", "sword", "stone_sword.png", 0)
|
|
|
|
mobs:register_mob("mobs_mc:89armorstand", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
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 = "armorstand.b3d",
|
|
textures = {{"wood.png"}},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 20, stand_end = 25,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:89armorstand", "Armor stand", "wooden_armorstand.png", 0)
|
|
|
|
|
|
|
|
if minetest.setting_get("log_mods") then
|
|
minetest.log("action", "MC mobs loaded")
|
|
end |