Merge branch 'master' of github.com:Ombridride/minetest-minetestforfun-server
51
a merger/mobs-MFF/README.txt
Executable file
@ -0,0 +1,51 @@
|
|||||||
|
-= MOBS-MOD for MINETEST =-
|
||||||
|
by PilzAdam, KrupnovPavel, Zeg9 and TenPlus1
|
||||||
|
|
||||||
|
|
||||||
|
https://forum.minetest.net/viewtopic.php?f=9&t=9917
|
||||||
|
|
||||||
|
This mod contains the following additions:
|
||||||
|
|
||||||
|
- Giant Spiders (found in desert caves, drop string when killed)
|
||||||
|
- Bee's (found around flowers, drop honey when killed, right-click to pick up, also Beehives)
|
||||||
|
- Chicken (lays eggs, added fried egg, raw & cooked chicken, right-click to pick up)
|
||||||
|
- Cow (right-click with empty bucket to get bucket of milk, feed 8 wheat to replenish milk)
|
||||||
|
- Sheep (right-click for wool, feed 8 wheat to replenish wool)
|
||||||
|
- Warthog (the local pig that gives raw and cooked port)
|
||||||
|
- Rats (right-click to pick up and place, cook for a tasty treat)
|
||||||
|
- Sand, Dirt, Stone, Tree Monsters, Oerkki and Dungeon Masters as standard
|
||||||
|
- Lava Flan, Mese Monsters added to spice things up a bit
|
||||||
|
- Cook milk in furnace to get cheese wedge, 9 wedges make 1 cheese block
|
||||||
|
|
||||||
|
..with the following new features:
|
||||||
|
|
||||||
|
- Hitting a mob has knock-back effect like in minecraft, and with blood effect
|
||||||
|
- Mobs float in water, so monsters can still chase you
|
||||||
|
- Mobs can die from falling from a height
|
||||||
|
- Mobs have better health and drops
|
||||||
|
- Hitting a mob also puts them into fight mode (apart from animals)
|
||||||
|
- Compatible with Ethereal mod, mobs now spawn on ethereal worlds
|
||||||
|
|
||||||
|
Changelog:
|
||||||
|
|
||||||
|
1,10- Footstep removed (use replace), explosion routine added for exploding mobs.
|
||||||
|
1.09- reworked breeding routine, added mob rotation value, added footstep feature, added jumping mobs with sounds feature, added magic lasso for picking up animals
|
||||||
|
1.08- Mob throwing attack has been rehauled so that they can damage one another, also drops and on_die function added
|
||||||
|
1.07- Npc's can now be set to follow player or stand by using self.order and self.owner variables
|
||||||
|
beta- Npc mob added, kills monsters, attacks player when punched, right click with food to heal or gold lump for drop
|
||||||
|
1.06- Changed recovery times after breeding, and time taken to grow up (can be sped up by feeding baby animal)
|
||||||
|
1.05- Added ExeterDad's bunny's which can be picked up and tamed with 4 carrots from farming redo or farming_plus, also shears added to get wool from sheep and lastly Jordach/BSD's kitten
|
||||||
|
1.04- Added mating for sheep, cows and hogs... feed animals to make horny and hope for a baby which is half size, will grow up quick though :)
|
||||||
|
1.03- Added mob drop/replace feature so that chickens can drop eggs, cow/sheep can eat grass/wheat etc.
|
||||||
|
1.02- Sheared sheep are remembered and spawn shaven, Warthogs will attack when threatened, Api additions
|
||||||
|
1.01- Mobs that suffer fall damage or die in water/lava/sunlight will now drop items
|
||||||
|
1.0 - more work on Api so that certain mobs can float in water while some sink like a brick :)
|
||||||
|
0.9 - Spawn eggs added for all mobs (admin only, cannot be placed in protected areas)... Api tweaked
|
||||||
|
0.8 - Added sounds to monster mobs (thanks Cyberpangolin for the sfx) and also chicken sound
|
||||||
|
0.7 - mobs.protected switch added to api.lua, when set to 1 mobs no longer spawn in protected areas, also bug fixes
|
||||||
|
0.6 - Api now supports multi-textured mobs, e.g oerkki, dungeon master, rats and chickens have random skins when spawning (sheep fix TODO), also new Honey block
|
||||||
|
0.5 - Mobs now float in water, die from falling, and some code improvements
|
||||||
|
0.4 - Dungeon Masters and Mese Monsters have much better aim due to shoot_offset, also they can both shoot through nodes that aren't walkable (flowers, grass etc) plus new sheep sound :)
|
||||||
|
0.3 - Added LOTT's Spider mob, made Cobwebs, added KPavel's Bee with Honey and Beehives (made texture), Warthogs now have sound and can be tamed, taming of shaved sheep or milked cow with 8 wheat so it will not despawn, many bug fixes :)
|
||||||
|
0.2 - Cooking bucket of milk into cheese now returns empty bucket
|
||||||
|
0.1 - Initial Release
|
1185
a merger/mobs-MFF/api.lua
Executable file
121
a merger/mobs-MFF/bee.lua
Executable file
@ -0,0 +1,121 @@
|
|||||||
|
|
||||||
|
-- Bee by KrupnoPavel
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:bee", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "animal",
|
||||||
|
-- it is aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 1,
|
||||||
|
hp_max = 2,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_bee.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_bee.png"},
|
||||||
|
},
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_bee",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
-- drops honey when killed
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:honey",
|
||||||
|
chance = 1, min = 1, max = 2,},
|
||||||
|
},
|
||||||
|
-- damage
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 1,
|
||||||
|
light_damage = 0,
|
||||||
|
fall_damage = 0,
|
||||||
|
fall_speed = -3,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 30,
|
||||||
|
walk_start = 35,
|
||||||
|
walk_end = 65,
|
||||||
|
},
|
||||||
|
-- right click to pick up bee
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
if clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:bee") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:bee")
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawn on group:flowers between 4 and 20 light, 1 in 5000 chance, 1 bee in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:bee", {"group:flower"}, 20, 4, 5000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:bee", "Bee", "mobs_bee_inv.png", 0)
|
||||||
|
|
||||||
|
-- honey
|
||||||
|
minetest.register_craftitem("mobs:honey", {
|
||||||
|
description = "Honey",
|
||||||
|
inventory_image = "mobs_honey_inv.png",
|
||||||
|
on_use = minetest.item_eat(6),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- beehive (when placed spawns bee)
|
||||||
|
minetest.register_node("mobs:beehive", {
|
||||||
|
description = "Beehive",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 1.0,
|
||||||
|
tiles ={"mobs_beehive.png"},
|
||||||
|
inventory_image = "mobs_beehive.png",
|
||||||
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
walkable = true,
|
||||||
|
groups = {fleshy=3,dig_immediate=3},
|
||||||
|
on_use = minetest.item_eat(4),
|
||||||
|
sounds = default.node_sound_defaults(),
|
||||||
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
if placer:is_player() then
|
||||||
|
minetest.set_node(pos, {name="mobs:beehive", param2=1})
|
||||||
|
minetest.add_entity(pos, "mobs:bee")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:beehive",
|
||||||
|
recipe = {
|
||||||
|
{"mobs:bee","mobs:bee","mobs:bee"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- honey block
|
||||||
|
minetest.register_node("mobs:honey_block", {
|
||||||
|
description = "Honey Block",
|
||||||
|
tiles = {"mobs_honey_block.png"},
|
||||||
|
groups = {snappy=3,flammable=2},
|
||||||
|
sounds = default.node_sound_dirt_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:honey_block",
|
||||||
|
recipe = {
|
||||||
|
{"mobs:honey", "mobs:honey", "mobs:honey"},
|
||||||
|
{"mobs:honey", "mobs:honey", "mobs:honey"},
|
||||||
|
{"mobs:honey", "mobs:honey", "mobs:honey"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:honey 9",
|
||||||
|
recipe = {
|
||||||
|
{"mobs:honey_block"},
|
||||||
|
}
|
||||||
|
})
|
78
a merger/mobs-MFF/bunny.lua
Executable file
@ -0,0 +1,78 @@
|
|||||||
|
|
||||||
|
-- Bunny by ExeterDad
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:bunny", {
|
||||||
|
-- animal, monster, npc
|
||||||
|
type = "animal",
|
||||||
|
-- is it aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 3,
|
||||||
|
hp_max = 6,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_bunny.b3d",
|
||||||
|
textures = {
|
||||||
|
{"mobs_bunny_grey.png"},
|
||||||
|
{"mobs_bunny_brown.png"},
|
||||||
|
{"mobs_bunny_white.png"},
|
||||||
|
},
|
||||||
|
-- sounds
|
||||||
|
sounds = {},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
-- drops meat when deat
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:meat_raw",
|
||||||
|
chance = 1, min = 1, max = 2,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 4,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15,
|
||||||
|
stand_start = 1, stand_end = 15,
|
||||||
|
walk_start = 16, walk_end = 24,
|
||||||
|
},
|
||||||
|
-- follows carrot from farming redo
|
||||||
|
follow = "farming:carrot",
|
||||||
|
view_range = 8,
|
||||||
|
-- eat carrots
|
||||||
|
replace_rate = 80,
|
||||||
|
replace_what = {"farming:carrot_7", "farming:carrot_8", "farming_plus:carrot"},
|
||||||
|
replace_with = "air",
|
||||||
|
-- right click to pick up rabbit
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
local item = clicker:get_wielded_item()
|
||||||
|
if item:get_name() == "farming_plus:carrot_item"
|
||||||
|
or item:get_name() == "farming:carrot" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
self.food = (self.food or 0) + 1
|
||||||
|
if self.food >= 4 then
|
||||||
|
self.food = 0
|
||||||
|
self.tamed = true
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:bunny") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:bunny")
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_spawn("mobs:bunny", {"default:dirt_with_grass"}, 20, 8, 10000, 1, 31000)
|
||||||
|
mobs:register_egg("mobs:bunny", "Bunny", "mobs_bunny_inv.png", 0)
|
154
a merger/mobs-MFF/chicken.lua
Executable file
@ -0,0 +1,154 @@
|
|||||||
|
|
||||||
|
-- Chicken by JK Murray
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:chicken", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "animal",
|
||||||
|
-- is it aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 4,
|
||||||
|
hp_max = 8,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_chicken.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png",
|
||||||
|
"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png"},
|
||||||
|
{"mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png",
|
||||||
|
"mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png", "mobs_chicken_black.png"},
|
||||||
|
},
|
||||||
|
child_texture = {
|
||||||
|
{"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png",
|
||||||
|
"mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png", "mobs_chick.png"},
|
||||||
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_chicken",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
-- drops raw chicken when dead
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:chicken_raw",
|
||||||
|
chance = 1, min = 2, max = 2},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
fall_damage = 0,
|
||||||
|
fall_speed = -8,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 1, -- 20
|
||||||
|
walk_start = 20,
|
||||||
|
walk_end = 40,
|
||||||
|
},
|
||||||
|
-- follows wheat
|
||||||
|
follow = "farming:seed_wheat",
|
||||||
|
view_range = 8,
|
||||||
|
-- replace air with egg (lay)
|
||||||
|
replace_rate = 2000,
|
||||||
|
replace_what = {"air"},
|
||||||
|
replace_with = "mobs:egg",
|
||||||
|
-- right click to pick up chicken
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
local tool = clicker:get_wielded_item()
|
||||||
|
if tool:get_name() == "farming:seed_wheat" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
tool:take_item(1)
|
||||||
|
clicker:set_wielded_item(tool)
|
||||||
|
end
|
||||||
|
if self.child == true then
|
||||||
|
self.hornytimer = self.hornytimer + 10
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.food = (self.food or 0) + 1
|
||||||
|
if self.food >= 8 then
|
||||||
|
self.food = 0
|
||||||
|
if self.hornytimer == 0 then
|
||||||
|
self.horny = true
|
||||||
|
end
|
||||||
|
self.tamed = true
|
||||||
|
minetest.sound_play("mobs_chicken", {object = self.object,gain = 1.0,max_hear_distance = 16,loop = false,})
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:chicken") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:chicken")
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawn on default or bamboo grass between 8 and 20 light, 1 in 10000 change, 1 chicken in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:chicken", {"default:dirt_with_grass"}, 20, 8, 10000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:chicken", "Chicken", "mobs_chicken_inv.png", 0)
|
||||||
|
|
||||||
|
-- egg
|
||||||
|
minetest.register_node("mobs:egg", {
|
||||||
|
description = "Chicken Egg",
|
||||||
|
tiles = {"mobs_chicken_egg.png"},
|
||||||
|
inventory_image = "mobs_chicken_egg.png",
|
||||||
|
visual_scale = 0.7,
|
||||||
|
drawtype = "plantlike",
|
||||||
|
wield_image = "mobs_chicken_egg.png",
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
is_ground_content = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
||||||
|
},
|
||||||
|
groups = {snappy=2, dig_immediate=3},
|
||||||
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
if placer:is_player() then
|
||||||
|
minetest.set_node(pos, {name="mobs:egg", param2=1})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
-- fried egg
|
||||||
|
minetest.register_craftitem("mobs:chicken_egg_fried", {
|
||||||
|
description = "Fried Egg",
|
||||||
|
inventory_image = "mobs_chicken_egg_fried.png",
|
||||||
|
on_use = minetest.item_eat(2),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
recipe = "mobs:egg",
|
||||||
|
output = "mobs:chicken_egg_fried",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- chicken (raw and cooked)
|
||||||
|
minetest.register_craftitem("mobs:chicken_raw", {
|
||||||
|
description = "Raw Chicken",
|
||||||
|
inventory_image = "mobs_chicken_raw.png",
|
||||||
|
on_use = minetest.item_eat(2),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("mobs:chicken_cooked", {
|
||||||
|
description = "Cooked Chicken",
|
||||||
|
inventory_image = "mobs_chicken_cooked.png",
|
||||||
|
on_use = minetest.item_eat(4), -- Modif MFF
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
recipe = "mobs:chicken_raw",
|
||||||
|
output = "mobs:chicken_cooked",
|
||||||
|
})
|
171
a merger/mobs-MFF/cow.lua
Executable file
@ -0,0 +1,171 @@
|
|||||||
|
|
||||||
|
-- Cow by Krupnovpavel
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:cow", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "animal",
|
||||||
|
-- aggressive, does 5 damage to player when threatened
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 5,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 20,
|
||||||
|
hp_max = 30,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_cow.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_cow.png"},
|
||||||
|
--{"mobs_cow_brown.png"}, -- dé-commenter quand "mobs_cow_brown.png" sera compatible
|
||||||
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
visual_size = {x=1,y=1},
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_cow",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = false,
|
||||||
|
-- drops raw meat when dead
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:meat_raw",
|
||||||
|
chance = 1, min = 5, max = 10},
|
||||||
|
{name = "mobs:leather",
|
||||||
|
chance = 1, min = 0, max = 3},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 30,
|
||||||
|
walk_start = 35, walk_end = 65,
|
||||||
|
run_start = 105, run_end = 135,
|
||||||
|
punch_start = 70, punch_end = 100,
|
||||||
|
},
|
||||||
|
-- follows wheat
|
||||||
|
follow = "farming:wheat", view_range = 8,
|
||||||
|
-- replace grass/wheat with air (eat)
|
||||||
|
replace_rate = 50,
|
||||||
|
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
|
||||||
|
replace_with = "air",
|
||||||
|
-- right-click cow with empty bucket to get milk, then feed 8 wheat to replenish milk
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
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 room add bucket of milk to inventory, otherwise drop as item
|
||||||
|
if inv:room_for_item("main", {name="mobs:bucket_milk"}) then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
|
||||||
|
else
|
||||||
|
local pos = self.object:getpos()
|
||||||
|
pos.y = pos.y + 0.5
|
||||||
|
minetest.add_item(pos, {name = "mobs:bucket_milk"})
|
||||||
|
end
|
||||||
|
self.gotten = true -- milked
|
||||||
|
end
|
||||||
|
|
||||||
|
if tool:get_name() == "farming:wheat" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
tool:take_item(1)
|
||||||
|
clicker:set_wielded_item(tool)
|
||||||
|
end
|
||||||
|
if self.child == true then
|
||||||
|
self.hornytimer = self.hornytimer + 10
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.food = (self.food or 0) + 1
|
||||||
|
if self.food >= 8 then
|
||||||
|
self.food = 0
|
||||||
|
if self.hornytimer == 0 then
|
||||||
|
self.horny = true
|
||||||
|
end
|
||||||
|
self.gotten = false -- ready to be milked again
|
||||||
|
self.tamed = true
|
||||||
|
minetest.sound_play("mobs_cow", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if tool:get_name() == "mobs:magic_lasso"
|
||||||
|
and clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:cow") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:cow")
|
||||||
|
self.object:remove()
|
||||||
|
tool:add_wear(3000) -- 22 uses
|
||||||
|
clicker:set_wielded_item(tool)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawn on default;green;prairie grass between 0 and 20 light, 1 in 11000 chance, 1 cow in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:cow", {"default:dirt_with_grass"}, 20, 8, 10000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:cow", "Cow", "default_grass.png", 1)
|
||||||
|
|
||||||
|
-- leather
|
||||||
|
minetest.register_craftitem("mobs:leather", {
|
||||||
|
description = "Leather",
|
||||||
|
inventory_image = "mobs_leather.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- bucket of milk
|
||||||
|
minetest.register_craftitem("mobs:bucket_milk", {
|
||||||
|
description = "Bucket of Milk",
|
||||||
|
inventory_image = "mobs_bucket_milk.png",
|
||||||
|
stack_max = 1,
|
||||||
|
on_use = minetest.item_eat(8, 'bucket:bucket_empty'),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- cheese wedge
|
||||||
|
minetest.register_craftitem("mobs:cheese", {
|
||||||
|
description = "Cheese",
|
||||||
|
inventory_image = "mobs_cheese.png",
|
||||||
|
on_use = minetest.item_eat(4),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mobs:cheese",
|
||||||
|
recipe = "mobs:bucket_milk",
|
||||||
|
cooktime = 5,
|
||||||
|
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- cheese block
|
||||||
|
minetest.register_node("mobs:cheeseblock", {
|
||||||
|
description = "Cheese Block",
|
||||||
|
tiles = {"mobs_cheeseblock.png"},
|
||||||
|
is_ground_content = false,
|
||||||
|
groups = {crumbly=3},
|
||||||
|
sounds = default.node_sound_dirt_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:cheeseblock",
|
||||||
|
recipe = {
|
||||||
|
{'mobs:cheese', 'mobs:cheese', 'mobs:cheese'},
|
||||||
|
{'mobs:cheese', 'mobs:cheese', 'mobs:cheese'},
|
||||||
|
{'mobs:cheese', 'mobs:cheese', 'mobs:cheese'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:cheese 9",
|
||||||
|
recipe = {
|
||||||
|
{'mobs:cheeseblock'},
|
||||||
|
}
|
||||||
|
})
|
66
a merger/mobs-MFF/creeper.lua
Executable file
@ -0,0 +1,66 @@
|
|||||||
|
|
||||||
|
-- Creeper by Davedevils (from his subgame MineClone)
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:creeper", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- agressive, does 21 damage to player when explode
|
||||||
|
passive = false,
|
||||||
|
attack_type = "kamicaze",
|
||||||
|
damage = 21,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 30, hp_max = 40, armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_tree_monster.x",
|
||||||
|
drawtype = "front",
|
||||||
|
textures = {
|
||||||
|
{"mobs_creeper.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=4.5,y=4.5},
|
||||||
|
blood_texture = "mobs_creeper_inv.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_treemonster",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 2,
|
||||||
|
run_velocity = 4,
|
||||||
|
jump = true,
|
||||||
|
view_range = 16,
|
||||||
|
-- drops mese or diamond when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:torch",
|
||||||
|
chance = 10,
|
||||||
|
min = 3,
|
||||||
|
max = 5,},
|
||||||
|
{name = "default:iron_lump",
|
||||||
|
chance = 5,
|
||||||
|
min = 1,
|
||||||
|
max = 2,},
|
||||||
|
{name = "default:coal_lump",
|
||||||
|
chance = 3,
|
||||||
|
min = 1,
|
||||||
|
max = 3,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 2,
|
||||||
|
min = 2,
|
||||||
|
max = 3,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 2,
|
||||||
|
lava_damage = 15,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
stand_start = 0, stand_end = 24,
|
||||||
|
walk_start = 25, walk_end = 47,
|
||||||
|
run_start = 48, run_end = 62,
|
||||||
|
punch_start = 48, punch_end = 62,
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
mobs:register_spawn("mobs:creeper", {"default:dirt_with_grass"}, 20, 8, 12000, 1, 31000)
|
||||||
|
mobs:register_egg("mobs:creeper", "Creeper", "mobs_creeper_inv.png", 1)
|
2
a merger/mobs-MFF/depends.txt
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
default
|
||||||
|
mesecons_materials?
|
57
a merger/mobs-MFF/dirtmonster.lua
Executable file
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
-- Dirt Monster by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:dirt_monster", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 6 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 6,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 25,
|
||||||
|
hp_max = 30,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_stone_monster.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_dirt_monster.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=2.6},
|
||||||
|
blood_texture = "default_dirt.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_dirtmonster",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
view_range = 16,
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 5,
|
||||||
|
jump = true,
|
||||||
|
-- drops dirt and coins when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:dirt",
|
||||||
|
chance = 1, min = 3, max = 5,},
|
||||||
|
{name = "maptools:copper_coin",
|
||||||
|
chance = 2, min = 2, max = 8,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 2,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 14,
|
||||||
|
walk_start = 15, walk_end = 38,
|
||||||
|
run_start = 40, run_end = 63,
|
||||||
|
punch_start = 40, punch_end = 63,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawn on normal;grey dirt between 0 and 5 light, 1 in 7000 change, 1 dirt monster in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:dirt_monster", {"default:dirt_with_grass"}, 5, -1, 9500, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:dirt_monster", "Dirt Monster", "default_dirt.png", 1)
|
160
a merger/mobs-MFF/dungeonmaster.lua
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
|
||||||
|
-- Dungeon Master by PilzAdam
|
||||||
|
|
||||||
|
-- Node which cannot be destroyed by DungeonMasters' fireballs
|
||||||
|
local excluded = {"nether:netherrack","default:obsidian_glass","default:obsidian", "default:obsidian_cooled", "default:bedrock", "doors:door_steel_b_1", "doors:door_steel_t_1", "doors:door_steel_b_2", "doors:door_steel_t_2","default:chest_locked"}
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:dungeon_master", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, shoots fireballs at player, deal 13 damages
|
||||||
|
passive = false,
|
||||||
|
damage = 13,
|
||||||
|
attack_type = "shoot",
|
||||||
|
shoot_interval = 2.5,
|
||||||
|
arrow = "mobs:fireball",
|
||||||
|
shoot_offset = 0,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 50,
|
||||||
|
hp_max = 60,
|
||||||
|
armor = 60,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.7, -0.01, -0.7, 0.7, 2.6, 0.7},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_dungeon_master.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_dungeon_master.png"},
|
||||||
|
{"mobs_dungeon_master_cobblestone.png"},
|
||||||
|
{"mobs_dungeon_master_strangewhite.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=8, y=8},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_dungeonmaster",
|
||||||
|
attack = "mobs_fireball",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = false,
|
||||||
|
view_range = 16,
|
||||||
|
-- drops mese or diamond when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:mese_crystal_fragment",
|
||||||
|
chance = 1, min = 1, max = 3,},
|
||||||
|
{name = "default:diamond",
|
||||||
|
chance = 5, min = 1, max = 3,},
|
||||||
|
{name = "default:mese_crystal",
|
||||||
|
chance = 2, min = 1, max = 3,},
|
||||||
|
{name = "default:diamond_block",
|
||||||
|
chance = 30, min = 1, max = 1,},
|
||||||
|
{name = "maptools:gold_coin",
|
||||||
|
chance = 15, min = 1, max = 2,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 1, min = 2, max = 10,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 1,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
stand_start = 0, stand_end = 19,
|
||||||
|
walk_start = 20, walk_end = 35,
|
||||||
|
punch_start = 36, punch_end = 48,
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawn on stone between 20 and -1 light, 1 in 7000 chance, 1 dungeon master in area starting at -100 and below
|
||||||
|
mobs:register_spawn("mobs:dungeon_master", {"default:stone, nether:netherrack"}, 20, -1, 7000, 1, -100)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:dungeon_master", "Dungeon Master", "fire_basic_flame.png", 1)
|
||||||
|
|
||||||
|
-- fireball (weapon)
|
||||||
|
mobs:register_arrow("mobs:fireball", {
|
||||||
|
visual = "sprite",
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
textures = {"mobs_fireball.png"},
|
||||||
|
velocity = 6,
|
||||||
|
|
||||||
|
-- direct hit, no fire... just plenty of pain
|
||||||
|
hit_player = function(self, player)
|
||||||
|
player:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval=1.0,
|
||||||
|
damage_groups = {fleshy=13},
|
||||||
|
}, 0)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hit_mob = function(self, player)
|
||||||
|
player:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval=1.0,
|
||||||
|
damage_groups = {fleshy=8},
|
||||||
|
}, 0)
|
||||||
|
end,
|
||||||
|
|
||||||
|
-- node hit, bursts into flame (cannot blast through obsidian or protection redo mod items)
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
local pos = vector.round(pos)
|
||||||
|
local radius = 1
|
||||||
|
local vm = VoxelManip()
|
||||||
|
local minp, maxp = vm:read_from_map(vector.subtract(pos, radius), vector.add(pos, radius))
|
||||||
|
local a = VoxelArea:new({MinEdge = minp, MaxEdge = maxp})
|
||||||
|
local data = vm:get_data()
|
||||||
|
local p = {}
|
||||||
|
local c_air = minetest.get_content_id("air")
|
||||||
|
local c_ignore = minetest.get_content_id("ignore")
|
||||||
|
local c_obsidian = minetest.get_content_id("default:obsidian")
|
||||||
|
local c_brick = minetest.get_content_id("default:obsidianbrick")
|
||||||
|
|
||||||
|
for z = -radius, radius do
|
||||||
|
for y = -radius, radius do
|
||||||
|
local vi = a:index(pos.x + (-radius), pos.y + y, pos.z + z)
|
||||||
|
for x = -radius, radius do
|
||||||
|
p.x = pos.x + x
|
||||||
|
p.y = pos.y + y
|
||||||
|
p.z = pos.z + z
|
||||||
|
if data[vi] ~= c_air and data[vi] ~= c_ignore and data[vi] ~= c_obsidian and data[vi] ~= c_brick then
|
||||||
|
local n = minetest.get_node(p).name
|
||||||
|
-- do NOT destroy protection nodes but DO destroy nodes in protected area
|
||||||
|
if not n:find("protector:") then -- and not minetest.is_protected(p, "") then
|
||||||
|
local excluding = minetest.get_item_group(n, "unbreakable") == 1
|
||||||
|
or n:split(":")[1] == "nether"
|
||||||
|
or next(areas:getAreasAtPos(p)) ~= nil
|
||||||
|
for _,i in ipairs(excluded) do
|
||||||
|
if i == n then excluding = true end
|
||||||
|
end
|
||||||
|
--if p.y < -19600 and including and n:split(":")[1] == "nether" then
|
||||||
|
if excluding then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if n == "default:chest" then
|
||||||
|
meta = minetest.get_meta(p)
|
||||||
|
inv = meta:get_inventory()
|
||||||
|
for i = 1,32 do
|
||||||
|
m_stack = inv:get_stack("main",i)
|
||||||
|
obj = minetest.add_item(pos,m_stack)
|
||||||
|
if obj then
|
||||||
|
obj:setvelocity({x=math.random(-2,1), y=7, z=math.random(-2,1)})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if minetest.registered_nodes[n].groups.flammable or math.random(1, 100) <= 30 then
|
||||||
|
minetest.set_node(p, {name="fire:basic_flame"})
|
||||||
|
else
|
||||||
|
minetest.remove_node(p)
|
||||||
|
end
|
||||||
|
if n == "doors:door_wood_b_1" then
|
||||||
|
minetest.remove_node({x=p.x,y=p.y+1,z=p.z})
|
||||||
|
elseif n == "doors:door_wood_t_1" then
|
||||||
|
minetest.remove_node({x=p.x,y=p.y-1,z=p.z})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vi = vi + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
166
a merger/mobs-MFF/greenslimes.lua
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
|
||||||
|
-- Green Slimes by TomasJLuis & TenPlus1
|
||||||
|
|
||||||
|
-- sounds
|
||||||
|
local green_sounds = {
|
||||||
|
damage = "mobs_slimes_damage",
|
||||||
|
death = "mobs_slimes_death",
|
||||||
|
jump = "mobs_slimes_jump",
|
||||||
|
attack = "mobs_slimes_attack",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- green slime textures
|
||||||
|
local green_textures = {"mobs_green_slime_sides.png", "mobs_green_slime_sides.png", "mobs_green_slime_sides.png", "mobs_green_slime_sides.png", "mobs_green_slime_front.png", "mobs_green_slime_sides.png"}
|
||||||
|
|
||||||
|
-- register small green slime
|
||||||
|
mobs:register_mob("mobs:greensmall", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 2 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 2,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 4, hp_max = 8,
|
||||||
|
armor = 100,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { green_textures },
|
||||||
|
blood_texture = "mobs_green_slime_blood.png",
|
||||||
|
visual_size = {x = 0.5, y = 0.5},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = green_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 4,
|
||||||
|
run_velocity = 4,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping glue and coins
|
||||||
|
drops = {
|
||||||
|
{name = "mesecons_materials:glue",
|
||||||
|
chance = 4, min = 1, max = 2},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 4, min = 1, max = 1,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 10,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:greensmall", "Small Green Slime", "mobs_green_slime_egg.png", 1)
|
||||||
|
|
||||||
|
-- register medium green slime
|
||||||
|
mobs:register_mob("mobs:greenmedium", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 4 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 4,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 16, hp_max = 32,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { green_textures },
|
||||||
|
blood_texture = "mobs_green_slime_blood.png",
|
||||||
|
visual_size = {x = 1, y = 1},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = green_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 3,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping glue and coins
|
||||||
|
drops = {
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 10,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
-- do things when die
|
||||||
|
on_die = function(self, pos)
|
||||||
|
local num = math.random(2, 4)
|
||||||
|
for i=1,num do
|
||||||
|
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:greensmall")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:greenmedium", "Medium Green Slime", "mobs_green_slime_egg.png", 1)
|
||||||
|
|
||||||
|
-- register big green slime
|
||||||
|
mobs:register_mob("mobs:greenbig", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 6 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 6,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 32, hp_max = 64,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-1, -1, -1, 1, 1, 1},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { green_textures },
|
||||||
|
blood_texture = "mobs_green_slime_blood.png",
|
||||||
|
visual_size = {x = 2, y = 2},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = green_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 2.5,
|
||||||
|
run_velocity = 2.5,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping glue and coins
|
||||||
|
drops = {
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 10,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
-- do things when die
|
||||||
|
on_die = function(self, pos)
|
||||||
|
local num = math.random(1, 2)
|
||||||
|
for i=1,num do
|
||||||
|
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:greenmedium")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:greenbig", "Big Green Slime", "mobs_green_slime_egg.png", 1)
|
||||||
|
|
||||||
|
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
||||||
|
mobs:spawn_specific("mobs:greenbig", {"default:acid_source"},{"default:acid_flowing"}, 20, -1, 30, 4000, 1, -32000, 32000)
|
||||||
|
mobs:spawn_specific("mobs:greenmedium", {"default:acid_source"},{"default:acid_flowing"}, 20, -1, 30, 4000, 2, -32000, 32000)
|
||||||
|
--mobs:spawn_specific("mobs:greensmall", {"default:acid_source"},{"default:acid_flowing"}, 20, -1, 30, 10000, 2, -32000, 32000)
|
||||||
|
|
||||||
|
--mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)
|
||||||
|
--mobs:register_spawn("mobs:greenmedium", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
||||||
|
--mobs:register_spawn("mobs:greensmall", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
88
a merger/mobs-MFF/init.lua
Executable file
@ -0,0 +1,88 @@
|
|||||||
|
-- Mob Api
|
||||||
|
|
||||||
|
dofile(minetest.get_modpath("mobs").."/api.lua")
|
||||||
|
|
||||||
|
-- Animals
|
||||||
|
|
||||||
|
dofile(minetest.get_modpath("mobs").."/chicken.lua") -- JKmurray
|
||||||
|
dofile(minetest.get_modpath("mobs").."/cow.lua") -- KrupnoPavel
|
||||||
|
dofile(minetest.get_modpath("mobs").."/rat.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/sheep.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/warthog.lua") -- KrupnoPavel
|
||||||
|
dofile(minetest.get_modpath("mobs").."/bee.lua") -- KrupnoPavel
|
||||||
|
dofile(minetest.get_modpath("mobs").."/bunny.lua") -- ExeterDad
|
||||||
|
dofile(minetest.get_modpath("mobs").."/kitten.lua") -- Jordach/BFD
|
||||||
|
|
||||||
|
-- Monsters
|
||||||
|
|
||||||
|
dofile(minetest.get_modpath("mobs").."/dirtmonster.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/dungeonmaster.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/oerkki.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/sandmonster.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/stonemonster.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/treemonster.lua") -- PilzAdam
|
||||||
|
dofile(minetest.get_modpath("mobs").."/wolf.lua") -- PilzAdam
|
||||||
|
--dofile(minetest.get_modpath("mobs").."/lava_flan.lua") -- Zeg9 --Remplaced by Lava Slime
|
||||||
|
dofile(minetest.get_modpath("mobs").."/mese_monster.lua") -- Zeg9
|
||||||
|
dofile(minetest.get_modpath("mobs").."/spider.lua") -- AspireMint
|
||||||
|
dofile(minetest.get_modpath("mobs").."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
||||||
|
dofile(minetest.get_modpath("mobs").."/lavaslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
||||||
|
|
||||||
|
-- begin slimes mobs compatibility changes
|
||||||
|
-- cannot find mesecons?, craft glue instead
|
||||||
|
if not minetest.get_modpath("mesecons_materials") then
|
||||||
|
minetest.register_craftitem(":mesecons_materials:glue", {
|
||||||
|
image = "jeija_glue.png",
|
||||||
|
description = "Glue",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
if minetest.setting_get("log_mods") then minetest.log("action", "Slimes loaded") end
|
||||||
|
-- end slimes mobs compatibility changes
|
||||||
|
|
||||||
|
-- NPC
|
||||||
|
dofile(minetest.get_modpath("mobs").."/npc.lua") -- TenPlus1
|
||||||
|
|
||||||
|
-- Creeper (fast impl by davedevils)
|
||||||
|
dofile(minetest.get_modpath("mobs").."/creeper.lua")
|
||||||
|
|
||||||
|
-- Meat & Cooked Meat
|
||||||
|
|
||||||
|
minetest.register_craftitem("mobs:meat_raw", {
|
||||||
|
description = "Raw Meat",
|
||||||
|
inventory_image = "mobs_meat_raw.png",
|
||||||
|
on_use = minetest.item_eat(3),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("mobs:meat", {
|
||||||
|
description = "Meat",
|
||||||
|
inventory_image = "mobs_meat.png",
|
||||||
|
on_use = minetest.item_eat(8),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mobs:meat",
|
||||||
|
recipe = "mobs:meat_raw",
|
||||||
|
cooktime = 5,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Golden Lasso
|
||||||
|
|
||||||
|
minetest.register_tool("mobs:magic_lasso", {
|
||||||
|
description = "Magic Lasso (right-click animal to put in inventory)",
|
||||||
|
inventory_image = "mobs_magic_lasso.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:magic_lasso",
|
||||||
|
recipe = {
|
||||||
|
{"farming:string", "default:gold_lump", "farming:string"},
|
||||||
|
{"default:gold_lump", "default:diamondblock", "default:gold_lump"},
|
||||||
|
{"farming:string", "default:gold_lump", "farming:string"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if minetest.setting_get("log_mods") then
|
||||||
|
minetest.log("action", "mobs loaded")
|
||||||
|
end
|
81
a merger/mobs-MFF/kitten.lua
Executable file
@ -0,0 +1,81 @@
|
|||||||
|
|
||||||
|
-- Kitten by Jordach / BFD
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:kitten", {
|
||||||
|
-- animal, monster, npc
|
||||||
|
type = "animal",
|
||||||
|
-- is it aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 4,
|
||||||
|
hp_max = 8,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
|
||||||
|
visual = "mesh",
|
||||||
|
visual_size = {x=0.5, y=0.5},
|
||||||
|
mesh = "mobs_kitten.b3d",
|
||||||
|
textures = {
|
||||||
|
{"mobs_kitten_striped.png"},
|
||||||
|
{"mobs_kitten_splotchy.png"},
|
||||||
|
{"mobs_kitten_ginger.png"},
|
||||||
|
{"mobs_kitten_sandy.png"},
|
||||||
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_kitten",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 0.6,
|
||||||
|
jump = false,
|
||||||
|
-- drops string and coins
|
||||||
|
drops = {
|
||||||
|
{name = "maptools:copper_coin",
|
||||||
|
chance = 10, min = 1, max = 1,},
|
||||||
|
{name = "farming:string",
|
||||||
|
chance = 2, min = 1, max = 1},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 5,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 42,
|
||||||
|
stand_start = 97, stand_end = 192,
|
||||||
|
walk_start = 0, walk_end = 96,
|
||||||
|
},
|
||||||
|
-- follows rat
|
||||||
|
follow = "mobs:rat",
|
||||||
|
view_range = 8,
|
||||||
|
-- feed with raw fish to tame or right click to pick up
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
local item = clicker:get_wielded_item()
|
||||||
|
if item:get_name() == "fishing:fish_raw"
|
||||||
|
or item:get_name() == "ethereal:fish_raw" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
self.food = (self.food or 0) + 1
|
||||||
|
if self.food >= 4 then
|
||||||
|
self.food = 0
|
||||||
|
self.tamed = true
|
||||||
|
minetest.sound_play("mobs_kitten", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:kitten") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:kitten")
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_spawn("mobs:kitten", {"default:dirt_with_grass"}, 20, 0, 10000, 1, 31000)
|
||||||
|
mobs:register_egg("mobs:kitten", "Kitten", "mobs_kitten_inv.png", 0)
|
70
a merger/mobs-MFF/lava_flan.lua
Executable file
@ -0,0 +1,70 @@
|
|||||||
|
|
||||||
|
-- Lava Flan by Zeg9
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:lava_flan", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 5 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 5,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 20,
|
||||||
|
hp_max = 35,
|
||||||
|
armor = 80,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "zmobs_lava_flan.x",
|
||||||
|
textures = {
|
||||||
|
{"zmobs_lava_flan.png"},
|
||||||
|
},
|
||||||
|
blood_texture = "fire_basic_flame.png",
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_lavaflan",
|
||||||
|
war_cry = "mobs_lavaflan",
|
||||||
|
},
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 0.5,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = true,
|
||||||
|
-- step = 2, (was good with this value, but don't care now because Lava Slime remplace Lava Flan)
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping lava orb when dead
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:lava_orb",
|
||||||
|
chance = 15, min = 1, max = 1,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 5,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 8,
|
||||||
|
walk_start = 10, walk_end = 18,
|
||||||
|
run_start = 20, run_end = 28,
|
||||||
|
punch_start = 20, punch_end = 28,
|
||||||
|
},
|
||||||
|
-- do things when die
|
||||||
|
on_die = function(self, pos)
|
||||||
|
minetest.set_node(pos, {name="fire:basic_flame"})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawns in lava between -1 and 20 light, 1 in 2000 chance, 3 in area below 31000 in height
|
||||||
|
mobs:register_spawn("mobs:lava_flan", {"default:lava_source"}, 20, -1, 2500, 3, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:lava_flan", "Lava Flan", "default_lava.png", 1)
|
||||||
|
|
||||||
|
-- lava orb
|
||||||
|
minetest.register_craftitem("mobs:lava_orb", {
|
||||||
|
description = "Lava orb",
|
||||||
|
inventory_image = "zmobs_lava_orb.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("zmobs:lava_orb", "mobs:lava_orb")
|
177
a merger/mobs-MFF/lavaslimes.lua
Normal file
@ -0,0 +1,177 @@
|
|||||||
|
|
||||||
|
-- Lava Slimes by TomasJLuis & TenPlus1
|
||||||
|
|
||||||
|
-- sounds
|
||||||
|
local lava_sounds = {
|
||||||
|
damage = "mobs_slimes_damage",
|
||||||
|
death = "mobs_slimes_death",
|
||||||
|
jump = "mobs_slimes_jump",
|
||||||
|
attack = "mobs_slimes_attack",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- lava slime textures
|
||||||
|
local lava_textures = {"mobs_lava_slime_sides.png", "mobs_lava_slime_sides.png", "mobs_lava_slime_sides.png", "mobs_lava_slime_sides.png", "mobs_lava_slime_front.png", "mobs_lava_slime_sides.png"}
|
||||||
|
|
||||||
|
-- register small lava slime
|
||||||
|
mobs:register_mob("mobs:lavasmall", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 2 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 2,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 4, hp_max = 8,
|
||||||
|
armor = 100,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { lava_textures },
|
||||||
|
blood_texture = "mobs_lava_slime_blood.png",
|
||||||
|
visual_size = {x = 0.5, y = 0.5},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = lava_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 4,
|
||||||
|
run_velocity = 4,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
replace_rate = 20,
|
||||||
|
footstep = "fire:basic_flame",
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping coins
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:lava_orb",
|
||||||
|
chance = 15, min = 1, max = 1,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 4, min = 1, max = 1,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 10,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:lavasmall", "Small Lava Slime", "mobs_lava_slime_egg.png", 1)
|
||||||
|
|
||||||
|
-- register medium lava slime
|
||||||
|
mobs:register_mob("mobs:lavamedium", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 4 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 4,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 16, hp_max = 32,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { lava_textures },
|
||||||
|
blood_texture = "mobs_lava_slime_blood.png",
|
||||||
|
visual_size = {x = 1, y = 1},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = lava_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 3,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
replace_rate = 20,
|
||||||
|
footstep = "fire:basic_flame",
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping coins
|
||||||
|
drops = {
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 10,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
-- do things when die
|
||||||
|
on_die = function(self, pos)
|
||||||
|
local num = math.random(2, 4)
|
||||||
|
for i=1,num do
|
||||||
|
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:lavasmall")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:lavamedium", "Medium Lava Slime", "mobs_lava_slime_egg.png", 1)
|
||||||
|
|
||||||
|
-- register big lava slime
|
||||||
|
mobs:register_mob("mobs:lavabig", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 6 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 6,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health and armor
|
||||||
|
hp_min = 32, hp_max = 64,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-1, -1, -1, 1, 1, 1},
|
||||||
|
visual = "cube",
|
||||||
|
textures = { lava_textures },
|
||||||
|
blood_texture = "mobs_lava_slime_blood.png",
|
||||||
|
visual_size = {x = 2, y = 2},
|
||||||
|
-- sounds a bit here, but mainly define in the beginning
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = lava_sounds,
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 2.5,
|
||||||
|
run_velocity = 2.5,
|
||||||
|
walk_chance = 0,
|
||||||
|
jump = true,
|
||||||
|
jump_chance = 30,
|
||||||
|
jump_height = 6,
|
||||||
|
replace_rate = 20,
|
||||||
|
replace_offset = -1,
|
||||||
|
footstep = "fire:basic_flame",
|
||||||
|
view_range = 16,
|
||||||
|
floats = 1,
|
||||||
|
-- chance of dropping coins
|
||||||
|
drops = {
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 10,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
-- no model animation
|
||||||
|
-- do things when die
|
||||||
|
on_die = function(self, pos)
|
||||||
|
local num = math.random(1, 2)
|
||||||
|
for i=1,num do
|
||||||
|
minetest.add_entity({x=pos.x + math.random(-2, 2), y=pos.y + 1, z=pos.z + (math.random(-2, 2))}, "mobs:lavamedium")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
mobs:register_egg("mobs:lavabig", "Big Lava Slime", "mobs_lava_slime_egg.png", 1)
|
||||||
|
|
||||||
|
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
||||||
|
mobs:spawn_specific("mobs:lavabig", {"default:lava_source"},{"default:lava_flowing"}, 20, -1, 30, 4000, 1, -32000, 32000)
|
||||||
|
mobs:spawn_specific("mobs:lavamedium", {"default:lava_source"},{"default:lava_flowing"}, 20, -1, 30, 4000, 2, -32000, 32000)
|
||||||
|
--mobs:spawn_specific("mobs:lavasmall", {"default:lava_source"},{"default:lava_flowing"}, 20, -1, 30, 10s000, 2, -32000, 32000)
|
||||||
|
|
||||||
|
-- lava orb
|
||||||
|
minetest.register_craftitem("mobs:lava_orb", {
|
||||||
|
description = "Lava orb",
|
||||||
|
inventory_image = "zmobs_lava_orb.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("zmobs:lava_orb", "mobs:lava_orb")
|
21
a merger/mobs-MFF/license.txt
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
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.
|
102
a merger/mobs-MFF/mese_monster.lua
Executable file
@ -0,0 +1,102 @@
|
|||||||
|
|
||||||
|
-- Mese Monster by Zeg9
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:mese_monster", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- agressive, deals 9 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 9,
|
||||||
|
attack_type = "shoot",
|
||||||
|
shoot_interval = .5,
|
||||||
|
arrow = "mobs:mese_arrow",
|
||||||
|
shoot_offset = 2,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 30,
|
||||||
|
hp_max = 40,
|
||||||
|
armor = 80,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.5, -1.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "zmobs_mese_monster.x",
|
||||||
|
textures = {
|
||||||
|
{"zmobs_mese_monster.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
blood_texture = "default_mese_crystal_fragment.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_mesemonster",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
view_range = 16,
|
||||||
|
walk_velocity = 0.5,
|
||||||
|
run_velocity = 2,
|
||||||
|
jump = true,
|
||||||
|
jump_height = 8,
|
||||||
|
fall_damage = 0,
|
||||||
|
fall_speed = -6,
|
||||||
|
-- drops mese when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:mese_crystal",
|
||||||
|
chance = 9, min = 1, max = 3,},
|
||||||
|
{name = "default:mese_crystal_fragment",
|
||||||
|
chance = 1, min = 1, max = 9,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 2, min = 2, max = 5,},
|
||||||
|
{name = "returnmirror:mirror_inactive",
|
||||||
|
chance = 50, min = 1, max = 1,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 14,
|
||||||
|
walk_start = 15, walk_end = 38,
|
||||||
|
run_start = 40, run_end = 63,
|
||||||
|
punch_start = 15, punch_end = 38, -- was 40 & 63
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawn on stone between 20 and -1 light, 1 in 7000 chance, 1 in area below -25
|
||||||
|
mobs:register_spawn("mobs:mese_monster", {"default:stone", }, 20, -1, 7000, 1, -25)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:mese_monster", "Mese Monster", "default_mese_block.png", 1)
|
||||||
|
|
||||||
|
-- mese arrow (weapon)
|
||||||
|
mobs:register_arrow("mobs:mese_arrow", {
|
||||||
|
visual = "sprite",
|
||||||
|
visual_size = {x=.5, y=.5},
|
||||||
|
textures = {"default_mese_crystal_fragment.png"},
|
||||||
|
velocity = 6,
|
||||||
|
|
||||||
|
hit_player = function(self, player)
|
||||||
|
player:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval=1.0,
|
||||||
|
damage_groups = {fleshy=1},
|
||||||
|
}, 0)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hit_mob = function(self, player)
|
||||||
|
player:punch(self.object, 1.0, {
|
||||||
|
full_punch_interval=1.0,
|
||||||
|
damage_groups = {fleshy=9},
|
||||||
|
}, 0)
|
||||||
|
end,
|
||||||
|
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
-- 9x mese crystal fragments = 1x mese crystal
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:mese_crystal",
|
||||||
|
recipe = {
|
||||||
|
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
|
||||||
|
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
|
||||||
|
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
|
||||||
|
}
|
||||||
|
})
|
BIN
a merger/mobs-MFF/models/character.b3d
Executable file
7645
a merger/mobs-MFF/models/mobs_bee.x
Executable file
BIN
a merger/mobs-MFF/models/mobs_bunny.b3d
Executable file
3080
a merger/mobs-MFF/models/mobs_chicken.x
Executable file
7420
a merger/mobs-MFF/models/mobs_cow.x
Executable file
2830
a merger/mobs-MFF/models/mobs_dungeon_master.x
Executable file
BIN
a merger/mobs-MFF/models/mobs_kitten.b3d
Executable file
3858
a merger/mobs-MFF/models/mobs_oerkki.x
Executable file
5316
a merger/mobs-MFF/models/mobs_pumba.x
Executable file
699
a merger/mobs-MFF/models/mobs_rat.x
Executable file
@ -0,0 +1,699 @@
|
|||||||
|
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
|
8573
a merger/mobs-MFF/models/mobs_sand_monster.x
Executable file
7169
a merger/mobs-MFF/models/mobs_sheep.x
Executable file
4592
a merger/mobs-MFF/models/mobs_sheep_shaved.x
Executable file
6110
a merger/mobs-MFF/models/mobs_spider.x
Executable file
2753
a merger/mobs-MFF/models/mobs_stone_monster.x
Executable file
4009
a merger/mobs-MFF/models/mobs_tree_monster.x
Executable file
7420
a merger/mobs-MFF/models/mobs_wolf.x
Executable file
3506
a merger/mobs-MFF/models/zmobs_lava_flan.x
Executable file
2999
a merger/mobs-MFF/models/zmobs_mese_monster.x
Executable file
113
a merger/mobs-MFF/npc.lua
Executable file
@ -0,0 +1,113 @@
|
|||||||
|
|
||||||
|
-- Npc by TenPlus1
|
||||||
|
|
||||||
|
mobs.npc_drops = { "farming:meat", "farming:donut", "farming:bread", "default:apple", "default:sapling", "default:junglesapling",
|
||||||
|
"shields:shield_enhanced_wood", "3d_armor:chestplate_cactus", "3d_armor:boots_bronze",
|
||||||
|
"default:sword_steel", "default:sword_gold", "default:pick_steel", "default:shovel_steel",
|
||||||
|
"default:bronze_ingot", "bucket:bucket_water" }
|
||||||
|
|
||||||
|
mobs.npc_max_hp = 20
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:npc", {
|
||||||
|
-- animal, monster, npc
|
||||||
|
type = "npc",
|
||||||
|
-- aggressive, deals 6 damage to player/monster when hit
|
||||||
|
passive = false,
|
||||||
|
damage = 6,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
attacks_monsters = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 20,
|
||||||
|
hp_max = 20,
|
||||||
|
armor = 100,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "character.b3d",
|
||||||
|
textures = {
|
||||||
|
{"mobs_npc.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=1, y=1},
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 3,
|
||||||
|
jump = true,
|
||||||
|
-- drops wood and chance of apples when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:wood",
|
||||||
|
chance = 1, min = 1, max = 3},
|
||||||
|
{name = "default:apple",
|
||||||
|
chance = 2, min = 1, max = 2},
|
||||||
|
{name = "default:axe_stone",
|
||||||
|
chance = 3, min = 1, max = 1},
|
||||||
|
{name = "maptools:copper_coin",
|
||||||
|
chance = 2, min = 2, max = 4,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 2,
|
||||||
|
light_damage = 0,
|
||||||
|
-- follow diamond
|
||||||
|
follow = "default:diamond",
|
||||||
|
view_range = 16,
|
||||||
|
-- set owner and order
|
||||||
|
owner = "",
|
||||||
|
order = "follow",
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 30, speed_run = 30,
|
||||||
|
stand_start = 0, stand_end = 79,
|
||||||
|
walk_start = 168, walk_end = 187,
|
||||||
|
run_start = 168, run_end = 187,
|
||||||
|
punch_start = 200, punch_end = 219,
|
||||||
|
},
|
||||||
|
-- right clicking with "cooked meat" or "bread" will give npc more health
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
local item = clicker:get_wielded_item()
|
||||||
|
if item:get_name() == "mobs:meat"
|
||||||
|
or item:get_name() == "farming:bread" then
|
||||||
|
local hp = self.object:get_hp()
|
||||||
|
if hp + 4 > self.hp_max then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
self.object:set_hp(hp + 4)
|
||||||
|
-- right clicking with gold lump drops random item from mobs.npc_drops
|
||||||
|
elseif item:get_name() == "default:gold_lump" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
local pos = self.object:getpos()
|
||||||
|
pos.y = pos.y + 0.5
|
||||||
|
minetest.add_item(pos, {name = mobs.npc_drops[math.random(1,#mobs.npc_drops)]})
|
||||||
|
elseif item:get_name() == "default:diamond" then
|
||||||
|
self.diamond_count = (self.diamond_count or 0) + 1
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
if self.diamond_count < 4 then return end
|
||||||
|
|
||||||
|
if self.owner == "" then
|
||||||
|
self.owner = clicker:get_player_name()
|
||||||
|
else
|
||||||
|
if self.order == "follow" then
|
||||||
|
self.order = "stand"
|
||||||
|
else
|
||||||
|
self.order = "follow"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawning enable for now
|
||||||
|
mobs:register_spawn("mobs:npc", {"default:dirt_with_grass"}, 20, -1, 20000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:npc", "Npc", "default_brick.png", 1)
|
64
a merger/mobs-MFF/oerkki.lua
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
|
||||||
|
-- Oerkki by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:oerkki", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 7 damage when player hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 7,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 40,
|
||||||
|
hp_max = 50,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_oerkki.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_oerkki.png"},
|
||||||
|
{"mobs_oerkki2.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=5, y=5},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_oerkki",
|
||||||
|
attack = "mobs_oerkki_attack",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 2,
|
||||||
|
run_velocity = 4,
|
||||||
|
view_range = 16,
|
||||||
|
jump = true,
|
||||||
|
-- chance of dropping obsidian and coins
|
||||||
|
drops = {
|
||||||
|
{name = "default:obsidian",
|
||||||
|
chance = 3, min = 1, max = 2,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 2, min = 2, max = 3,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 2,
|
||||||
|
lava_damage = 2,
|
||||||
|
light_damage = 1,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
stand_start = 0, stand_end = 23,
|
||||||
|
walk_start = 24, walk_end = 36,
|
||||||
|
run_start = 37, run_end = 49,
|
||||||
|
punch_start = 37, punch_end = 49,
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
},
|
||||||
|
-- replace torch with air (remove)
|
||||||
|
replace_rate = 50,
|
||||||
|
replace_what = {"default:torch"},
|
||||||
|
replace_with = "air",
|
||||||
|
replace_offset = -1,
|
||||||
|
})
|
||||||
|
-- spawns on stone between 5 and -1 light, 1 in 7000 chance, 1 in area starting at -10 and below
|
||||||
|
mobs:register_spawn("mobs:oerkki", {"default:stone"}, 5, -1, 7000, 1, -10)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:oerkki", "Oerkki", "default_obsidian.png", 1)
|
64
a merger/mobs-MFF/rat.lua
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
|
||||||
|
-- Rat by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:rat", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "animal",
|
||||||
|
-- not aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 1,
|
||||||
|
hp_max = 4,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_rat.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_rat.png"},
|
||||||
|
{"mobs_rat_brown.png"},
|
||||||
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_rat",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
-- no drops
|
||||||
|
drops = {},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 4,
|
||||||
|
light_damage = 0,
|
||||||
|
-- right click to pick up rat
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
if clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:rat") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:rat")
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawn on stone between 1 and 20 light, 1 in 7000 chance, 1 per area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:rat", {"default:stone"}, 20, 0, 10000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:rat", "Rat", "mobs_rat_inventory.png", 0)
|
||||||
|
|
||||||
|
-- cooked rat, yummy!
|
||||||
|
minetest.register_craftitem("mobs:rat_cooked", {
|
||||||
|
description = "Cooked Rat",
|
||||||
|
inventory_image = "mobs_cooked_rat.png",
|
||||||
|
on_use = minetest.item_eat(3),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mobs:rat_cooked",
|
||||||
|
recipe = "mobs:rat",
|
||||||
|
cooktime = 5,
|
||||||
|
})
|
58
a merger/mobs-MFF/sandmonster.lua
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
|
||||||
|
-- Sand Monster by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:sand_monster", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 5 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 5,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 15,
|
||||||
|
hp_max = 20,
|
||||||
|
armor = 90,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_sand_monster.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_sand_monster.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=8,y=8},
|
||||||
|
blood_texture = "default_sand.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_sandmonster",
|
||||||
|
},
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 3,
|
||||||
|
run_velocity = 5,
|
||||||
|
view_range = 16,
|
||||||
|
jump = true,
|
||||||
|
floats = 0,
|
||||||
|
-- drops desert sand when dead
|
||||||
|
drops = {
|
||||||
|
{name = "default:desert_sand",
|
||||||
|
chance = 1, min = 3, max = 5,},
|
||||||
|
{name = "maptools:copper_coin",
|
||||||
|
chance = 2, min = 2, max = 4,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 3,
|
||||||
|
lava_damage = 4,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 39,
|
||||||
|
walk_start = 41, walk_end = 72,
|
||||||
|
run_start = 74, run_end = 105,
|
||||||
|
punch_start = 74, punch_end = 105,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawns on desert sand between -1 and 20 light, 1 in 7500 chance, 1 sand monster in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:sand_monster", {"default:desert_sand", "default:sand"}, 20, -1, 8000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:sand_monster", "Sand Monster", "default_desert_sand.png", 1)
|
144
a merger/mobs-MFF/sheep.lua
Executable file
@ -0,0 +1,144 @@
|
|||||||
|
|
||||||
|
-- Sheep by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:sheep", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "animal",
|
||||||
|
-- not aggressive
|
||||||
|
passive = true,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 10,
|
||||||
|
hp_max = 15,
|
||||||
|
armor = 200,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_sheep.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_sheep.png"},
|
||||||
|
},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
visual_size = {x=1,y=1},
|
||||||
|
-- specific texture and mesh for gotten
|
||||||
|
gotten_texture = {"mobs_sheep_shaved.png"},
|
||||||
|
gotten_mesh = "mobs_sheep_shaved.x",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_sheep",
|
||||||
|
},
|
||||||
|
-- speed and jump
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
-- drops raw meat when dead
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:meat_raw",
|
||||||
|
chance = 1, min = 2, max = 3},
|
||||||
|
{name = "wool:white",
|
||||||
|
chance = 1, min = 1, max = 1},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 80,
|
||||||
|
walk_start = 81, walk_end = 100,
|
||||||
|
},
|
||||||
|
-- follows wheat
|
||||||
|
follow = "farming:wheat",
|
||||||
|
view_range = 8,
|
||||||
|
-- replace grass/wheat with air (eat)
|
||||||
|
replace_rate = 50,
|
||||||
|
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
|
||||||
|
replace_with = "air",
|
||||||
|
-- right click sheep to shear sheep and get wood, feed 8 wheat for wool to grow back
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
local item = clicker:get_wielded_item()
|
||||||
|
if item:get_name() == "farming:wheat" then
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
item:take_item()
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
if self.child == true then
|
||||||
|
self.hornytimer = self.hornytimer + 10
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.food = (self.food or 0) + 1
|
||||||
|
if self.food >= 8 then
|
||||||
|
self.food = 0
|
||||||
|
if self.hornytimer == 0 then
|
||||||
|
self.horny = true
|
||||||
|
end
|
||||||
|
self.gotten = false -- can be shaved again
|
||||||
|
self.tamed = true
|
||||||
|
self.object:set_properties({
|
||||||
|
textures = {"mobs_sheep.png"},
|
||||||
|
mesh = "mobs_sheep.x",
|
||||||
|
})
|
||||||
|
minetest.sound_play("mobs_sheep", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})
|
||||||
|
end
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if item:get_name() == "mobs:shears"
|
||||||
|
and self.gotten == false
|
||||||
|
and self.child == false then
|
||||||
|
self.gotten = true -- shaved
|
||||||
|
if minetest.registered_items["wool:white"] then
|
||||||
|
local pos = self.object:getpos()
|
||||||
|
pos.y = pos.y + 0.5
|
||||||
|
local obj = minetest.add_item(pos, ItemStack("wool:white "..math.random(2,3)))
|
||||||
|
if obj then
|
||||||
|
obj:setvelocity({x=math.random(-1,1), y=5, z=math.random(-1,1)})
|
||||||
|
end
|
||||||
|
item:add_wear(650) -- 100 uses
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
self.object:set_properties({
|
||||||
|
textures = {"mobs_sheep_shaved.png"},
|
||||||
|
mesh = "mobs_sheep_shaved.x",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
if item:get_name() == "mobs:magic_lasso"
|
||||||
|
and clicker:is_player()
|
||||||
|
and clicker:get_inventory()
|
||||||
|
and self.child == false
|
||||||
|
and clicker:get_inventory():room_for_item("main", "mobs:sheep") then
|
||||||
|
clicker:get_inventory():add_item("main", "mobs:sheep")
|
||||||
|
self.object:remove()
|
||||||
|
item:add_wear(3000) -- 22 uses
|
||||||
|
print ("wear", item:get_wear())
|
||||||
|
clicker:set_wielded_item(item)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
-- spawn on default;green grass between 20 and 8 light, 1 in 9000 chance, 1 sheep in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:sheep", {"default:dirt_with_grass"}, 20, 8, 10000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:sheep", "Sheep", "wool_white.png", 1)
|
||||||
|
|
||||||
|
-- shears (right click sheep to shear wool)
|
||||||
|
minetest.register_tool("mobs:shears", {
|
||||||
|
description = "Steel Shears (right-click sheep to shear)",
|
||||||
|
inventory_image = "mobs_shears.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 1,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=0},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'mobs:shears',
|
||||||
|
recipe = {
|
||||||
|
{'', 'default:steel_ingot', ''},
|
||||||
|
{'', 'group:stick', 'default:steel_ingot'},
|
||||||
|
}
|
||||||
|
})
|
BIN
a merger/mobs-MFF/sounds/mobs_bee.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_chicken.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_cow.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_dirtmonster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_dirtmonster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_dungeonmaster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_dungeonmaster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_dungeonmaster.3.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_eerie.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_fireball.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_howl.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.3.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.4.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.5.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_kitten.6.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_lavaflan.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_lavaflan.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_mesemonster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_mesemonster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_oerkki.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_oerkki.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_oerkki_attack.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_pig.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_pig_angry.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_rat.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_rat.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_sandmonster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_sandmonster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_sheep.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_slimes_attack.ogg
Normal file
BIN
a merger/mobs-MFF/sounds/mobs_slimes_damage.ogg
Normal file
BIN
a merger/mobs-MFF/sounds/mobs_slimes_death.ogg
Normal file
BIN
a merger/mobs-MFF/sounds/mobs_slimes_jump.ogg
Normal file
BIN
a merger/mobs-MFF/sounds/mobs_spider.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_spider_attack.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_stonemonster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_stonemonster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_stonemonster_attack.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_treemonster.1.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_treemonster.2.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/mobs_wolf.ogg
Executable file
BIN
a merger/mobs-MFF/sounds/tnt_explode.ogg
Executable file
99
a merger/mobs-MFF/spider.lua
Executable file
@ -0,0 +1,99 @@
|
|||||||
|
|
||||||
|
-- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture)
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:spider", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- agressive, does 6 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 6,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 30,
|
||||||
|
hp_max = 40,
|
||||||
|
armor = 100,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_spider.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_spider.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=7,y=7},
|
||||||
|
blood_texture = "mobs_blood.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_spider",
|
||||||
|
war_cry = "mobs_eerie",
|
||||||
|
death = "mobs_howl",
|
||||||
|
attack = "mobs_spider_attack",
|
||||||
|
},
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 1,
|
||||||
|
run_velocity = 3,
|
||||||
|
jump = true,
|
||||||
|
view_range = 16,
|
||||||
|
floats = 0,
|
||||||
|
-- drops string with a chance of sandstone or crystal spike if Ethereal installed
|
||||||
|
drops = {
|
||||||
|
{name = "farming:string",
|
||||||
|
chance = 2, min = 1, max = 3,},
|
||||||
|
{name = "mobs:meat_raw",
|
||||||
|
chance = 4, min = 1, max = 2,},
|
||||||
|
{name = "maptools:copper_coin",
|
||||||
|
chance = 2, min = 2, max = 6,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 5,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 1, stand_end = 1,
|
||||||
|
walk_start = 20, walk_end = 40,
|
||||||
|
run_start = 20, run_end = 40,
|
||||||
|
punch_start = 50, punch_end = 90,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawn on desert stone/crystal dirt, between 0 and 5 light, 1 in 9000 chance, 1 in area up to 31000 in height
|
||||||
|
mobs:register_spawn("mobs:spider", {"default:jungleleaves", "default:jungletree"}, 20, -1, 9000, 1, 31000)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:spider", "Spider", "mobs_cobweb.png", 1)
|
||||||
|
|
||||||
|
-- ethereal crystal spike compatibility
|
||||||
|
if not minetest.get_modpath("ethereal") then
|
||||||
|
minetest.register_alias("ethereal:crystal_spike", "default:sandstone")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- spider cobweb
|
||||||
|
minetest.register_node("mobs:spider_cobweb", {
|
||||||
|
description = "Spider Cobweb", --Description changé pour éviter conflit avec homedecor_modpack
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 1.1,
|
||||||
|
tiles = {"mobs_cobweb.png"},
|
||||||
|
inventory_image = "mobs_cobweb.png",
|
||||||
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
liquid_viscosity = 11,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "mobs:spider_cobweb", --Modif MFF
|
||||||
|
liquid_alternative_source = "mobs:spider_cobweb", --Modif MFF
|
||||||
|
liquid_renewable = false,
|
||||||
|
liquid_range = 0,
|
||||||
|
walkable = false,
|
||||||
|
groups = {snappy=1,liquid=3},
|
||||||
|
drop = "farming:cotton",
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- spider cobweb craft (MFF : indentation modifié)
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "mobs:spider_cobweb",
|
||||||
|
recipe = {
|
||||||
|
{ "farming:string", "", "farming:string" },
|
||||||
|
{ "", "farming:string", "" },
|
||||||
|
{ "farming:string", "", "farming:string" }
|
||||||
|
},
|
||||||
|
})
|
63
a merger/mobs-MFF/stonemonster.lua
Executable file
@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
-- Stone Monster by PilzAdam
|
||||||
|
|
||||||
|
mobs:register_mob("mobs:stone_monster", {
|
||||||
|
-- animal, monster, npc, barbarian
|
||||||
|
type = "monster",
|
||||||
|
-- aggressive, deals 8 damage to player when hit
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 8,
|
||||||
|
-- health & armor
|
||||||
|
hp_min = 30,
|
||||||
|
hp_max = 35,
|
||||||
|
armor = 60,
|
||||||
|
-- textures and model
|
||||||
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_stone_monster.x",
|
||||||
|
textures = {
|
||||||
|
{"mobs_stone_monster.png"},
|
||||||
|
},
|
||||||
|
visual_size = {x=3, y=2.6},
|
||||||
|
blood_texture = "default_stone.png",
|
||||||
|
-- sounds
|
||||||
|
makes_footstep_sound = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_stonemonster",
|
||||||
|
attack = "mobs_stonemonster_attack",
|
||||||
|
},
|
||||||
|
-- speed and jump, sinks in water
|
||||||
|
walk_velocity = 2,
|
||||||
|
run_velocity = 4,
|
||||||
|
jump = true,
|
||||||
|
floats = 0,
|
||||||
|
view_range = 16,
|
||||||
|
-- chance of dropping torch, iron lump, coal lump and/or silver coins
|
||||||
|
drops = {
|
||||||
|
{name = "default:torch",
|
||||||
|
chance = 10, min = 3, max = 5,},
|
||||||
|
{name = "default:iron_lump",
|
||||||
|
chance = 5, min = 1, max = 2,},
|
||||||
|
{name = "default:coal_lump",
|
||||||
|
chance = 3, min = 1, max = 3,},
|
||||||
|
{name = "maptools:silver_coin",
|
||||||
|
chance = 2, min = 2, max = 3,},
|
||||||
|
},
|
||||||
|
-- damaged by
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 0,
|
||||||
|
light_damage = 0,
|
||||||
|
-- model animation
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15, speed_run = 15,
|
||||||
|
stand_start = 0, stand_end = 14,
|
||||||
|
walk_start = 15, walk_end = 38,
|
||||||
|
run_start = 40, run_end = 63,
|
||||||
|
punch_start = 40, punch_end = 63,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- spawns on stone between -1 and 5 light, 1 in 7000 chance, 1 in area below -5
|
||||||
|
mobs:register_spawn("mobs:stone_monster", {"default:stone", "nether:dirt_top"}, 5, -1, 7000, 1, -5)
|
||||||
|
-- register spawn egg
|
||||||
|
mobs:register_egg("mobs:stone_monster", "Stone Monster", "default_stone.png", 1)
|
BIN
a merger/mobs-MFF/textures/jeija_glue.png
Normal file
After Width: | Height: | Size: 487 B |
BIN
a merger/mobs-MFF/textures/mobs_bee.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
a merger/mobs-MFF/textures/mobs_bee_inv.png
Executable file
After Width: | Height: | Size: 934 B |
BIN
a merger/mobs-MFF/textures/mobs_beehive.png
Executable file
After Width: | Height: | Size: 513 B |
BIN
a merger/mobs-MFF/textures/mobs_blood.png
Executable file
After Width: | Height: | Size: 267 B |
BIN
a merger/mobs-MFF/textures/mobs_bucket_milk.png
Executable file
After Width: | Height: | Size: 241 B |
BIN
a merger/mobs-MFF/textures/mobs_bunny_brown.png
Executable file
After Width: | Height: | Size: 999 B |
BIN
a merger/mobs-MFF/textures/mobs_bunny_grey.png
Executable file
After Width: | Height: | Size: 771 B |
BIN
a merger/mobs-MFF/textures/mobs_bunny_inv.png
Executable file
After Width: | Height: | Size: 466 B |
BIN
a merger/mobs-MFF/textures/mobs_bunny_white.png
Executable file
After Width: | Height: | Size: 809 B |
BIN
a merger/mobs-MFF/textures/mobs_cheese.png
Executable file
After Width: | Height: | Size: 247 B |
BIN
a merger/mobs-MFF/textures/mobs_cheeseblock.png
Executable file
After Width: | Height: | Size: 609 B |
BIN
a merger/mobs-MFF/textures/mobs_chick.png
Executable file
After Width: | Height: | Size: 1.0 KiB |