fixed errors introduced in last push.
parent
c8612c7390
commit
657ba694ae
|
@ -9,3 +9,5 @@ dofile(minetest.get_modpath('food')..'/recipes.lua') --Multi ingredient foods.
|
|||
--dofile(minetest.get_modpath('food')..'/spoils.lua') --Mechanics for food to spoil
|
||||
dofile(minetest.get_modpath('food')..'/traps.lua') --capture and eat yummy animals.
|
||||
|
||||
|
||||
food = {}
|
||||
|
|
|
@ -24,7 +24,9 @@ mobs:register_mob("mobs:bunny", {
|
|||
runaway = true,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
{name = "food:steak_raw",
|
||||
chance = 1, min = 1, max = 1},
|
||||
{name = "mobs:fur",
|
||||
chance = 1, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 1,
|
||||
|
|
|
@ -24,10 +24,10 @@ mobs:register_mob("mobs:cow", {
|
|||
run_velocity = 2,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1, min = 1, max = 3},
|
||||
{name = "mobs:steak_raw",
|
||||
chance = 1, min = 3, max = 6},
|
||||
{name = "mobs:leather",
|
||||
chance = 1, min = 1, max = 2},
|
||||
chance = 1, min = 2, max = 5},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
|
@ -144,4 +144,4 @@ minetest.register_craft({
|
|||
recipe = {
|
||||
{'mobs:cheeseblock'},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
@ -16,6 +16,11 @@ minetest.register_craftitem("mobs:leather", {
|
|||
inventory_image = "mobs_leather.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mobs:fur", {
|
||||
description = "Fur",
|
||||
inventory_image = "mobs_fur.png",
|
||||
})
|
||||
|
||||
-- raw meat
|
||||
minetest.register_craftitem("mobs:meat_raw", {
|
||||
description = "Raw Meat",
|
||||
|
@ -79,4 +84,4 @@ minetest.register_craft({
|
|||
{'', 'default:steel_ingot', ''},
|
||||
{'', 'group:stick', 'default:steel_ingot'},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
|
||||
-- Goat by DonBatman/Nathan.S
|
||||
|
||||
mobs:register_mob("mobs:goat", {
|
||||
-- animal, monster, npc, barbarian
|
||||
type = "animal",
|
||||
-- aggressive, does 4 damage to player when threatened
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
damage = 2,
|
||||
-- health & armor
|
||||
hp_min = 5, hp_max = 15, armor = 200,
|
||||
-- textures and model
|
||||
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.75, 0.3},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_goat.b3d",
|
||||
drawtype = "front",
|
||||
textures = {
|
||||
{"mobs_goat_white.png"},
|
||||
{"mobs_goat_brown.png"},
|
||||
{"mobs_goat_grey.png"},
|
||||
},
|
||||
blood_texture = "mobs_blood.png",
|
||||
visual_size = {x=2,y=2},
|
||||
-- sounds
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_sheep",
|
||||
},
|
||||
-- speed and jump
|
||||
walk_velocity = 1,
|
||||
run_velocity = 2,
|
||||
jump = true,
|
||||
stepheight = 1.1,
|
||||
-- drops raw meat when dead
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1, min = 2, max = 4},
|
||||
{name = "mobs:leather",
|
||||
chance =1, min = 1, max = 3},
|
||||
},
|
||||
-- damaged by
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
-- model animation
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 15,
|
||||
stand_start = 1, stand_end = 60, -- head down/up
|
||||
walk_start = 122, walk_end = 182, -- walk
|
||||
run_start = 122, run_end = 182, -- walk
|
||||
punch_start = 246, punch_end = 330, -- attack
|
||||
-- 1-30 head down, 31-60 head up, 61-121 tail wiggle, 185-215 lay down, 216-245 getting up, 331-390 chewing, 391-511 look around
|
||||
},
|
||||
-- follows wheat
|
||||
follow = "farming:wheat", view_range = 7,
|
||||
-- replace grass/wheat with air (eat)
|
||||
replace_rate = 50,
|
||||
replace_what = {"group:flora"},
|
||||
replace_with = "air",
|
||||
})
|
||||
-- spawn on default;green;prairie grass between 0 and 20 light, 1 in 20000 chance, 1 goat in area up to 31000 in height
|
||||
mobs:register_spawn("mobs:goat", {"default:dirt_with_grass", "ethereal:green_dirt_top"}, 20, 0, 20000, 1, 31000)
|
||||
-- register spawn egg
|
||||
mobs:register_egg("mobs:goat", "Goat", "default_grass.png", 1)
|
|
@ -14,21 +14,22 @@ dofile(path.."/warthog.lua") -- KrupnoPavel
|
|||
dofile(path.."/bee.lua") -- KrupnoPavel
|
||||
dofile(path.."/bunny.lua") -- ExeterDad
|
||||
dofile(path.."/kitten.lua") -- Jordach/BFD
|
||||
dofile(path.."/goat.lua") -- DonBatman/Nathan.S
|
||||
|
||||
-- Monsters
|
||||
|
||||
dofile(path.."/dirtmonster.lua") -- PilzAdam
|
||||
dofile(path.."/dungeonmaster.lua")
|
||||
dofile(path.."/oerkki.lua")
|
||||
dofile(path.."/sandmonster.lua")
|
||||
dofile(path.."/stonemonster.lua")
|
||||
dofile(path.."/treemonster.lua")
|
||||
dofile(path.."/lava_flan.lua") -- Zeg9
|
||||
dofile(path.."/mese_monster.lua")
|
||||
--dofile(path.."/dirtmonster.lua") -- PilzAdam
|
||||
--dofile(path.."/dungeonmaster.lua")
|
||||
--dofile(path.."/oerkki.lua")
|
||||
--dofile(path.."/sandmonster.lua")
|
||||
--dofile(path.."/stonemonster.lua")
|
||||
--dofile(path.."/treemonster.lua")
|
||||
--dofile(path.."/lava_flan.lua") -- Zeg9
|
||||
--dofile(path.."/mese_monster.lua")
|
||||
dofile(path.."/spider.lua") -- AspireMint
|
||||
|
||||
-- NPC
|
||||
dofile(path.."/npc.lua") -- TenPlus1
|
||||
--dofile(path.."/npc.lua") -- TenPlus1
|
||||
|
||||
-- Mob Items
|
||||
dofile(path.."/crafts.lua")
|
||||
|
@ -36,4 +37,4 @@ dofile(path.."/crafts.lua")
|
|||
-- Spawner
|
||||
dofile(path.."/spawner.lua")
|
||||
|
||||
print ("[MOD] Mobs Redo loaded")
|
||||
print ("[MOD] Mobs Redo loaded")
|
||||
|
|
|
@ -2,14 +2,17 @@
|
|||
-- Kitten by Jordach / BFD
|
||||
|
||||
mobs:register_mob("mobs:kitten", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 2,
|
||||
hp_min = 5,
|
||||
hp_max = 10,
|
||||
armor = 200,
|
||||
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
|
||||
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.3, 0.5},
|
||||
visual = "mesh",
|
||||
visual_size = {x = 0.5, y = 0.5},
|
||||
visual_size = {x = 1, y = 1},
|
||||
mesh = "mobs_kitten.b3d",
|
||||
textures = {
|
||||
{"mobs_kitten_striped.png"},
|
||||
|
@ -26,8 +29,10 @@ mobs:register_mob("mobs:kitten", {
|
|||
runaway = true,
|
||||
jump = false,
|
||||
drops = {
|
||||
{name = "farming:string",
|
||||
chance = 1, min = 1, max = 1},
|
||||
{name = "mobs:fur",
|
||||
chance = 1, min = 2, max = 4},
|
||||
{name = "food:steak_raw",
|
||||
chance = 1, min = 2, max = 4},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
|
@ -51,4 +56,4 @@ mobs:register_mob("mobs:kitten", {
|
|||
|
||||
mobs:register_spawn("mobs:kitten", {"default:dirt_with_grass", "ethereal:grove_dirt"}, 20, 12, 22000, 2, 31000)
|
||||
|
||||
mobs:register_egg("mobs:kitten", "Kitten", "mobs_kitten_inv.png", 0)
|
||||
mobs:register_egg("mobs:kitten", "Kitten", "mobs_kitten_inv.png", 0)
|
||||
|
|
Binary file not shown.
|
@ -32,10 +32,10 @@ for _, col in pairs(all_colours) do
|
|||
runaway = true,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1, min = 1, max = 2},
|
||||
{name = "food:steak_raw",
|
||||
chance = 1, min = 1, max = 4},
|
||||
{name = "wool:"..col,
|
||||
chance = 1, min = 1, max = 1},
|
||||
chance = 1, min = 1, max = 3},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
|
@ -28,8 +28,10 @@ mobs:register_mob("mobs:pumba", {
|
|||
follow = {"default:apple", "farming:potato"},
|
||||
view_range = 10,
|
||||
drops = {
|
||||
{name = "mobs:pork_raw",
|
||||
{name = "food:pork_raw",
|
||||
chance = 1, min = 1, max = 3},
|
||||
{name = "mobs:leather",
|
||||
chance = 1, min = 1, max = 2},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
|
@ -52,7 +54,7 @@ mobs:register_mob("mobs:pumba", {
|
|||
end,
|
||||
})
|
||||
|
||||
mobs:register_spawn("mobs:pumba", {"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 2, 31000)
|
||||
mobs:register_spawn("mobs:pumba", {"ethereal:mushroom_dirt", "default:dirt_with_dry_grass", "valley_mapgen:silt"}, 20, 10, 15000, 2, 31000)
|
||||
|
||||
mobs:register_egg("mobs:pumba", "Warthog", "wool_pink.png", 1)
|
||||
|
||||
|
@ -75,4 +77,4 @@ minetest.register_craft({
|
|||
output = "mobs:pork_cooked",
|
||||
recipe = "mobs:pork_raw",
|
||||
cooktime = 5,
|
||||
})
|
||||
})
|
||||
|
|
|
@ -262,7 +262,7 @@ for _, tree in ipairs(vmg.treelist) do
|
|||
tiles = { "vmg_"..tree.leaf_tile..".png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy=3, leafdecay=7, flammable=2, leaves=1},
|
||||
groups = {snappy=3, leafdecay=7, flammable=2, leaves=1, flora=1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
|
|
Loading…
Reference in New Issue