Add files via upload
This commit is contained in:
parent
89177c49e7
commit
15632f3d63
13
biter.lua
13
biter.lua
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs:register_mob("livingcavesmobs:biter", {
|
||||
stepheight = 3,
|
||||
type = "monster",
|
||||
@ -38,6 +40,7 @@ stepheight = 3,
|
||||
lava_damage = 4,
|
||||
light_damage = 1,
|
||||
fear_height = 4,
|
||||
stay_near = {{"livingcaves:water_flowing", "livingcaves:water_source"}, 4},
|
||||
animation = {
|
||||
speed_normal = 75,
|
||||
stand_start = 0,
|
||||
@ -49,7 +52,11 @@ stepheight = 3,
|
||||
walk_end = 300,
|
||||
punch_start = 300,
|
||||
punch_end = 400,
|
||||
-- 50-70 is slide/water idle
|
||||
die_start = 300,
|
||||
die_end = 400,
|
||||
die_speed = 50,
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
follow = {
|
||||
"ethereal:fish_raw", "anjimalworld:rawfish", "mobs_fish:tropical",
|
||||
@ -62,7 +69,7 @@ stepheight = 3,
|
||||
-- feed or tame
|
||||
if mobs:feed_tame(self, clicker, 4, false, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 25, 0, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
@ -79,4 +86,4 @@ mobs:spawn({
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("livingcavesmobs:biter", ("Biter"), "abiter.png")
|
||||
mobs:register_egg("livingcavesmobs:biter", S("Biter"), "abiter.png")
|
||||
|
12
chubby.lua
12
chubby.lua
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs:register_mob("livingcavesmobs:chubby", {
|
||||
stepheight = 3,
|
||||
type = "animal",
|
||||
@ -27,6 +29,7 @@ mobs:register_mob("livingcavesmobs:chubby", {
|
||||
jump = true,
|
||||
jump_height = 4,
|
||||
pushable = true,
|
||||
stay_near = {"livingcaves:bacteriacave_poolstone", 4},
|
||||
follow = {"fishing:bait:worm", "ethereal:worm", "animalworld:ant", "animalworld:termite", "animalworld:cockroach"},
|
||||
view_range = 10,
|
||||
drops = {
|
||||
@ -47,10 +50,9 @@ mobs:register_mob("livingcavesmobs:chubby", {
|
||||
punch_speed = 70,
|
||||
punch_start = 300,
|
||||
punch_end = 400,
|
||||
|
||||
die_start = 1, -- we dont have a specific death animation so we will
|
||||
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
|
||||
die_speed = 1, -- have mob rotate when dying.
|
||||
die_start = 300,
|
||||
die_end = 400,
|
||||
die_speed = 50,
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
@ -63,7 +65,7 @@ mobs:register_mob("livingcavesmobs:chubby", {
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 15, 25, 0, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
local random = math.random
|
||||
|
||||
mobs:register_mob("livingcavesmobs:explodingbacteria", {
|
||||
stepheight = 0,
|
||||
type = "animal",
|
||||
@ -30,6 +33,7 @@ sounds = {
|
||||
runaway = false,
|
||||
jump = false,
|
||||
jump_height = 6,
|
||||
stay_near = {{"livingcaves:bacteriacave_nest"}, 5},
|
||||
sounds = {
|
||||
attack = "livingcavesmobs_explodingbacteria",
|
||||
random = "livingcavesmobs_explodingbacteria3",
|
||||
@ -59,13 +63,13 @@ sounds = {
|
||||
fly_in = {"air"},
|
||||
floats = 1,
|
||||
fly = true,
|
||||
follow = {"default:stone", "default:coal"},
|
||||
follow = {"default:stone", "default:coal", "livingcaves:hangingmoldend", "livingcaves:hangingmold"},
|
||||
view_range = 13,
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 25, 0, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
@ -81,11 +85,41 @@ mobs:spawn({
|
||||
active_object_count = 4,
|
||||
min_height = -400,
|
||||
max_height = -200,
|
||||
})
|
||||
|
||||
on_spawn = function(self, pos)
|
||||
|
||||
local nods = minetest.find_nodes_in_area_under_air(
|
||||
{x = pos.x - 4, y = pos.y - 3, z = pos.z - 4},
|
||||
{x = pos.x + 4, y = pos.y + 3, z = pos.z + 4},
|
||||
{"livingcaves:bacteriacave_nest"})
|
||||
|
||||
if nods and #nods > 0 then
|
||||
|
||||
-- min herd of 4
|
||||
local iter = math.min(#nods, 4)
|
||||
|
||||
-- print("--- explodingbacteria at", minetest.pos_to_string(pos), iter)
|
||||
|
||||
for n = 1, iter do
|
||||
|
||||
local pos2 = nods[random(#nods)]
|
||||
local kid = random(4) == 1 and true or nil
|
||||
|
||||
pos2.y = pos2.y + 2
|
||||
|
||||
if minetest.get_node(pos2).name == "air" then
|
||||
|
||||
mobs:add_mob(pos2, {
|
||||
name = "livingcavesmobs:explodingbacteria", child = kid})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mobs:register_egg("livingcavesmobs:explodingbacteria", ("Giant Bacteria"), "aexplodingbacteria.png", 0)
|
||||
mobs:register_egg("livingcavesmobs:explodingbacteria", S("Giant Bacteria"), "aexplodingbacteria.png", 0)
|
||||
|
||||
|
||||
mobs:alias_mob("livingcavesmobs:explodingbacteria", "livingcavesmobs:explodingbacteria") -- compatibility
|
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs:register_mob("livingcavesmobs:flesheatingbacteria", {
|
||||
stepheight = 0,
|
||||
type = "monster",
|
||||
@ -26,6 +28,7 @@ stepheight = 0,
|
||||
jump = fallse,
|
||||
jump_height = 0,
|
||||
stepheight = 0,
|
||||
stay_near = {"livingcaves:bacteriacave_trapstone", 3},
|
||||
drops = {
|
||||
},
|
||||
water_damage = 1,
|
||||
@ -49,7 +52,7 @@ stepheight = 0,
|
||||
-- feed or tame
|
||||
if mobs:feed_tame(self, clicker, 4, false, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 25, 0, 0, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
@ -67,4 +70,4 @@ mobs:spawn({
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("livingcavesmobs:flesheatingbacteria", ("Flesh Eating Bacteria"), "aflesheatingbacteria.png")
|
||||
mobs:register_egg("livingcavesmobs:flesheatingbacteria", S("Flesh Eating Bacteria"), "aflesheatingbacteria.png")
|
||||
|
26
grub.lua
26
grub.lua
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs.grub_drops = {
|
||||
"farming:string"
|
||||
}
|
||||
@ -29,7 +31,7 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
walk_velocity = 0.5,
|
||||
run_velocity = 0.7,
|
||||
runaway = true,
|
||||
|
||||
stay_near = {{"livingcaves:glowshroom_top", "default:bush_leaves", "default:blueberry_bush_leaves", "naturalbiomes:cowberrybush_leaves", "naturalbiomes:beach_bush_leaves", "naturalbiomes:outback_bush_leaves"}, 4},
|
||||
jump = false,
|
||||
jump_height = 3,
|
||||
pushable = true,
|
||||
@ -49,11 +51,9 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
stand_end = 200,
|
||||
walk_start = 200,
|
||||
walk_end = 300,
|
||||
|
||||
|
||||
die_start = 1, -- we dont have a specific death animation so we will
|
||||
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
|
||||
die_speed = 1, -- have mob rotate when dying.
|
||||
die_start = 200,
|
||||
die_end = 300,
|
||||
die_speed = 50,
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
@ -63,7 +63,7 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
|
||||
-- capture npc with net or lasso
|
||||
if mobs:capture_mob(self, clicker, nil, 5, 80, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 25, 0, 0, false, nil) then return end
|
||||
|
||||
-- protect npc with mobs:protector
|
||||
if mobs:protect(self, clicker) then return end
|
||||
@ -89,7 +89,7 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
name = drops[math.random(1, #drops)]
|
||||
})
|
||||
|
||||
minetest.chat_send_player(name, ("Moth dropped you a string for bush leaves!"))
|
||||
minetest.chat_send_player(name, S("Grub dropped you a string for bush leaves!"))
|
||||
|
||||
return
|
||||
end
|
||||
@ -105,11 +105,11 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
self:set_animation("stand")
|
||||
self:set_velocity(0)
|
||||
|
||||
minetest.chat_send_player(name, ("Grub stands still."))
|
||||
minetest.chat_send_player(name, S("Grub stands still."))
|
||||
else
|
||||
self.order = "follow"
|
||||
|
||||
minetest.chat_send_player(name, ("Grub will follow you."))
|
||||
minetest.chat_send_player(name, S("Grub will follow you."))
|
||||
end
|
||||
end
|
||||
end,
|
||||
@ -117,13 +117,13 @@ mobs:register_mob("livingcavesmobs:grub", {
|
||||
|
||||
|
||||
|
||||
mobs:register_egg("livingcavesmobs:grub", ("Grub"), "agrub.png")
|
||||
mobs:register_egg("livingcavesmobs:grub", S("Grub"), "agrub.png")
|
||||
|
||||
|
||||
mobs:alias_mob("livingcavesmobs:grub", "livingcavesmobs:grub") -- compatibility
|
||||
|
||||
minetest.register_craftitem(":livingcavesmobs:cocoon", {
|
||||
description = ("Moth Cocoon"),
|
||||
description = S("Moth Cocoon"),
|
||||
inventory_image = "livingcavesmobs_cocoon.png",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"livingcavesmobs_cocoon.png"},
|
||||
@ -148,7 +148,7 @@ minetest.register_craftitem(":livingcavesmobs:cocoon", {
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":livingcavesmobs:mothegg", {
|
||||
description = ("Moth Egg"),
|
||||
description = S("Moth Egg"),
|
||||
inventory_image = "livingcavesmobs_mothegg.png",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"livingcavesmobs_mothegg.png"},
|
||||
|
22
locale/livingcavesmobs.de.tr
Normal file
22
locale/livingcavesmobs.de.tr
Normal file
@ -0,0 +1,22 @@
|
||||
# textdomain: livingcavesmobs
|
||||
|
||||
### biter.lua ###
|
||||
Biter=Beißer
|
||||
|
||||
### explodingbacteria.lua ###
|
||||
Giant Bacteria=Riesenbakterie
|
||||
|
||||
### flesheatingbacteria.lua ###
|
||||
Flesh Eating Bacteria=Fleischfressende Bakterie
|
||||
|
||||
### grub.lua ###
|
||||
Grub dropped you a string for bush leaves!=Die Larve hat einen Faden für Buschblätter produziert!
|
||||
Grub stands still=Larve wartet
|
||||
Grub will follow you=Die Larve folgt dir
|
||||
Grub=Larve
|
||||
Moth Cocoon=Mottenkokon
|
||||
Moth Egg=Mottenei
|
||||
|
||||
### moth.lua ###
|
||||
Moth=Motte
|
||||
|
16
moth.lua
16
moth.lua
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs.moth_drops = {
|
||||
"livingcavesmobs:mothegg"
|
||||
}
|
||||
@ -40,15 +42,19 @@ stepheight = 3,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 0,
|
||||
stay_near = {{"livingcaves:glowshroom_top"}, 3},
|
||||
animation = {
|
||||
speed_normal = 200,
|
||||
stand_speed = 50,
|
||||
stand_start = 120,
|
||||
stand_end = 170,
|
||||
walk_start = 0,
|
||||
walk_end = 100,
|
||||
fly_start = 0, -- swim animation
|
||||
fly_start = 0,
|
||||
fly_end = 100,
|
||||
die_start = 0,
|
||||
die_end = 100,
|
||||
die_speed = 50,
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
|
||||
fly_in = {"air"},
|
||||
@ -61,7 +67,7 @@ view_range = 5,
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
|
||||
-- capture npc with net or lasso
|
||||
if mobs:capture_mob(self, clicker, nil, 5, 80, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 25, 0, false, nil) then return end
|
||||
|
||||
-- protect npc with mobs:protector
|
||||
if mobs:protect(self, clicker) then return end
|
||||
@ -127,4 +133,4 @@ mobs:spawn({
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("livingcavesmobs:moth", ("Moth"), "amoth.png")
|
||||
mobs:register_egg("livingcavesmobs:moth", S("Moth"), "amoth.png")
|
12
yeti.lua
12
yeti.lua
@ -1,3 +1,5 @@
|
||||
local S = minetest.get_translator("livingcavesmobs")
|
||||
|
||||
mobs:register_mob("livingcavesmobs:yeti", {
|
||||
stepheight = 3,
|
||||
type = "animal",
|
||||
@ -38,6 +40,7 @@ mobs:register_mob("livingcavesmobs:yeti", {
|
||||
},
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
knock_back = false,
|
||||
jump = true,
|
||||
jump_height = 2,
|
||||
pushable = true,
|
||||
@ -69,10 +72,9 @@ mobs:register_mob("livingcavesmobs:yeti", {
|
||||
punch_end = 500,
|
||||
shoot_start = 400,
|
||||
shoot_end = 500,
|
||||
|
||||
die_start = 1, -- we dont have a specific death animation so we will
|
||||
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
|
||||
die_speed = 1, -- have mob rotate when dying.
|
||||
die_start = 400,
|
||||
die_end = 500,
|
||||
die_speed = 50,
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
@ -80,7 +82,7 @@ mobs:register_mob("livingcavesmobs:yeti", {
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 25, 0, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user