Replaced some models with .b3d variants, tweaked env_damage routine
This commit is contained in:
parent
49975d5608
commit
c390fb0fe5
24
api.lua
24
api.lua
@ -1,4 +1,4 @@
|
||||
-- Mobs Api (29th June 2015)
|
||||
-- Mobs Api (1st July 2015)
|
||||
mobs = {}
|
||||
mobs.mod = "redo"
|
||||
|
||||
@ -34,9 +34,9 @@ function mobs:register_mob(name, def)
|
||||
walk_velocity = def.walk_velocity or 1,
|
||||
run_velocity = def.run_velocity or 2,
|
||||
damage = def.damage,
|
||||
light_damage = def.light_damage,
|
||||
water_damage = def.water_damage,
|
||||
lava_damage = def.lava_damage,
|
||||
light_damage = def.light_damage or 0,
|
||||
water_damage = def.water_damage or 0,
|
||||
lava_damage = def.lava_damage or 0,
|
||||
fall_damage = def.fall_damage or 1,
|
||||
fall_speed = def.fall_speed or -10, -- must be lower than -2 (default: -10)
|
||||
drops = def.drops or {},
|
||||
@ -184,6 +184,7 @@ function mobs:register_mob(name, def)
|
||||
and math.random(1,self.replace_rate) == 1 then
|
||||
local pos = self.object:getpos()
|
||||
pos.y = pos.y + self.replace_offset
|
||||
-- print ("replace node = ".. minetest.get_node(pos).name, pos.y)
|
||||
if self.replace_what
|
||||
and self.object:getvelocity().y == 0
|
||||
and #minetest.find_nodes_in_area(pos, pos, self.replace_what) > 0 then
|
||||
@ -254,11 +255,12 @@ function mobs:register_mob(name, def)
|
||||
local do_env_damage = function(self)
|
||||
|
||||
local pos = self.object:getpos()
|
||||
local n = minetest.get_node(pos)
|
||||
local tod = minetest.get_timeofday()
|
||||
pos.y = (pos.y + self.collisionbox[2]) -- foot level
|
||||
--print ("standing on:", minetest.get_node(pos).name)
|
||||
if self.light_damage and self.light_damage ~= 0
|
||||
local n = minetest.get_node_or_nil(pos)
|
||||
pos.y = pos.y + 1
|
||||
|
||||
if self.light_damage ~= 0
|
||||
and pos.y > 0
|
||||
and tod > 0.2 and tod < 0.8
|
||||
and (minetest.get_node_light(pos) or 0) > 10 then
|
||||
@ -267,14 +269,16 @@ function mobs:register_mob(name, def)
|
||||
check_for_death(self)
|
||||
end
|
||||
|
||||
if self.water_damage and self.water_damage ~= 0
|
||||
if not n then return end ; -- print ("standing in "..n.name)
|
||||
|
||||
if self.water_damage ~= 0
|
||||
and minetest.get_item_group(n.name, "water") ~= 0 then
|
||||
self.object:set_hp(self.object:get_hp()-self.water_damage)
|
||||
effect(pos, 5, "bubble.png")
|
||||
check_for_death(self)
|
||||
end
|
||||
|
||||
if self.lava_damage and self.lava_damage ~= 0
|
||||
|
||||
if self.lava_damage ~= 0
|
||||
and minetest.get_item_group(n.name, "lava") ~= 0 then
|
||||
self.object:set_hp(self.object:get_hp()-self.lava_damage)
|
||||
effect(pos, 5, "fire_basic_flame.png")
|
||||
|
@ -12,15 +12,15 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||
hp_min = 12,
|
||||
hp_max = 35,
|
||||
armor = 60,
|
||||
collisionbox = {-0.7, -0.01, -0.7, 0.7, 2.6, 0.7},
|
||||
collisionbox = {-0.7, -1, -0.7, 0.7, 1.6, 0.7},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_dungeon_master.x",
|
||||
mesh = "mobs_dungeon_master.b3d",
|
||||
textures = {
|
||||
{"mobs_dungeon_master.png"},
|
||||
{"mobs_dungeon_master2.png"},
|
||||
{"mobs_dungeon_master3.png"},
|
||||
},
|
||||
visual_size = {x=8, y=8},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_dungeonmaster",
|
||||
|
BIN
models/mobs_dungeon_master.b3d
Normal file
BIN
models/mobs_dungeon_master.b3d
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_oerkki.b3d
Normal file
BIN
models/mobs_oerkki.b3d
Normal file
Binary file not shown.
3858
models/mobs_oerkki.x
3858
models/mobs_oerkki.x
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_rat.b3d
Normal file
BIN
models/mobs_rat.b3d
Normal file
Binary file not shown.
@ -1,699 +0,0 @@
|
||||
xof 0303txt 0032
|
||||
|
||||
Frame Root {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 1.000000, 0.000000,
|
||||
0.000000, 1.000000,-0.000000, 0.000000,
|
||||
0.000000, 0.000000, 0.000000, 1.000000;;
|
||||
}
|
||||
Frame Cube_004 {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000, 1.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 1.000000, 0.000000,
|
||||
0.000000, 0.000000,-0.000000, 1.000000;;
|
||||
}
|
||||
Mesh { //Cube_005 Mesh
|
||||
176;
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
-0.377237; 0.817638; 1.365515;,
|
||||
-0.377237; 1.101631; 1.365515;,
|
||||
-1.564649; 1.101631; 1.334045;,
|
||||
-1.564649; 0.817637; 1.334045;,
|
||||
-1.596119; 0.817637; 2.521457;,
|
||||
-1.596119; 1.101631; 2.521457;,
|
||||
-0.408707; 1.101631; 2.552927;,
|
||||
-0.408707; 0.817638; 2.552928;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
1.524099; 0.817637; 1.348139;,
|
||||
1.524099; 1.101631; 1.348138;,
|
||||
0.336296; 1.101631; 1.340231;,
|
||||
0.336296; 0.817638; 1.340231;,
|
||||
0.328389; 0.817638; 2.528034;,
|
||||
0.328389; 1.101631; 2.528034;,
|
||||
1.516191; 1.101631; 2.535941;,
|
||||
1.516192; 0.817637; 2.535942;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
0.148102;-5.732621; 0.182654;,
|
||||
0.216799;-2.477838; 0.265415;,
|
||||
-0.186090;-2.477838; 0.265415;,
|
||||
-0.117394;-5.732621; 0.182654;,
|
||||
-0.117394;-5.732621; 0.448150;,
|
||||
-0.186090;-2.477838; 0.668304;,
|
||||
0.216799;-2.477838; 0.668304;,
|
||||
0.148102;-5.732621; 0.448150;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
0.963839;-2.573576; 0.130200;,
|
||||
0.963839; 0.667430; 0.130200;,
|
||||
-0.933130; 0.667430; 0.130200;,
|
||||
-0.933130;-2.573576; 0.130200;,
|
||||
-0.933130;-2.573576; 2.038438;,
|
||||
-0.933130; 0.667430; 2.038438;,
|
||||
0.963839; 0.667430; 2.038438;,
|
||||
0.963839;-2.573576; 2.038438;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.725062; 0.619175; 1.814122;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.500698; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
-0.694354; 0.619175; 1.814122;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
0.312669; 2.574486; 0.745273;,
|
||||
0.312669; 3.169116; 0.745273;,
|
||||
-0.281961; 3.169116; 0.745273;,
|
||||
-0.281961; 2.574486; 0.745273;,
|
||||
-0.281961; 2.574486; 1.339903;,
|
||||
-0.281961; 3.169116; 1.339903;,
|
||||
0.312669; 3.169116; 1.339903;,
|
||||
0.312669; 2.574486; 1.339903;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
-0.469990; 2.744857; 1.874725;,
|
||||
0.725062; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.725062; 0.619175; 1.814122;,
|
||||
0.015354; 0.619175; 0.175005;,
|
||||
0.015354; 2.744857; 0.240792;,
|
||||
-0.469990; 2.744857; 0.240792;,
|
||||
-0.694354; 0.619175; 0.175005;,
|
||||
0.015354; 0.619175; 1.814122;,
|
||||
0.015354; 2.744857; 1.874725;,
|
||||
0.500698; 2.744857; 1.874725;,
|
||||
0.725062; 0.619175; 1.814122;;
|
||||
44;
|
||||
4;0;1;2;3;,
|
||||
4;4;5;6;7;,
|
||||
4;8;9;10;11;,
|
||||
4;12;13;14;15;,
|
||||
4;16;17;18;19;,
|
||||
4;20;21;22;23;,
|
||||
4;24;25;26;27;,
|
||||
4;28;29;30;31;,
|
||||
4;32;33;34;35;,
|
||||
4;36;37;38;39;,
|
||||
4;40;41;42;43;,
|
||||
4;44;45;46;47;,
|
||||
4;48;49;50;51;,
|
||||
4;52;53;54;55;,
|
||||
4;56;57;58;59;,
|
||||
4;60;61;62;63;,
|
||||
4;64;65;66;67;,
|
||||
4;68;69;70;71;,
|
||||
4;72;73;74;75;,
|
||||
4;76;77;78;79;,
|
||||
4;80;81;82;83;,
|
||||
4;84;85;86;87;,
|
||||
4;88;89;90;91;,
|
||||
4;92;93;94;95;,
|
||||
4;96;97;98;99;,
|
||||
4;100;101;102;103;,
|
||||
4;104;105;106;107;,
|
||||
4;108;109;110;111;,
|
||||
4;112;113;114;115;,
|
||||
4;116;117;118;119;,
|
||||
4;120;121;122;123;,
|
||||
4;124;125;126;127;,
|
||||
4;128;129;130;131;,
|
||||
4;132;133;134;135;,
|
||||
4;136;137;138;139;,
|
||||
4;140;141;142;143;,
|
||||
4;144;145;146;147;,
|
||||
4;148;149;150;151;,
|
||||
4;152;153;154;155;,
|
||||
4;156;157;158;159;,
|
||||
4;160;161;162;163;,
|
||||
4;164;165;166;167;,
|
||||
4;168;169;170;171;,
|
||||
4;172;173;174;175;;
|
||||
MeshNormals { //Cube_005 Normals
|
||||
176;
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
0.000000; 0.000000; 0.000000;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.999649; 0.000000;-0.026494;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.999649; 0.000001; 0.026494;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
0.026494; 0.000000;-0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.026494; 0.000000; 0.999649;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
-0.999978;-0.000000;-0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
0.999978; 0.000001; 0.006657;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
0.006657; 0.000000;-0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.006657; 0.000000; 0.999978;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
-0.999777;-0.021102; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.999777;-0.021102; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000; 0.025419;-0.999677;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
0.000000;-0.067486; 0.997720;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
-0.994476; 0.104966; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.994476; 0.104966; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000;-1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
-0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000;-1.000000; 0.000000;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000; 0.030934;-0.999521;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;,
|
||||
0.000000;-0.028498; 0.999594;;
|
||||
44;
|
||||
4;0;1;2;3;,
|
||||
4;4;5;6;7;,
|
||||
4;8;9;10;11;,
|
||||
4;12;13;14;15;,
|
||||
4;16;17;18;19;,
|
||||
4;20;21;22;23;,
|
||||
4;24;25;26;27;,
|
||||
4;28;29;30;31;,
|
||||
4;32;33;34;35;,
|
||||
4;36;37;38;39;,
|
||||
4;40;41;42;43;,
|
||||
4;44;45;46;47;,
|
||||
4;48;49;50;51;,
|
||||
4;52;53;54;55;,
|
||||
4;56;57;58;59;,
|
||||
4;60;61;62;63;,
|
||||
4;64;65;66;67;,
|
||||
4;68;69;70;71;,
|
||||
4;72;73;74;75;,
|
||||
4;76;77;78;79;,
|
||||
4;80;81;82;83;,
|
||||
4;84;85;86;87;,
|
||||
4;88;89;90;91;,
|
||||
4;92;93;94;95;,
|
||||
4;96;97;98;99;,
|
||||
4;100;101;102;103;,
|
||||
4;104;105;106;107;,
|
||||
4;108;109;110;111;,
|
||||
4;112;113;114;115;,
|
||||
4;116;117;118;119;,
|
||||
4;120;121;122;123;,
|
||||
4;124;125;126;127;,
|
||||
4;128;129;130;131;,
|
||||
4;132;133;134;135;,
|
||||
4;136;137;138;139;,
|
||||
4;140;141;142;143;,
|
||||
4;144;145;146;147;,
|
||||
4;148;149;150;151;,
|
||||
4;152;153;154;155;,
|
||||
4;156;157;158;159;,
|
||||
4;160;161;162;163;,
|
||||
4;164;165;166;167;,
|
||||
4;168;169;170;171;,
|
||||
4;172;173;174;175;;
|
||||
} //End of Cube_005 Normals
|
||||
MeshMaterialList { //Cube_005 Material List
|
||||
1;
|
||||
44;
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0;;
|
||||
Material Material_001 {
|
||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
||||
96.078431;
|
||||
0.500000; 0.500000; 0.500000;;
|
||||
0.000000; 0.000000; 0.000000;;
|
||||
}
|
||||
} //End of Cube_005 Material List
|
||||
MeshTextureCoords { //Cube_005 UV Coordinates
|
||||
176;
|
||||
0.635817; 0.275819;,
|
||||
0.635817; 0.046728;,
|
||||
0.864908; 0.046728;,
|
||||
0.864908; 0.275819;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.864346; 0.986031;,
|
||||
0.783570; 0.986031;,
|
||||
0.783570; 0.648180;,
|
||||
0.864346; 0.648180;,
|
||||
0.635817; 0.274669;,
|
||||
0.635817; 0.045578;,
|
||||
0.864908; 0.045578;,
|
||||
0.864908; 0.274669;,
|
||||
0.863901; 0.987104;,
|
||||
0.783126; 0.987104;,
|
||||
0.783126; 0.649254;,
|
||||
0.863901; 0.649254;,
|
||||
0.991231; 0.987104;,
|
||||
0.653381; 0.987104;,
|
||||
0.653381; 0.649254;,
|
||||
0.991232; 0.649254;,
|
||||
0.991232; 0.777658;,
|
||||
0.991232; 0.858433;,
|
||||
0.653381; 0.858433;,
|
||||
0.653381; 0.777658;,
|
||||
0.655529; 0.859063;,
|
||||
0.655529; 0.778288;,
|
||||
0.993379; 0.778288;,
|
||||
0.993379; 0.859063;,
|
||||
0.335443; 0.861158;,
|
||||
0.265926; 0.861158;,
|
||||
0.265926; 0.570397;,
|
||||
0.335443; 0.570397;,
|
||||
0.334205; 0.859816;,
|
||||
0.264688; 0.859816;,
|
||||
0.264688; 0.569055;,
|
||||
0.334205; 0.569055;,
|
||||
0.444367; 0.858474;,
|
||||
0.153606; 0.858474;,
|
||||
0.153606; 0.567713;,
|
||||
0.444367; 0.567713;,
|
||||
0.333996; 0.859816;,
|
||||
0.264479; 0.859816;,
|
||||
0.264479; 0.569055;,
|
||||
0.333996; 0.569055;,
|
||||
0.264228; 0.568595;,
|
||||
0.333745; 0.568595;,
|
||||
0.333745; 0.859357;,
|
||||
0.264228; 0.859357;,
|
||||
0.910309; 0.067094;,
|
||||
0.990888; 0.067068;,
|
||||
0.991634; 0.077574;,
|
||||
0.911094; 0.077574;,
|
||||
0.910309; 0.024149;,
|
||||
0.921538; 0.024149;,
|
||||
0.921538; 0.035379;,
|
||||
0.910309; 0.035379;,
|
||||
0.990708; 0.067037;,
|
||||
0.910309; 0.067041;,
|
||||
0.910896; 0.056534;,
|
||||
0.991418; 0.056534;,
|
||||
0.928966; 0.035379;,
|
||||
0.921565; 0.035379;,
|
||||
0.921565; 0.027979;,
|
||||
0.928966; 0.027979;,
|
||||
0.910595; 0.035408;,
|
||||
0.990869; 0.035406;,
|
||||
0.990583; 0.045937;,
|
||||
0.910309; 0.045939;,
|
||||
0.910597; 0.045966;,
|
||||
0.990951; 0.045966;,
|
||||
0.990662; 0.056507;,
|
||||
0.910309; 0.056507;,
|
||||
0.461795; 0.725720;,
|
||||
0.002369; 0.725720;,
|
||||
0.002369; 0.455219;,
|
||||
0.461795; 0.455219;,
|
||||
0.728915; 0.630399;,
|
||||
0.460011; 0.630399;,
|
||||
0.460011; 0.359898;,
|
||||
0.728915; 0.359898;,
|
||||
0.459622; 0.999805;,
|
||||
0.000195; 0.999805;,
|
||||
0.000195; 0.729304;,
|
||||
0.459622; 0.729304;,
|
||||
0.990155; 1.001469;,
|
||||
0.721251; 1.001469;,
|
||||
0.721251; 0.730968;,
|
||||
0.990155; 0.730968;,
|
||||
0.000987; 0.351616;,
|
||||
0.460413; 0.351616;,
|
||||
0.460413; 0.620520;,
|
||||
0.000987; 0.620520;,
|
||||
0.728915; 0.540378;,
|
||||
0.728915; 0.999805;,
|
||||
0.460011; 0.999805;,
|
||||
0.460011; 0.540378;,
|
||||
0.006594; 0.353635;,
|
||||
0.507556; 0.369053;,
|
||||
0.507556; 0.596553;,
|
||||
0.006594; 0.737794;,
|
||||
0.752538; 0.533913;,
|
||||
0.752538; 0.647662;,
|
||||
0.525038; 0.647662;,
|
||||
0.525038; 0.533913;,
|
||||
0.509703; 0.731028;,
|
||||
0.008741; 0.746446;,
|
||||
0.008741; 0.362287;,
|
||||
0.509703; 0.503529;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.003201; 0.349292;,
|
||||
0.501634; 0.401876;,
|
||||
0.501634; 0.515626;,
|
||||
0.003201; 0.515626;,
|
||||
0.529333; 0.186216;,
|
||||
0.171158; 0.150188;,
|
||||
0.171083; 0.071516;,
|
||||
0.529224; 0.071176;,
|
||||
0.636995; 0.428681;,
|
||||
0.636995; 0.545208;,
|
||||
0.520468; 0.545208;,
|
||||
0.520468; 0.428681;,
|
||||
0.340480; 0.361873;,
|
||||
0.452832; 0.361873;,
|
||||
0.452832; 0.474224;,
|
||||
0.340480; 0.474224;,
|
||||
0.453577; 0.475130;,
|
||||
0.341226; 0.475130;,
|
||||
0.341226; 0.362779;,
|
||||
0.453577; 0.362779;,
|
||||
0.453737; 0.472732;,
|
||||
0.341386; 0.472732;,
|
||||
0.341386; 0.360381;,
|
||||
0.453737; 0.360381;,
|
||||
0.454483; 0.362033;,
|
||||
0.454483; 0.474384;,
|
||||
0.342132; 0.474384;,
|
||||
0.342132; 0.362033;,
|
||||
0.342132; 0.472732;,
|
||||
0.342132; 0.360381;,
|
||||
0.454483; 0.360381;,
|
||||
0.454483; 0.472732;,
|
||||
0.752538; 0.420163;,
|
||||
0.752538; 0.533913;,
|
||||
0.525038; 0.533913;,
|
||||
0.525038; 0.420163;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.003201; 0.515626;,
|
||||
0.501634; 0.515626;,
|
||||
0.501634; 0.629375;,
|
||||
0.003201; 0.681959;,
|
||||
0.529223; 0.070318;,
|
||||
0.171082; 0.070658;,
|
||||
0.171157; 0.149330;,
|
||||
0.529332; 0.185358;;
|
||||
} //End of Cube_005 UV Coordinates
|
||||
} //End of Cube_005 Mesh
|
||||
} //End of Cube_004
|
||||
} //End of Root Frame
|
BIN
models/mobs_sand_monster.b3d
Normal file
BIN
models/mobs_sand_monster.b3d
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_sheep.b3d
Normal file
BIN
models/mobs_sheep.b3d
Normal file
Binary file not shown.
7169
models/mobs_sheep.x
7169
models/mobs_sheep.x
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_sheep_shaved.b3d
Normal file
BIN
models/mobs_sheep_shaved.b3d
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_stone_monster.b3d
Normal file
BIN
models/mobs_stone_monster.b3d
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
models/mobs_tree_monster.b3d
Normal file
BIN
models/mobs_tree_monster.b3d
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -9,14 +9,14 @@ mobs:register_mob("mobs:oerkki", {
|
||||
hp_min = 8,
|
||||
hp_max = 34,
|
||||
armor = 100,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_oerkki.x",
|
||||
mesh = "mobs_oerkki.b3d",
|
||||
textures = {
|
||||
{"mobs_oerkki.png"},
|
||||
{"mobs_oerkki2.png"},
|
||||
},
|
||||
visual_size = {x=5, y=5},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = false,
|
||||
sounds = {
|
||||
random = "mobs_oerkki",
|
||||
|
4
rat.lua
4
rat.lua
@ -7,9 +7,9 @@ mobs:register_mob("mobs:rat", {
|
||||
hp_min = 1,
|
||||
hp_max = 4,
|
||||
armor = 200,
|
||||
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||
collisionbox = {-0.2, -1, -0.2, 0.2, -0.8, 0.2},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_rat.x",
|
||||
mesh = "mobs_rat.b3d",
|
||||
textures = {
|
||||
{"mobs_rat.png"},
|
||||
{"mobs_rat2.png"},
|
||||
|
@ -9,13 +9,13 @@ mobs:register_mob("mobs:sand_monster", {
|
||||
hp_min = 4,
|
||||
hp_max = 20,
|
||||
armor = 100,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_sand_monster.x",
|
||||
mesh = "mobs_sand_monster.b3d",
|
||||
textures = {
|
||||
{"mobs_sand_monster.png"},
|
||||
},
|
||||
visual_size = {x=8,y=8},
|
||||
visual_size = {x=1,y=1},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_sandmonster",
|
||||
|
11
sheep.lua
11
sheep.lua
@ -7,15 +7,15 @@ mobs:register_mob("mobs:sheep", {
|
||||
hp_min = 8,
|
||||
hp_max = 10,
|
||||
armor = 200,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
collisionbox = {-0.4, -1, -0.4, 0.4, 0.3, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_sheep.x",
|
||||
mesh = "mobs_sheep.b3d",
|
||||
textures = {
|
||||
{"mobs_sheep.png"},
|
||||
},
|
||||
visual_size = {x=1,y=1},
|
||||
gotten_texture = {"mobs_sheep_shaved.png"},
|
||||
gotten_mesh = "mobs_sheep_shaved.x",
|
||||
gotten_mesh = "mobs_sheep_shaved.b3d",
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
@ -41,6 +41,7 @@ mobs:register_mob("mobs:sheep", {
|
||||
replace_rate = 50,
|
||||
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
|
||||
replace_with = "air",
|
||||
replace_offset = -1,
|
||||
on_rightclick = function(self, clicker)
|
||||
local item = clicker:get_wielded_item()
|
||||
local name = clicker:get_player_name()
|
||||
@ -71,7 +72,7 @@ mobs:register_mob("mobs:sheep", {
|
||||
end
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep.png"},
|
||||
mesh = "mobs_sheep.x",
|
||||
mesh = "mobs_sheep.b3d",
|
||||
})
|
||||
minetest.sound_play("mobs_sheep", {
|
||||
object = self.object,
|
||||
@ -99,7 +100,7 @@ mobs:register_mob("mobs:sheep", {
|
||||
end
|
||||
self.object:set_properties({
|
||||
textures = {"mobs_sheep_shaved.png"},
|
||||
mesh = "mobs_sheep_shaved.x",
|
||||
mesh = "mobs_sheep_shaved.b3d",
|
||||
})
|
||||
return
|
||||
end
|
||||
|
@ -9,13 +9,13 @@ mobs:register_mob("mobs:stone_monster", {
|
||||
hp_min = 12,
|
||||
hp_max = 35,
|
||||
armor = 80,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
collisionbox = {-0.4, -1, -0.4, 0.4, 0.9, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_stone_monster.x",
|
||||
mesh = "mobs_stone_monster.b3d",
|
||||
textures = {
|
||||
{"mobs_stone_monster.png"},
|
||||
},
|
||||
visual_size = {x=3, y=2.6},
|
||||
visual_size = {x=1, y=1},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_stonemonster",
|
||||
|
@ -9,13 +9,13 @@ mobs:register_mob("mobs:tree_monster", {
|
||||
hp_min = 7,
|
||||
hp_max = 33,
|
||||
armor = 100,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_tree_monster.x",
|
||||
mesh = "mobs_tree_monster.b3d",
|
||||
textures = {
|
||||
{"mobs_tree_monster.png"},
|
||||
},
|
||||
visual_size = {x=4.5,y=4.5},
|
||||
visual_size = {x=1,y=1},
|
||||
blood_texture = "default_wood.png",
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user