remove old file/texture/sounds lava_flan, pumba
remove rat, add aliase rat-> chicken fix egg inventory texture add new texture treemonster
@ -2463,7 +2463,7 @@ function mobs:register_egg(mob, desc, background, addegg)
|
||||
local invimg = background
|
||||
|
||||
if addegg == 1 then
|
||||
invimg = invimg .. "^mobs_chicken_egg.png" -- MFF
|
||||
invimg = invimg .. "^mobs_egg_inv.png" -- MFF
|
||||
end
|
||||
|
||||
minetest.register_craftitem(mob, {
|
||||
|
@ -6,7 +6,6 @@ dofile(path.."/api.lua")
|
||||
-- Animals
|
||||
dofile(path.."/chicken.lua") -- JKmurray
|
||||
dofile(path.."/cow.lua") -- KrupnoPavel
|
||||
dofile(path.."/rat.lua") -- PilzAdam
|
||||
dofile(path.."/sheep.lua") -- PilzAdam
|
||||
dofile(path.."/pig.lua") -- farfadet46
|
||||
dofile(path.."/bee.lua") -- KrupnoPavel
|
||||
@ -24,7 +23,6 @@ dofile(path.."/stonemonster.lua") -- PilzAdam
|
||||
dofile(path.."/treemonster.lua") -- PilzAdam
|
||||
dofile(path.."/wolf.lua") -- PilzAdam
|
||||
dofile(path.."/dog.lua") -- CProgrammerRU
|
||||
--dofile(path.."/lava_flan.lua") -- Zeg9 --Remplaced by Lava Slimes
|
||||
dofile(path.."/mese_monster.lua") -- Zeg9
|
||||
dofile(path.."/spider.lua") -- AspireMint
|
||||
dofile(path.."/greenslimes.lua") -- davedevils/TomasJLuis/TenPlus1
|
||||
@ -65,4 +63,7 @@ dofile(path.."/spawner.lua")
|
||||
-- Mob menu spawner special MFF
|
||||
dofile(path.."/mff_menu.lua")
|
||||
|
||||
minetest.register_alias("mobs:rat","mobs:chicken") -- aliases removed rat
|
||||
minetest.register_alias("mobs:rat_cooked", "mobs:chicken_cooked")
|
||||
|
||||
minetest.log("action", "[MOD] Mobs Redo loaded")
|
||||
|
@ -49,7 +49,15 @@ mobs:register_mob("mobs:kitten", {
|
||||
walk_end = 96,
|
||||
},
|
||||
-- follows Rat and Raw Fish
|
||||
follow = {"mobs:rat", "ethereal:fish_raw"},
|
||||
follow = {
|
||||
"fishing:fish_raw",
|
||||
"fishing:clownfish_raw",
|
||||
"fishing:bluewhite_raw",
|
||||
"fishing:exoticfish_raw",
|
||||
"fishing:carp_raw",
|
||||
"fishing:perch_raw",
|
||||
"fishing:catfish_raw",
|
||||
},
|
||||
view_range = 10,
|
||||
-- feed with raw fish to tame or right click to pick up
|
||||
on_rightclick = function(self, clicker)
|
||||
|
@ -1,74 +0,0 @@
|
||||
|
||||
-- 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",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
-- health and armor
|
||||
hp_min = 20,
|
||||
hp_max = 25,
|
||||
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",
|
||||
-- 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 4000 chance, 3 in area below 31000 in height
|
||||
--mobs:spawn_specific("mobs:lava_flan", {"default:lava_source"}, {"air"}, -1, 20, 30, 4000, 3, -31000, 31000, false) --DISABLE SPAWN MFF !
|
||||
-- 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")
|
@ -1,69 +0,0 @@
|
||||
|
||||
-- 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 = 2,
|
||||
armor = 200,
|
||||
-- textures and model
|
||||
collisionbox = {-0.2, -1, -0.2, 0.2, -0.8, 0.2},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_rat.b3d",
|
||||
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,
|
||||
run_velocity = 2,
|
||||
runaway = true,
|
||||
jump = true,
|
||||
-- no drops
|
||||
drops = {},
|
||||
-- damaged by
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 2,
|
||||
-- right click to pick up rat
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 25, 80, 0, true, nil)
|
||||
end,
|
||||
--[[
|
||||
do_custom = function(self)
|
||||
local pos = self.object:getpos()
|
||||
print("rat pos", pos.x, pos.y, pos.z)
|
||||
end,
|
||||
--]]
|
||||
})
|
||||
|
||||
-- spawn on stone between 1 and 20 light, 1 in 20000 chance, 1 per area up to 31000 in height
|
||||
mobs:spawn_specific("mobs:rat", {"default:stone", "default:sandstone"}, {"air"}, 0, 20, 30, 20000, 1, -31000, 31000, true)
|
||||
|
||||
-- register spawn egg
|
||||
mobs:register_egg("mobs:rat", "Rat", "mobs_rat_inv.png", 1)
|
||||
|
||||
-- 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,
|
||||
})
|
Before Width: | Height: | Size: 142 B |
BIN
mods/mobs/textures/mobs_egg_inv.png
Normal file
After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 904 B |
Before Width: | Height: | Size: 809 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 396 B |
BIN
mods/mobs/textures/mobs_tree_monster2.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 1.5 KiB |
@ -20,6 +20,7 @@ mobs:register_mob("mobs:tree_monster", {
|
||||
mesh = "mobs_tree_monster.b3d",
|
||||
textures = {
|
||||
{"mobs_tree_monster.png"},
|
||||
{"mobs_tree_monster2.png"},
|
||||
},
|
||||
blood_texture = "default_wood.png",
|
||||
-- sounds
|
||||
|