first commit
|
@ -0,0 +1,33 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Krupnov Pavel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
Not applicable.
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,80 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- bear
|
||||
mobs:register_mob("mobs_bear:medved", {
|
||||
type = "npc",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_medved.x",
|
||||
textures = {
|
||||
{"mobs_medved.png"},
|
||||
},
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 24,
|
||||
stand_start = 0, stand_end = 30,
|
||||
walk_start = 35, walk_end = 65,
|
||||
run_start = 105, run_end = 135,
|
||||
punch_start = 70, punch_end = 100
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
hp_min= 10,
|
||||
hp_max = 25,
|
||||
armor = 100,
|
||||
knock_back = 1,
|
||||
lava_damage = 10,
|
||||
fall_damage = 5,
|
||||
damage = 10,
|
||||
attack_type = "dogfight",
|
||||
attacks_monsters = true,
|
||||
view_range = 14,
|
||||
stepheight = 1.1,
|
||||
jump = false,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
|
||||
--{name = "mobs:leather", chance = 1, min = 1, max = 2}
|
||||
},
|
||||
follow = "mobs:honey",
|
||||
replace_rate = 50,
|
||||
replace_what = {"mobs:beehive", "farming:blueberry_4", "farming:raspberry_4", "farming_plus:strawberry",
|
||||
"bushes:strawberry_bush", "bushes:blackberry_bush", "bushes:blueberry_bush", "bushes:raspberry_bush",
|
||||
"bushes:gooseberry_bush", "bushes:mixed_berry_bush"},
|
||||
replace_with = "air",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 10, true) then
|
||||
local hp = self.object:get_hp()
|
||||
if hp + 4 > self.hp_max then
|
||||
hp = self.hp_max
|
||||
else
|
||||
hp = hp + 4
|
||||
end
|
||||
self.object:set_hp(hp)
|
||||
return
|
||||
end
|
||||
if clicker:get_wielded_item():is_empty() and clicker:get_player_name() == self.owner then
|
||||
if clicker:get_player_control().sneak then
|
||||
self.order = ""
|
||||
self.state = "walk"
|
||||
else
|
||||
if self.order == "follow" then
|
||||
self.order = "stand"
|
||||
self.state = "stand"
|
||||
else
|
||||
self.order = "follow"
|
||||
self.state = "walk"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
local l_spawn_elevation_min = minetest.setting_get("water_level") - 10 or 1
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_bear:medved",
|
||||
{"default:dirt_with_grass", "default:dirt", "default:desert_sand", "ethereal:green_dirt_top"},
|
||||
{"air"},
|
||||
0, 20, 30, 20000, 1, l_spawn_elevation_min, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_bear:medved", "Bear", "wool_brown.png", 1)
|
||||
|
||||
end
|
After Width: | Height: | Size: 1023 B |
|
@ -0,0 +1,33 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Krupnov Pavel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
Not applicable.
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,49 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- bugs
|
||||
mobs:register_mob("mobs_bugslive:bug", {
|
||||
type = "animal",
|
||||
visual = "mesh",
|
||||
mesh = "bug.x",
|
||||
textures = {
|
||||
{"bug1.png"},
|
||||
{"bug2.png"},
|
||||
{"bug3.png"},
|
||||
{"bug4.png"},
|
||||
{"bug5.png"},
|
||||
{"bug6.png"},
|
||||
{"bug7.png"},
|
||||
{"bug8.png"}
|
||||
},
|
||||
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||
hp_min = 1,
|
||||
hp_max = 1,
|
||||
armor = 200,
|
||||
knock_back = 0,
|
||||
blood_amount = 1,
|
||||
lava_damage = 1,
|
||||
fall_damage = 0,
|
||||
damage = 1,
|
||||
attack_type = "dogfight",
|
||||
group_attack = true,
|
||||
view_range = 3,
|
||||
stepheight = 1.1,
|
||||
jump_height = 2,
|
||||
jump_chance = 5,
|
||||
fall_speed = -5,
|
||||
floats = 0,
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 50, 80, 0, true, nil)
|
||||
end
|
||||
})
|
||||
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_bugslive:bug",
|
||||
{"default:dirt_with_grass", "default:stone", "ethereal:green_dirt_top"},
|
||||
{"air", "default:water_source", "default:water_flowing", "default:river_water_source", "default:river_water_flowing"},
|
||||
-1, 20, 30, 6000, 2, -31000, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_bugslive:bug", "Bug", "inv_bug.png", 0)
|
||||
|
||||
end
|
|
@ -0,0 +1,292 @@
|
|||
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 {
|
||||
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.010425,-0.006298, 1.091357, 1.000000;;
|
||||
}
|
||||
Mesh { //Cube_001 Mesh
|
||||
72;
|
||||
-1.321992;-1.000000;-0.801456;,
|
||||
-1.321992; 0.911076;-0.801456;,
|
||||
-1.000000; 0.911076; 1.000000;,
|
||||
-1.000000;-1.000000; 1.000000;,
|
||||
0.883806; 1.787118;-1.000000;,
|
||||
-0.883806; 1.787118;-1.000000;,
|
||||
-1.321992; 0.911076;-0.801456;,
|
||||
1.305309; 0.911076;-0.720027;,
|
||||
1.305309; 0.911076;-0.720027;,
|
||||
1.305309;-1.000000;-0.720027;,
|
||||
1.000000;-1.000000; 1.000000;,
|
||||
1.000000; 0.911076; 1.000000;,
|
||||
-1.000000;-1.735994;-1.000000;,
|
||||
1.000000;-1.735994;-1.000000;,
|
||||
1.305309;-1.000000;-0.720027;,
|
||||
-1.321992;-1.000000;-0.801456;,
|
||||
1.305309;-1.000000;-0.720027;,
|
||||
1.305309; 0.911076;-0.720027;,
|
||||
-1.321992; 0.911076;-0.801456;,
|
||||
-1.321992;-1.000000;-0.801456;,
|
||||
-1.000000;-1.000000; 1.000000;,
|
||||
-1.000000; 0.911076; 1.000000;,
|
||||
1.000000; 0.911076; 1.000000;,
|
||||
1.000000;-1.000000; 1.000000;,
|
||||
0.602511; 2.369493;-1.000000;,
|
||||
-0.602511; 2.369493;-1.000000;,
|
||||
-0.883806; 1.787118;-1.000000;,
|
||||
0.883806; 1.787118;-1.000000;,
|
||||
-0.701485; 1.787118; 0.209391;,
|
||||
0.701485; 1.787118; 0.209391;,
|
||||
1.000000; 0.911076; 1.000000;,
|
||||
-1.000000; 0.911076; 1.000000;,
|
||||
0.701485; 1.787118; 0.209391;,
|
||||
0.883806; 1.787118;-1.000000;,
|
||||
1.305309; 0.911076;-0.720027;,
|
||||
1.000000; 0.911076; 1.000000;,
|
||||
-1.000000; 0.911076; 1.000000;,
|
||||
-1.321992; 0.911076;-0.801456;,
|
||||
-0.883806; 1.787118;-1.000000;,
|
||||
-0.701485; 1.787118; 0.209391;,
|
||||
1.000000;-1.735994;-1.000000;,
|
||||
-1.000000;-1.735994;-1.000000;,
|
||||
-0.653574;-1.735994; 0.150237;,
|
||||
0.653574;-1.735994; 0.150237;,
|
||||
0.653574;-1.735994; 0.150237;,
|
||||
-0.653574;-1.735994; 0.150237;,
|
||||
-1.000000;-1.000000; 1.000000;,
|
||||
1.000000;-1.000000; 1.000000;,
|
||||
-1.321992;-1.000000;-0.801456;,
|
||||
-1.000000;-1.000000; 1.000000;,
|
||||
-0.653574;-1.735994; 0.150237;,
|
||||
-1.000000;-1.735994;-1.000000;,
|
||||
1.000000;-1.000000; 1.000000;,
|
||||
1.305309;-1.000000;-0.720027;,
|
||||
1.000000;-1.735994;-1.000000;,
|
||||
0.653574;-1.735994; 0.150237;,
|
||||
-0.602511; 2.369493;-1.000000;,
|
||||
0.602511; 2.369493;-1.000000;,
|
||||
0.602511; 2.369493;-0.142950;,
|
||||
-0.602511; 2.369493;-0.142950;,
|
||||
0.602511; 2.369493;-0.142950;,
|
||||
0.602511; 2.369493;-1.000000;,
|
||||
0.883806; 1.787118;-1.000000;,
|
||||
0.701485; 1.787118; 0.209391;,
|
||||
-0.701485; 1.787118; 0.209391;,
|
||||
-0.883806; 1.787118;-1.000000;,
|
||||
-0.602511; 2.369493;-1.000000;,
|
||||
-0.602511; 2.369493;-0.142950;,
|
||||
-0.602511; 2.369493;-0.142950;,
|
||||
0.602511; 2.369493;-0.142950;,
|
||||
0.701485; 1.787118; 0.209391;,
|
||||
-0.701485; 1.787118; 0.209391;;
|
||||
18;
|
||||
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;;
|
||||
MeshNormals { //Cube_001 Normals
|
||||
72;
|
||||
-0.984399; 0.000000; 0.175951;,
|
||||
-0.984399; 0.000000; 0.175951;,
|
||||
-0.984399; 0.000000; 0.175951;,
|
||||
-0.984399; 0.000000; 0.175951;,
|
||||
0.017870;-0.263580;-0.964472;,
|
||||
0.017870;-0.263580;-0.964472;,
|
||||
0.017870;-0.263580;-0.964472;,
|
||||
0.017870;-0.263580;-0.964472;,
|
||||
0.984609; 0.000000; 0.174771;,
|
||||
0.984609; 0.000000; 0.174771;,
|
||||
0.984609; 0.000000; 0.174771;,
|
||||
0.984609; 0.000000; 0.174771;,
|
||||
0.016732; 0.309285;-0.950822;,
|
||||
0.016732; 0.309285;-0.950822;,
|
||||
0.016732; 0.309285;-0.950822;,
|
||||
0.016732; 0.309285;-0.950822;,
|
||||
0.030978; 0.000000;-0.999520;,
|
||||
0.030978; 0.000000;-0.999520;,
|
||||
0.030978; 0.000000;-0.999520;,
|
||||
0.030978; 0.000000;-0.999520;,
|
||||
-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; 0.669981; 0.742379;,
|
||||
0.000000; 0.669981; 0.742379;,
|
||||
0.000000; 0.669981; 0.742379;,
|
||||
0.000000; 0.669981; 0.742379;,
|
||||
0.880270; 0.451281; 0.146529;,
|
||||
0.880270; 0.451281; 0.146529;,
|
||||
0.880270; 0.451281; 0.146529;,
|
||||
0.880270; 0.451281; 0.146529;,
|
||||
-0.879322; 0.452880; 0.147285;,
|
||||
-0.879322; 0.452880; 0.147285;,
|
||||
-0.879322; 0.452880; 0.147285;,
|
||||
-0.879322; 0.452880; 0.147285;,
|
||||
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.755895; 0.654693;,
|
||||
0.000000;-0.755895; 0.654693;,
|
||||
0.000000;-0.755895; 0.654693;,
|
||||
0.000000;-0.755895; 0.654693;,
|
||||
-0.836255;-0.514602; 0.189372;,
|
||||
-0.836255;-0.514602; 0.189372;,
|
||||
-0.836255;-0.514602; 0.189372;,
|
||||
-0.836255;-0.514602; 0.189372;,
|
||||
0.835576;-0.515574; 0.189730;,
|
||||
0.835576;-0.515574; 0.189730;,
|
||||
0.835576;-0.515574; 0.189730;,
|
||||
0.835576;-0.515574; 0.189730;,
|
||||
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.939676; 0.331866; 0.082907;,
|
||||
0.939676; 0.331866; 0.082907;,
|
||||
0.939676; 0.331866; 0.082907;,
|
||||
0.939676; 0.331866; 0.082907;,
|
||||
-0.939676; 0.331866; 0.082907;,
|
||||
-0.939676; 0.331866; 0.082907;,
|
||||
-0.939676; 0.331866; 0.082907;,
|
||||
-0.939676; 0.331866; 0.082907;,
|
||||
0.000000; 0.517642; 0.855597;,
|
||||
0.000000; 0.517642; 0.855597;,
|
||||
0.000000; 0.517642; 0.855597;,
|
||||
0.000000; 0.517642; 0.855597;;
|
||||
18;
|
||||
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;;
|
||||
} //End of Cube_001 Normals
|
||||
MeshMaterialList { //Cube_001 Material List
|
||||
1;
|
||||
1;
|
||||
0;;
|
||||
Material Default_Material {
|
||||
0.800000; 0.800000; 0.800000; 0.800000;;
|
||||
96.078431;
|
||||
0.500000; 0.500000; 0.500000;;
|
||||
0.000000; 0.000000; 0.000000;;
|
||||
}
|
||||
} //End of Cube_001 Material List
|
||||
MeshTextureCoords { //Cube_001 UV Coordinates
|
||||
72;
|
||||
0.135930; 0.845468;,
|
||||
0.054879; 0.526397;,
|
||||
0.244015; 0.469720;,
|
||||
0.258455; 0.792371;,
|
||||
0.402228; 0.047907;,
|
||||
0.400590; 0.244696;,
|
||||
0.300242; 0.292777;,
|
||||
0.300229; 0.000128;,
|
||||
0.960452; 0.521628;,
|
||||
0.865983; 0.855741;,
|
||||
0.751577; 0.790275;,
|
||||
0.755816; 0.468850;,
|
||||
0.002308; 0.257644;,
|
||||
0.000128; 0.034985;,
|
||||
0.087460; 0.000137;,
|
||||
0.087473; 0.292787;,
|
||||
0.087460; 0.000137;,
|
||||
0.300229; 0.000128;,
|
||||
0.300242; 0.292777;,
|
||||
0.087473; 0.292787;,
|
||||
0.258455; 0.792371;,
|
||||
0.244015; 0.469720;,
|
||||
0.755816; 0.468850;,
|
||||
0.751577; 0.790275;,
|
||||
0.772188; 0.068151;,
|
||||
0.643993; 0.071047;,
|
||||
0.449213; 0.024797;,
|
||||
0.934985; 0.035704;,
|
||||
0.346874; 0.363482;,
|
||||
0.640766; 0.363580;,
|
||||
0.755816; 0.468850;,
|
||||
0.244015; 0.469720;,
|
||||
0.640766; 0.363580;,
|
||||
0.959120; 0.363564;,
|
||||
0.960452; 0.521628;,
|
||||
0.755816; 0.468850;,
|
||||
0.244015; 0.469720;,
|
||||
0.054879; 0.526397;,
|
||||
0.053205; 0.362575;,
|
||||
0.346874; 0.363482;,
|
||||
0.724543; 0.986633;,
|
||||
0.282056; 0.985735;,
|
||||
0.427358; 0.828222;,
|
||||
0.605176; 0.827844;,
|
||||
0.605176; 0.827844;,
|
||||
0.427358; 0.828222;,
|
||||
0.258455; 0.792371;,
|
||||
0.751577; 0.790275;,
|
||||
0.135930; 0.845468;,
|
||||
0.258455; 0.792371;,
|
||||
0.427358; 0.828222;,
|
||||
0.282056; 0.985735;,
|
||||
0.751577; 0.790275;,
|
||||
0.865983; 0.855741;,
|
||||
0.724543; 0.986633;,
|
||||
0.605176; 0.827844;,
|
||||
0.643993; 0.071047;,
|
||||
0.772188; 0.068151;,
|
||||
0.753487; 0.200398;,
|
||||
0.660190; 0.200079;,
|
||||
0.753487; 0.200398;,
|
||||
0.772188; 0.068151;,
|
||||
0.934985; 0.035704;,
|
||||
0.932842; 0.311149;,
|
||||
0.435299; 0.312775;,
|
||||
0.449213; 0.024797;,
|
||||
0.643993; 0.071047;,
|
||||
0.660190; 0.200079;,
|
||||
0.660190; 0.200079;,
|
||||
0.753487; 0.200398;,
|
||||
0.932842; 0.311149;,
|
||||
0.435299; 0.312775;;
|
||||
} //End of Cube_001 UV Coordinates
|
||||
} //End of Cube_001 Mesh
|
||||
} //End of Cube
|
||||
} //End of Root Frame
|
After Width: | Height: | Size: 386 B |
After Width: | Height: | Size: 391 B |
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 351 B |
After Width: | Height: | Size: 416 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 290 B |
|
@ -0,0 +1,33 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Krupnov Pavel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
Not applicable.
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,58 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- deer
|
||||
mobs:register_mob("mobs_deer:deer", {
|
||||
type = "animal",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_deer2.x",
|
||||
textures = {
|
||||
{"mobs_deer.png"},
|
||||
},
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 24,
|
||||
stand_start = 25, stand_end = 75,
|
||||
walk_start = 75, walk_end = 100,
|
||||
run_start = 75, run_end = 100
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
hp_min = 4,
|
||||
hp_max = 8,
|
||||
armor = 200,
|
||||
knock_back = 1,
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
fall_damage = 5,
|
||||
passive = true,
|
||||
view_range = 14,
|
||||
run_velocity = 3,
|
||||
stepheight = 1.1,
|
||||
jump_height = 8,
|
||||
jump_chance = 5,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
|
||||
--{name = "mobs:leather", chance = 1, min = 1, max = 3}
|
||||
},
|
||||
follow = "farming:wheat",
|
||||
replace_rate = 50,
|
||||
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
|
||||
replace_with = "air",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 10, true) then
|
||||
return
|
||||
end
|
||||
mobs:capture_mob(self, clicker, 0, 0, 80, false, nil)
|
||||
end
|
||||
})
|
||||
|
||||
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_deer:deer",
|
||||
{"default:dirt_with_grass", "ethereal:green_dirt_top"},
|
||||
{"air"},
|
||||
8, 20, 30, 20000, 1, l_spawn_elevation_min, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_deer:deer", "Deer", "wool_violet.png", 1)
|
||||
|
||||
end
|
After Width: | Height: | Size: 967 B |
|
@ -0,0 +1,33 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Krupnov Pavel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
Not applicable.
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,58 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- jeraf
|
||||
mobs:register_mob("mobs_giraffe:jeraf", {
|
||||
type = "animal",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_jeraf.x",
|
||||
textures = {
|
||||
{"mobs_jeraf.png"},
|
||||
},
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 24,
|
||||
stand_start = 0, stand_end = 30,
|
||||
walk_start = 70, walk_end = 100,
|
||||
run_start = 70, run_end = 100
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
hp_min = 8,
|
||||
hp_max = 12,
|
||||
armor = 200,
|
||||
knock_back = 1,
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
fall_damage = 10,
|
||||
passive = true,
|
||||
view_range = 16,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
stepheight = 2.1,
|
||||
jump = false,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
|
||||
--{name = "mobs:leather", chance = 1, min = 1, max = 4}
|
||||
},
|
||||
follow = "farming:wheat",
|
||||
replace_rate = 50,
|
||||
replace_what = {"group:leaves"},
|
||||
replace_with = "air",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 10, true) then
|
||||
return
|
||||
end
|
||||
mobs:capture_mob(self, clicker, 0, 0, 80, false, nil)
|
||||
end
|
||||
})
|
||||
|
||||
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_giraffe:jeraf",
|
||||
{"default:sand", "default:desert_sand"},
|
||||
{"air"},
|
||||
8, 20, 30, 20000, 1, l_spawn_elevation_min, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_giraffe:jeraf", "Giraffe", "wool_yellow.png", 1)
|
||||
|
||||
end
|
After Width: | Height: | Size: 780 B |
|
@ -0,0 +1,15 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
unknown
|
||||
|
||||
Created by: Nathan S.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
See Mobs.Redo license
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,129 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- mr.goat
|
||||
mobs:register_mob("mobs_mr_goat:goat", {
|
||||
type = "animal",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_goat.b3d",
|
||||
textures = {
|
||||
{"mobs_goat_white.png"},
|
||||
{"mobs_goat_brown.png"},
|
||||
{"mobs_goat_grey.png"},
|
||||
},
|
||||
visual_size = {x=2,y=2},
|
||||
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.75, 0.3},
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 24,
|
||||
stand_start = 1, stand_end = 121,
|
||||
walk_start = 122, walk_end = 182,
|
||||
run_start = 122, run_end = 182,
|
||||
punch_start = 246, punch_end = 330,
|
||||
-- 1-30 head down, 31-60 head up, 61-121 tail wiggle, 185-215 lay down,
|
||||
-- 216-245 getting up, 331-390 chewing, 391-511 look around
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
},
|
||||
hp_min = 6,
|
||||
hp_max = 12,
|
||||
armor = 200,
|
||||
knock_back = 1,
|
||||
water_damage = 1,
|
||||
lava_damage = 7,
|
||||
fall_damage = 7,
|
||||
damage = 2,
|
||||
attack_type = "dogfight",
|
||||
view_range = 7,
|
||||
stepheight = 1.1,
|
||||
jump_chance = 5,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
|
||||
--{name = "mobs:leather", chance = 1, min = 1, max = 2}
|
||||
},
|
||||
follow = "farming:wheat",
|
||||
replace_rate = 50,
|
||||
replace_what = {"group:flora"},
|
||||
replace_with = "air",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 10, true) then
|
||||
return
|
||||
end
|
||||
local tool = clicker:get_wielded_item()
|
||||
if tool:get_name() == "bucket:bucket_empty" then
|
||||
if self.gotten == true
|
||||
or self.child == true then
|
||||
return
|
||||
end
|
||||
local inv = clicker:get_inventory()
|
||||
inv:remove_item("main", "bucket:bucket_empty")
|
||||
if inv:room_for_item("main", {name = "mobs_mr_goat:bucket_goatmilk"}) then
|
||||
clicker:get_inventory():add_item("main", "mobs_mr_goat:bucket_goatmilk")
|
||||
else
|
||||
local pos = self.object:getpos()
|
||||
pos.y = pos.y + 0.5
|
||||
minetest.add_item(pos, {name = "mobs_mr_goat:bucket_goatmilk"})
|
||||
end
|
||||
self.gotten = true -- milked
|
||||
return
|
||||
end
|
||||
mobs:capture_mob(self, clicker, 0, 0, 60, false, nil)
|
||||
end
|
||||
})
|
||||
|
||||
local l_spawn_elevation_min = minetest.setting_get("water_level") + 1 or 1
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_mr_goat:goat",
|
||||
{"default:dirt_with_grass", "ethereal:green_dirt_top"},
|
||||
{"air"},
|
||||
0, 20, 30, 15000, 1, l_spawn_elevation_min, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_mr_goat:goat", "Goat", "default_grass.png", 1)
|
||||
|
||||
-- bucket of goat milk
|
||||
minetest.register_craftitem("mobs_mr_goat:bucket_goatmilk", {
|
||||
description = "Bucket of Goat Milk",
|
||||
inventory_image = "mobs_bucket_milk.png",
|
||||
stack_max = 1,
|
||||
on_use = minetest.item_eat(10, 'bucket:bucket_empty')
|
||||
})
|
||||
|
||||
-- cheese wedge
|
||||
minetest.register_craftitem("mobs_mr_goat:goatcheese", {
|
||||
description = "Goat Cheese",
|
||||
inventory_image = "mobs_cheese.png",
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mobs_mr_goat:goatcheese",
|
||||
recipe = "mobs_mr_goat:bucket_goatmilk",
|
||||
cooktime = 8,
|
||||
replacements = {{ "mobs_mr_goat:bucket_goatmilk", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
-- cheese block
|
||||
minetest.register_node("mobs_mr_goat:goatcheeseblock", {
|
||||
description = "Goat Cheese Block",
|
||||
tiles = {"mobs_cheeseblock.png"},
|
||||
is_ground_content = false,
|
||||
groups = {crumbly = 3},
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mobs_mr_goat:goatcheeseblock",
|
||||
recipe = {
|
||||
{'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese'},
|
||||
{'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese'},
|
||||
{'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese', 'mobs_mr_goat:goatcheese'}
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "mobs_mr_goat:goatcheese 9",
|
||||
recipe = {
|
||||
{'mobs_mr_goat:goatcheeseblock'}
|
||||
}
|
||||
})
|
||||
|
||||
end
|
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.2 KiB |
|
@ -0,0 +1,33 @@
|
|||
**CODE**
|
||||
--------
|
||||
See Mobs.Redo license
|
||||
|
||||
|
||||
**MODELS/TEXTURES**
|
||||
-------------------
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Krupnov Pavel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
|
||||
**SOUNDS**
|
||||
----------
|
||||
As above
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mobs
|
|
@ -0,0 +1,127 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
-- wolf
|
||||
mobs:register_mob("mobs_wolf:wolf", {
|
||||
type = "animal",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_wolf.x",
|
||||
textures = {
|
||||
{"mobs_wolf.png"},
|
||||
},
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
animation = {
|
||||
speed_normal = 20, speed_run = 30,
|
||||
stand_start = 10, stand_end = 20,
|
||||
walk_start = 75, walk_end = 100,
|
||||
run_start = 100, run_end = 130,
|
||||
punch_start = 135, punch_end = 155
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
war_cry = "mobs_wolf_attack"
|
||||
},
|
||||
hp_min = 4,
|
||||
hp_max = 6,
|
||||
armor = 200,
|
||||
lava_damage = 5,
|
||||
fall_damage = 4,
|
||||
damage = 2,
|
||||
attack_type = "dogfight",
|
||||
group_attack = true,
|
||||
view_range = 7,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
stepheight = 1.1,
|
||||
follow = "mobs:meat_raw",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 2, false) then
|
||||
if self.food == 0 then
|
||||
local mob = minetest.add_entity(self.object:getpos(), "mobs_wolf:dog")
|
||||
local ent = mob:get_luaentity()
|
||||
ent.owner = clicker:get_player_name()
|
||||
ent.following = clicker
|
||||
ent.order = "follow"
|
||||
self.object:remove()
|
||||
end
|
||||
return
|
||||
end
|
||||
mobs:capture_mob(self, clicker, 0, 0, 80, true, nil)
|
||||
end
|
||||
})
|
||||
|
||||
local l_spawn_elevation_min = minetest.setting_get("water_level") - 5 or 1
|
||||
--name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height
|
||||
mobs:spawn_specific("mobs_wolf:wolf",
|
||||
{"default:dirt_with_grass", "default:dirt","default:snow", "default:snowblock", "ethereal:green_dirt_top"},
|
||||
{"air"},
|
||||
-1, 20, 30, 10000, 2, l_spawn_elevation_min, 31000
|
||||
)
|
||||
mobs:register_egg("mobs_wolf:wolf", "Wolf", "wool_grey.png", 1)
|
||||
|
||||
-- Dog
|
||||
mobs:register_mob("mobs_wolf:dog", {
|
||||
type = "npc",
|
||||
visual = "mesh",
|
||||
mesh = "mobs_wolf.x",
|
||||
textures = {
|
||||
{"mobs_dog.png"},
|
||||
{"mobs_medved.png"}
|
||||
},
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||
animation = {
|
||||
speed_normal = 20, speed_run = 30,
|
||||
stand_start = 10, stand_end = 20,
|
||||
walk_start = 75, walk_end = 100,
|
||||
run_start = 100, run_end = 130,
|
||||
punch_start = 135, punch_end = 155
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
war_cry = "mobs_wolf_attack"
|
||||
},
|
||||
hp_min = 5,
|
||||
hp_max = 7,
|
||||
armor = 200,
|
||||
lava_damage = 5,
|
||||
fall_damage = 5,
|
||||
damage = 2,
|
||||
attack_type = "dogfight",
|
||||
attacks_monsters = true,
|
||||
group_attack = true,
|
||||
view_range = 15,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
stepheight = 1.1,
|
||||
follow = "mobs:raw_meat",
|
||||
on_rightclick = function(self, clicker)
|
||||
if mobs:feed_tame(self, clicker, 6, true) then
|
||||
local hp = self.object:get_hp()
|
||||
if hp + 4 > self.hp_max then
|
||||
hp = self.hp_max
|
||||
else
|
||||
hp = hp + 4
|
||||
end
|
||||
self.object:set_hp(hp)
|
||||
return
|
||||
end
|
||||
if clicker:get_wielded_item():is_empty() and clicker:get_player_name() == self.owner then
|
||||
if clicker:get_player_control().sneak then
|
||||
self.order = ""
|
||||
self.state = "walk"
|
||||
else
|
||||
if self.order == "follow" then
|
||||
self.order = "stand"
|
||||
self.state = "stand"
|
||||
else
|
||||
self.order = "follow"
|
||||
self.state = "walk"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
mobs:register_egg("mobs_wolf:dog", "Dog", "wool_brown.png", 1)
|
||||
|
||||
end
|
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1023 B |
After Width: | Height: | Size: 1.1 KiB |