Add model for stone monster
parent
95dc063eb8
commit
bb6c767d97
22
init.lua
22
init.lua
|
@ -3,7 +3,7 @@ dofile(minetest.get_modpath("mobs").."/api.lua")
|
||||||
mobs:register_mob("mobs:dirt_monster", {
|
mobs:register_mob("mobs:dirt_monster", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_max = 5,
|
hp_max = 5,
|
||||||
collisionbox = {-0.4, -1, -0.4, 0.4, 1, 0.4},
|
collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
|
||||||
visual = "upright_sprite",
|
visual = "upright_sprite",
|
||||||
visual_size = {x=1, y=2},
|
visual_size = {x=1, y=2},
|
||||||
textures = {"mobs_dirt_monster.png", "mobs_dirt_monster_back.png"},
|
textures = {"mobs_dirt_monster.png", "mobs_dirt_monster_back.png"},
|
||||||
|
@ -31,10 +31,14 @@ mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass"}, 3, -1, 700
|
||||||
mobs:register_mob("mobs:stone_monster", {
|
mobs:register_mob("mobs:stone_monster", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
collisionbox = {-0.4, -1, -0.4, 0.4, 1, 0.4},
|
collisionbox = {-0.4, 0, -0.4, 0.4, 1.9, 0.4},
|
||||||
visual = "upright_sprite",
|
--visual = "upright_sprite",
|
||||||
visual_size = {x=1, y=2},
|
--visual_size = {x=1, y=2},
|
||||||
textures = {"mobs_stone_monster.png", "mobs_stone_monster_back.png"},
|
--textures = {"mobs_stone_monster.png", "mobs_stone_monster_back.png"},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_stone_monster.x",
|
||||||
|
textures = {"mobs_stone_monster.png"},
|
||||||
|
visual_size = {x=3, y=2.6},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
view_range = 10,
|
view_range = 10,
|
||||||
walk_velocity = 0.5,
|
walk_velocity = 0.5,
|
||||||
|
@ -60,7 +64,7 @@ mobs:register_spawn("mobs:stone_monster", {"default:stone"}, 3, -1, 7000, 3, 0)
|
||||||
mobs:register_mob("mobs:sand_monster", {
|
mobs:register_mob("mobs:sand_monster", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_max = 3,
|
hp_max = 3,
|
||||||
collisionbox = {-0.4, -1, -0.4, 0.4, 1, 0.4},
|
collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
|
||||||
visual = "upright_sprite",
|
visual = "upright_sprite",
|
||||||
visual_size = {x=1, y=2},
|
visual_size = {x=1, y=2},
|
||||||
textures = {"mobs_sand_monster.png", "mobs_sand_monster_back.png"},
|
textures = {"mobs_sand_monster.png", "mobs_sand_monster_back.png"},
|
||||||
|
@ -112,9 +116,9 @@ mobs:register_mob("mobs:sheep", {
|
||||||
random = "mobs_sheep",
|
random = "mobs_sheep",
|
||||||
},
|
},
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 10,
|
speed_normal = 15,
|
||||||
stand_start = 0,
|
stand_start = 0,
|
||||||
stand_end = 59,
|
stand_end = 80,
|
||||||
walk_start = 81,
|
walk_start = 81,
|
||||||
walk_end = 100,
|
walk_end = 100,
|
||||||
},
|
},
|
||||||
|
@ -212,7 +216,7 @@ minetest.register_craft({
|
||||||
mobs:register_mob("mobs:oerkki", {
|
mobs:register_mob("mobs:oerkki", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_max = 8,
|
hp_max = 8,
|
||||||
collisionbox = {-0.4, 0, -0.4, 0.4, 2, 0.4},
|
collisionbox = {-0.4, 0, -0.4, 0.4, 1.9, 0.4},
|
||||||
--visual = "upright_sprite",
|
--visual = "upright_sprite",
|
||||||
--visual_size = {x=1, y=2},
|
--visual_size = {x=1, y=2},
|
||||||
--textures = {"mobs_oerkki.png", "mobs_oerkki_back.png"},
|
--textures = {"mobs_oerkki.png", "mobs_oerkki_back.png"},
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue