1
0
Fork 0

rename namespace from animal to jam

main
mckaygerhard 2023-08-06 16:55:18 -04:00
parent ecc70c6fe2
commit ebacf944ff
26 changed files with 51 additions and 52 deletions

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Bee by KrupnoPavel (.b3d model by sirrobzeroone) -- Bee by KrupnoPavel (.b3d model by sirrobzeroone)
mobs:register_mob("mobs_animal:bee", { mobs:register_mob(":mobs_animal:bee", {
type = "animal", type = "animal",
passive = true, passive = true,
hp_min = 1, hp_min = 1,
@ -52,7 +52,7 @@ mobs:register_mob("mobs_animal:bee", {
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:bee", name = ":mobs_animal:bee",
nodes = {"group:flower"}, nodes = {"group:flower"},
min_light = 14, min_light = 14,
interval = 60, interval = 60,
@ -65,7 +65,7 @@ end
-- spawn egg -- spawn egg
mobs:register_egg("mobs_animal:bee", S("Bee"), "mobs_bee_inv.png") mobs:register_egg(":mobs_animal:bee", S("Bee"), "mobs_bee_inv.png")
-- compatibility (only required if moving from old mobs to mobs_redo) -- compatibility (only required if moving from old mobs to mobs_redo)

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Bunny by ExeterDad -- Bunny by ExeterDad
mobs:register_mob("mobs_animal:bunny", { mobs:register_mob(":mobs_animal:bunny", {
type = "animal", type = "animal",
passive = true, passive = true,
reach = 1, reach = 1,
@ -136,7 +136,7 @@ end
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:bunny", name = ":mobs_animal:bunny",
nodes = {spawn_on}, nodes = {spawn_on},
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,
@ -149,7 +149,7 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:bunny", S("Bunny"), "mobs_bunny_inv.png", 0) mobs:register_egg(":mobs_animal:bunny", S("Bunny"), "mobs_bunny_inv.png", 0)
mobs:alias_mob("mobs:bunny", "mobs_animal:bunny") -- compatibility mobs:alias_mob("mobs:bunny", "mobs_animal:bunny") -- compatibility

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Chicken by JK Murray and Sirrobzeroone -- Chicken by JK Murray and Sirrobzeroone
mobs:register_mob("mobs_animal:chicken", { mobs:register_mob(":mobs_animal:chicken", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
passive = true, passive = true,
@ -104,7 +104,7 @@ end
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:chicken", name = ":mobs_animal:chicken",
nodes = spawn_on, nodes = spawn_on,
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,
@ -117,7 +117,7 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:chicken", S("Chicken"), "mobs_chicken_inv.png", 0) mobs:register_egg(":mobs_animal:chicken", S("Chicken"), "mobs_chicken_inv.png", 0)
mobs:alias_mob("mobs:chicken", "mobs_animal:chicken") -- compatibility mobs:alias_mob("mobs:chicken", "mobs_animal:chicken") -- compatibility
@ -125,7 +125,7 @@ mobs:alias_mob("mobs:chicken", "mobs_animal:chicken") -- compatibility
-- egg entity -- egg entity
mobs:register_arrow("mobs_animal:egg_entity", { mobs:register_arrow(":mobs_animal:egg_entity", {
visual = "sprite", visual = "sprite",
visual_size = {x=.5, y=.5}, visual_size = {x=.5, y=.5},
textures = {"mobs_chicken_egg.png"}, textures = {"mobs_chicken_egg.png"},

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Cow by sirrobzeroone -- Cow by sirrobzeroone
mobs:register_mob("mobs_animal:cow", { mobs:register_mob(":mobs_animal:cow", {
type = "animal", type = "animal",
passive = false, passive = false,
attack_type = "dogfight", attack_type = "dogfight",
@ -153,7 +153,7 @@ mobs:register_mob("mobs_animal:cow", {
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:cow", name = ":mobs_animal:cow",
nodes = {"default:dirt_with_grass", "ethereal:green_dirt"}, nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,
@ -166,7 +166,7 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:cow", S("Cow"), "mobs_cow_inv.png") mobs:register_egg(":mobs_animal:cow", S("Cow"), "mobs_cow_inv.png")
mobs:alias_mob("mobs:cow", "mobs_animal:cow") -- compatibility mobs:alias_mob("mobs:cow", "mobs_animal:cow") -- compatibility

View File

@ -1 +1 @@
Adds farm animals. MOBS mod of animals, monters and extra, reduced version from tenplush1 and others mods

View File

@ -4,7 +4,7 @@ local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
local S local S
if minetest.get_translator ~= nil then if minetest.get_translator ~= nil then
S = minetest.get_translator("mobs_animal") -- 5.x translation function S = minetest.get_translator("mobs_jam") -- 5.x translation function
else else
if minetest.get_modpath("intllib") then if minetest.get_modpath("intllib") then
dofile(minetest.get_modpath("intllib").."/init.lua") dofile(minetest.get_modpath("intllib").."/init.lua")
@ -61,4 +61,4 @@ if minetest.get_modpath("lucky_block") then
end end
print ("[MOD] Mobs Redo Animals loaded") print ("[MOD] Mobs JAM (reduced animals mobs) loaded")

View File

@ -11,7 +11,7 @@ local kitten_types = {
-- Kitten by Jordach / BFD -- Kitten by Jordach / BFD
mobs:register_mob("mobs_animal:kitten", { mobs:register_mob(":mobs_animal:kitten", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
specific_attack = {"mobs_animal:rat"}, specific_attack = {"mobs_animal:rat"},
@ -143,7 +143,7 @@ end
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:kitten", name = ":mobs_animal:kitten",
nodes = {spawn_on}, nodes = {spawn_on},
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,
@ -156,7 +156,7 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0) mobs:register_egg(":mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0)
mobs:alias_mob("mobs:kitten", "mobs_animal:kitten") -- compatibility mobs:alias_mob("mobs:kitten", "mobs_animal:kitten") -- compatibility

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=@1 Schaf @1 Sheep=@1 Schaf
Bee=Biene Bee=Biene
Beehive=Bienenstock Beehive=Bienenstock

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
#@1 Sheep= #@1 Sheep=
#Bee= #Bee=
#Beehive= #Beehive=

View File

@ -1,4 +1,4 @@
# textdomain: mobs_animal # textdomain: mobs_jam
Bee=Abeja Bee=Abeja
Honey=Miel Honey=Miel
Beehive=Colmena Beehive=Colmena

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=Mouton @1 @1 Sheep=Mouton @1
Bee=Abeille Bee=Abeille
Beehive=Ruche Beehive=Ruche

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=Pecora @1 @1 Sheep=Pecora @1
Bee=Ape Bee=Ape
Beehive=Favo Beehive=Favo

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=Biri-biri @1 @1 Sheep=Biri-biri @1
Bee=Lebah Bee=Lebah
Beehive=Sarang Lebah Beehive=Sarang Lebah

View File

@ -1,4 +1,4 @@
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org> # textdomain:mobs_jam
Bee=Abelha Bee=Abelha
Honey=Mel Honey=Mel
Beehive=Colméia Beehive=Colméia

View File

@ -1,4 +1,4 @@
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org> # textdomain:mobs_jam
Bee=Abelha Bee=Abelha
Honey=Mel Honey=Mel
Beehive=Colméia Beehive=Colméia
@ -18,7 +18,6 @@ Cow=Vaca
Bucket of Milk=Balde de leite Bucket of Milk=Balde de leite
Cheese=Queijo Cheese=Queijo
Cheese Block=Bloco de Queijo Cheese Block=Bloco de Queijo
[MOD] Mobs Redo 'Animals' loaded=[MOBS_ANIMAL] Mod carregado completamente
Kitten=Gato Kitten=Gato
Penguin=Pinguim Penguin=Pinguim
Rat=Rato Rat=Rato

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=@1 овца @1 Sheep=@1 овца
Bee=Пчела Bee=Пчела
Beehive=Улей Beehive=Улей

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=@1 Koyun @1 Sheep=@1 Koyun
Bee=Arı Bee=Arı
Beehive=Arı kovanı Beehive=Arı kovanı

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=@1羊 @1 Sheep=@1羊
Bee=蜜蜂 Bee=蜜蜂
Beehive=蜂巢 Beehive=蜂巢

View File

@ -1,4 +1,4 @@
# textdomain:mobs_animal # textdomain:mobs_jam
@1 Sheep=@1羊 @1 Sheep=@1羊
Bee=蜜蜂 Bee=蜜蜂
Beehive=蜂巢 Beehive=蜂巢

View File

@ -1,4 +1,4 @@
name = mobs_animal name = mobs_jam
depends = mobs depends = mobs
optional_depends = default, lucky_block, intllib optional_depends = default, lucky_block, intllib
description = Adds mobs using mobs_redo. description = MOBS mod of animals, monters and extra, reduced version from tenplush1 and others mods

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Panda by AspireMint (CC BY-SA 3.0) -- Panda by AspireMint (CC BY-SA 3.0)
mobs:register_mob("mobs_animal:panda", { mobs:register_mob(":mobs_animal:panda", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
passive = false, passive = false,
@ -71,9 +71,8 @@ stepheight = 0.6,
if minetest.get_modpath("ethereal") and not mobs.custom_spawn_animal then if minetest.get_modpath("ethereal") and not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:panda", name = ":mobs_animal:panda",
nodes = {"ethereal:bamboo_dirt"}, nodes = {"ethereal:bamboo_dirt"},
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,
@ -83,7 +82,8 @@ if minetest.get_modpath("ethereal") and not mobs.custom_spawn_animal then
max_height = 80, max_height = 80,
day_toggle = true day_toggle = true
}) })
end end
mobs:register_egg("mobs_animal:panda", S("Panda"), "mobs_panda_inv.png") mobs:register_egg(":mobs_animal:panda", S("Panda"), "mobs_panda_inv.png")

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Penguin by D00Med -- Penguin by D00Med
mobs:register_mob("mobs_animal:penguin", { mobs:register_mob(":mobs_animal:penguin", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
passive = true, passive = true,
@ -64,7 +64,7 @@ stepheight = 0.6,
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:penguin", name = ":mobs_animal:penguin",
nodes = {"default:snowblock"}, nodes = {"default:snowblock"},
min_light = 14, min_light = 14,
interval = 60, interval = 60,
@ -76,4 +76,4 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:penguin", S("Penguin"), "mobs_penguin_inv.png") mobs:register_egg(":mobs_animal:penguin", S("Penguin"), "mobs_penguin_inv.png")

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Rat by KPavel and PilzAdam (B3D model by sirrobzeroone) -- Rat by KPavel and PilzAdam (B3D model by sirrobzeroone)
mobs:register_mob("mobs_animal:rat", { mobs:register_mob(":mobs_animal:rat", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
passive = true, passive = true,
@ -73,7 +73,7 @@ end
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:rat", name = ":mobs_animal:rat",
nodes = {"default:stone"}, nodes = {"default:stone"},
min_light = 3, min_light = 3,
max_light = 9, max_light = 9,
@ -85,7 +85,7 @@ if not mobs.custom_spawn_animal then
end end
mobs:register_egg("mobs_animal:rat", S("Rat"), "mobs_rat_inv.png") mobs:register_egg(":mobs_animal:rat", S("Rat"), "mobs_rat_inv.png")
mobs:alias_mob("mobs:rat", "mobs_animal:rat") -- compatibility mobs:alias_mob("mobs:rat", "mobs_animal:rat") -- compatibility

View File

@ -1,4 +1,4 @@
# minetest mod mobs_animal # minetest mod mobs_jam
IT add animals for farmin like cows, dogs chicken or cats. IT add animals for farmin like cows, dogs chicken or cats.

View File

@ -57,7 +57,7 @@ for _, col in ipairs(all_colours) do
return textures return textures
end end
mobs:register_mob("mobs_animal:sheep_" .. col[1], { mobs:register_mob(":mobs_animal:sheep_" .. col[1], {
stay_near = {"farming:straw", 10}, stay_near = {"farming:straw", 10},
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
@ -359,7 +359,7 @@ for _, col in ipairs(all_colours) do
}) })
-- spawn egg -- spawn egg
mobs:register_egg("mobs_animal:sheep_"..col[1], S("@1 Sheep", col[2]), mobs:register_egg(":mobs_animal:sheep_"..col[1], S("@1 Sheep", col[2]),
"wool_" .. col[1] .. ".png^mobs_sheep_inv.png") "wool_" .. col[1] .. ".png^mobs_sheep_inv.png")
-- compatibility -- compatibility
@ -372,10 +372,10 @@ if not mobs.custom_spawn_animal then
local max_ht = 400 local max_ht = 400
local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"} local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"}
local mod_ethereal = minetest.get_modpath("ethereal") local mod_ethereal = minetest.get_modpath("ethereal")
local spawn_chance = mod_ethereal and 12000 or 8000 local spawn_chance = 8000
mobs:spawn({ mobs:spawn({
name = "mobs_animal:sheep_white", name = ":mobs_animal:sheep_white",
nodes = spawn_on, nodes = spawn_on,
neighbors = {"group:grass"}, neighbors = {"group:grass"},
min_light = 14, min_light = 14,

View File

@ -4,7 +4,7 @@ local S = mobs.intllib_animal
-- Warthog originally by KrupnoPavel, B3D model by sirrobzeroone -- Warthog originally by KrupnoPavel, B3D model by sirrobzeroone
mobs:register_mob("mobs_animal:pumba", { mobs:register_mob(":mobs_animal:pumba", {
stepheight = 0.6, stepheight = 0.6,
type = "animal", type = "animal",
passive = false, passive = false,
@ -83,7 +83,7 @@ end
if not mobs.custom_spawn_animal then if not mobs.custom_spawn_animal then
mobs:spawn({ mobs:spawn({
name = "mobs_animal:pumba", name = ":mobs_animal:pumba",
nodes = spawn_on, nodes = spawn_on,
neighbors = spawn_by, neighbors = spawn_by,
min_light = 14, min_light = 14,
@ -97,7 +97,7 @@ end
-- spawn egg -- spawn egg
mobs:register_egg("mobs_animal:pumba", S("Warthog"), "mobs_pumba_inv.png") mobs:register_egg(":mobs_animal:pumba", S("Warthog"), "mobs_pumba_inv.png")
mobs:alias_mob("mobs:pumba", "mobs_animal:pumba") -- compatibility mobs:alias_mob("mobs:pumba", "mobs_animal:pumba") -- compatibility