Compare commits
25 Commits
80e72a4edc
...
f34b5215fa
Author | SHA1 | Date |
---|---|---|
|
f34b5215fa | |
|
c2fa3e300c | |
|
9a27ed80d7 | |
|
52d4d45027 | |
|
1d50cdbcca | |
|
27d51ce380 | |
|
f5caf7f262 | |
|
467123b46c | |
|
95eb3aa515 | |
|
0349bd5a57 | |
|
9f6228ed31 | |
|
aa3e3dd9be | |
|
51ac8cc930 | |
|
5687ef4194 | |
|
d1f5d5dd40 | |
|
11b16633e5 | |
|
71476751a0 | |
|
4718d6ee1b | |
|
a607f5928d | |
|
2bada2a2cc | |
|
6e5327dff3 | |
|
5e47c61b93 | |
|
cb9d30cbb9 | |
|
7d34b178e0 | |
|
2d8d441a99 |
78
bee.lua
78
bee.lua
|
@ -24,7 +24,7 @@ mobs:register_mob("mobs_animal:bee", {
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
jump = true,
|
jump = true,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:honey", chance = 2, min = 1, max = 2},
|
{name = "mobs:pollen", chance = 2, min = 1, max = 2},
|
||||||
},
|
},
|
||||||
water_damage = 1,
|
water_damage = 1,
|
||||||
lava_damage = 2,
|
lava_damage = 2,
|
||||||
|
@ -46,6 +46,50 @@ mobs:register_mob("mobs_animal:bee", {
|
||||||
-- end,
|
-- end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
mobs:register_mob("mobs_animal:bee_angry", {
|
||||||
|
type = "monster",
|
||||||
|
passive = false,
|
||||||
|
attack_type = "dogfight",
|
||||||
|
damage = 2,
|
||||||
|
reach = 2,
|
||||||
|
view_range = 10,
|
||||||
|
hp_min = 1,
|
||||||
|
hp_max = 6,
|
||||||
|
armor = 600,
|
||||||
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2},
|
||||||
|
visual = "mesh",
|
||||||
|
mesh = "mobs_bee.b3d",
|
||||||
|
textures = {
|
||||||
|
{"mobs_bee.png"},
|
||||||
|
},
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_bee",
|
||||||
|
},
|
||||||
|
walk_velocity = 1,
|
||||||
|
jump = true,
|
||||||
|
drops = {
|
||||||
|
{name = "mobs:pollen", chance = 2, min = 1, max = 4},
|
||||||
|
},
|
||||||
|
water_damage = 1,
|
||||||
|
lava_damage = 4,
|
||||||
|
light_damage = 0,
|
||||||
|
fall_damage = 0,
|
||||||
|
fall_speed = -3,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 15,
|
||||||
|
stand_start = 0,
|
||||||
|
stand_end = 30,
|
||||||
|
walk_start = 35,
|
||||||
|
walk_end = 65,
|
||||||
|
},
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
mobs:capture_mob(self, clicker, 25, 80, 0, true, nil)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
mobs:register_egg("mobs_animal:bee_angry", S("Angry Bee"), "mobs_bee_inv.png", 0)
|
||||||
|
|
||||||
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",
|
||||||
|
@ -72,6 +116,11 @@ minetest.register_craftitem(":mobs:honey", {
|
||||||
groups = {food_honey = 1, food_sugar = 1, flammable = 1},
|
groups = {food_honey = 1, food_sugar = 1, flammable = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- pollen
|
||||||
|
minetest.register_craftitem(":mobs:pollen", {
|
||||||
|
description = "Pollen",
|
||||||
|
inventory_image = "mobs_pollen_inv.png",
|
||||||
|
})
|
||||||
-- beehive (when placed spawns bee)
|
-- beehive (when placed spawns bee)
|
||||||
minetest.register_node(":mobs:beehive", {
|
minetest.register_node(":mobs:beehive", {
|
||||||
description = S("Beehive"),
|
description = S("Beehive"),
|
||||||
|
@ -97,6 +146,18 @@ minetest.register_node(":mobs:beehive", {
|
||||||
|
|
||||||
meta:get_inventory():set_size("beehive", 1)
|
meta:get_inventory():set_size("beehive", 1)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
on_punch = function(pos, node, puncher)
|
||||||
|
|
||||||
|
-- spawn the angry bee
|
||||||
|
if math.random(1, 4) == 1 then
|
||||||
|
minetest.add_entity(pos, "mobs_animal:bee_angry")
|
||||||
|
end
|
||||||
|
if math.random(1, 4) == 2 then
|
||||||
|
minetest.add_entity(pos, "mobs_animal:bee_angry")
|
||||||
|
minetest.add_entity(pos, "mobs_animal:bee_angry")
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
|
||||||
|
@ -110,12 +171,6 @@ minetest.register_node(":mobs:beehive", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_punch = function(pos, node, puncher)
|
|
||||||
|
|
||||||
-- yep, bee's don't like having their home punched by players
|
|
||||||
puncher:set_hp(puncher:get_hp() - 4)
|
|
||||||
end,
|
|
||||||
|
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
|
|
||||||
if listname == "beehive" then
|
if listname == "beehive" then
|
||||||
|
@ -166,6 +221,15 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mobs:honey",
|
||||||
|
recipe = {
|
||||||
|
{"mobs:pollen","mobs:pollen","mobs:pollen"},
|
||||||
|
{"mobs:pollen","mobs:pollen","mobs:pollen"},
|
||||||
|
{"mobs:pollen","mobs:pollen","mobs:pollen"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
-- beehive workings
|
-- beehive workings
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"mobs:beehive"},
|
nodenames = {"mobs:beehive"},
|
||||||
|
|
|
@ -30,7 +30,8 @@ stepheight = 0.6,
|
||||||
jump = true,
|
jump = true,
|
||||||
jump_height = 6,
|
jump_height = 6,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:rabbit_raw", chance = 1, min = 1, max = 1},
|
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||||
|
{name = "ethereal:bone", chance = 2, min = 1, max = 1},
|
||||||
{name = "mobs:rabbit_hide", chance = 1, min = 0, max = 1},
|
{name = "mobs:rabbit_hide", chance = 1, min = 0, max = 1},
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
|
@ -122,7 +123,7 @@ mobs:spawn({
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000, -- 15000
|
chance = 8000, -- 15000
|
||||||
min_height = 5,
|
min_height = 5,
|
||||||
max_height = 200,
|
max_height = 310,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -31,7 +31,8 @@ stepheight = 0.6,
|
||||||
runaway = true,
|
runaway = true,
|
||||||
runaway_from = {"player", "mobs_animal:pumba"},
|
runaway_from = {"player", "mobs_animal:pumba"},
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:chicken_raw", chance = 1, min = 1, max = 1},
|
{name = "mobs:chicken_raw", chance = 1, min = 1, max = 2},
|
||||||
|
{name = "ethereal:bone", chance = 2, min = 1, max = 1},
|
||||||
{name = "mobs:chicken_feather", chance = 1, min = 0, max = 2},
|
{name = "mobs:chicken_feather", chance = 1, min = 0, max = 2},
|
||||||
},
|
},
|
||||||
water_damage = 1,
|
water_damage = 1,
|
||||||
|
@ -109,8 +110,8 @@ mobs:spawn({
|
||||||
min_light = 14,
|
min_light = 14,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000, -- 15000
|
chance = 8000, -- 15000
|
||||||
min_height = 5,
|
min_height = 2,
|
||||||
max_height = 200,
|
max_height = 120,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
3
cow.lua
3
cow.lua
|
@ -33,6 +33,7 @@ mobs:register_mob("mobs_animal:cow", {
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
|
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
|
||||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||||
|
{name = "ethereal:bone", chance = 2, min = 2, max = 6}
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
|
@ -144,7 +145,7 @@ mobs:spawn({
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000, -- 15000
|
chance = 8000, -- 15000
|
||||||
min_height = 5,
|
min_height = 5,
|
||||||
max_height = 200,
|
max_height = 210,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
default
|
|
||||||
mobs
|
mobs
|
||||||
|
default?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
intllib?
|
intllib?
|
||||||
|
|
11
kitten.lua
11
kitten.lua
|
@ -39,6 +39,7 @@ stepheight = 1.1,
|
||||||
jump = false,
|
jump = false,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "farming:string", chance = 1, min = 0, max = 1},
|
{name = "farming:string", chance = 1, min = 0, max = 1},
|
||||||
|
{name = "ethereal:bone", chance = 2, min = 1, max = 1}
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
|
@ -53,7 +54,8 @@ stepheight = 1.1,
|
||||||
stoodup_end = 0,
|
stoodup_end = 0,
|
||||||
},
|
},
|
||||||
follow = {
|
follow = {
|
||||||
"mobs:rat", "group:food_fish_raw", "mobs_fish:tropical", "xocean:fish_edible"
|
"mobs_animal:rat", "group:food_fish_raw",
|
||||||
|
"mobs_fish:tropical", "xocean:fish_edible"
|
||||||
},
|
},
|
||||||
view_range = 8,
|
view_range = 8,
|
||||||
|
|
||||||
|
@ -117,13 +119,12 @@ 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 = {"group:grass", "ethereal:grove_dirt"},
|
||||||
neighbors = {"group:grass"},
|
|
||||||
min_light = 14,
|
min_light = 14,
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 10000, -- 22000
|
chance = 10000,
|
||||||
min_height = 5,
|
min_height = 5,
|
||||||
max_height = 50,
|
max_height = 310,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Convert '.po' file to '.txt' file.
|
||||||
|
|
||||||
|
### COMMAND SAMPLE
|
||||||
|
''''
|
||||||
|
$ lua po2tr.lua "Your Name (Your Site) <Your Email>" "pt_BR.po"
|
||||||
|
rm "pt_BR.tr" "mobs_animal.pt_BR.tr"
|
||||||
|
$ cat mobs_animal.pt_BR.tr | less
|
||||||
|
''''
|
||||||
|
|
||||||
|
Source Code: https://gitlab.com/4w/xtend/-/blob/master/xtend_default/tools/convert_po_file_to_tr_file/convert_po_file_to_tr_file.lua
|
|
@ -22,6 +22,9 @@ msgstr ""
|
||||||
msgid "Bee"
|
msgid "Bee"
|
||||||
msgstr "Biene"
|
msgstr "Biene"
|
||||||
|
|
||||||
|
msgid "Angry Bee"
|
||||||
|
msgstr "Verärgerte Biene"
|
||||||
|
|
||||||
#: bee.lua
|
#: bee.lua
|
||||||
msgid "Honey"
|
msgid "Honey"
|
||||||
msgstr "Honig"
|
msgstr "Honig"
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org>
|
||||||
|
Bee=Abelha
|
||||||
|
Honey=Mel
|
||||||
|
Beehive=Colméia
|
||||||
|
Honey Block=Bloco de Mel
|
||||||
|
Bunny=Coelho
|
||||||
|
Raw Rabbit=Carne de Coelho (Cru)
|
||||||
|
Cooked Rabbit=Coelho (Assado)
|
||||||
|
Rabbit Hide=Pele de Coelho
|
||||||
|
Chicken=Galinha
|
||||||
|
Chicken Egg=Ovo de Galinha
|
||||||
|
Fried Egg=Ovo Frito
|
||||||
|
Raw Chicken=Carne de Galinha (Crua)
|
||||||
|
Cooked Chicken=Galinha Assada
|
||||||
|
Feather=Pluma
|
||||||
|
Cow already milked!=Vaca já ordenhada!
|
||||||
|
Cow=Vaca
|
||||||
|
Bucket of Milk=Balde de leite
|
||||||
|
Cheese=Queijo
|
||||||
|
Cheese Block=Bloco de Queijo
|
||||||
|
[MOD] Mobs Redo 'Animals' loaded=[MOBS_ANIMAL] Mod carregado completamente
|
||||||
|
Kitten=Gato
|
||||||
|
Penguin=Pinguim
|
||||||
|
Rat=Rato
|
||||||
|
Cooked Rat=Rato (Assado)
|
||||||
|
Black=Preto
|
||||||
|
Blue=Azul
|
||||||
|
Brown=Marrom
|
||||||
|
Cyan=Ciano
|
||||||
|
Dark Green=Verde Escuro
|
||||||
|
Dark Grey=Cinza Escuro
|
||||||
|
Green=Verde
|
||||||
|
Grey=Cinza
|
||||||
|
Magenta=Rosa Magenta
|
||||||
|
Orange=Laranja
|
||||||
|
Pink=Rosa
|
||||||
|
Red=Vermelho
|
||||||
|
Violet=Violeta
|
||||||
|
White=Branco
|
||||||
|
Yellow=Amarelo
|
||||||
|
@1 Sheep=Ovelha @1
|
||||||
|
Raw Mutton=Carneiro (Cru)
|
||||||
|
Cooked Mutton=Carneiro (Assado)
|
||||||
|
Warthog=Javali
|
||||||
|
Raw Porkchop=Costeleta de Javali (Crua)
|
||||||
|
Cooked Porkchop=Costeleta de Javali Assada
|
|
@ -0,0 +1,46 @@
|
||||||
|
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org>
|
||||||
|
Bee=Abelha
|
||||||
|
Honey=Mel
|
||||||
|
Beehive=Colméia
|
||||||
|
Honey Block=Bloco de Mel
|
||||||
|
Bunny=Coelho
|
||||||
|
Raw Rabbit=Carne de Coelho (Cru)
|
||||||
|
Cooked Rabbit=Coelho (Assado)
|
||||||
|
Rabbit Hide=Pele de Coelho
|
||||||
|
Chicken=Galinha
|
||||||
|
Chicken Egg=Ovo de Galinha
|
||||||
|
Fried Egg=Ovo Frito
|
||||||
|
Raw Chicken=Carne de Galinha (Crua)
|
||||||
|
Cooked Chicken=Galinha Assada
|
||||||
|
Feather=Pluma
|
||||||
|
Cow already milked!=Vaca já ordenhada!
|
||||||
|
Cow=Vaca
|
||||||
|
Bucket of Milk=Balde de leite
|
||||||
|
Cheese=Queijo
|
||||||
|
Cheese Block=Bloco de Queijo
|
||||||
|
[MOD] Mobs Redo 'Animals' loaded=[MOBS_ANIMAL] Mod carregado completamente
|
||||||
|
Kitten=Gato
|
||||||
|
Penguin=Pinguim
|
||||||
|
Rat=Rato
|
||||||
|
Cooked Rat=Rato (Assado)
|
||||||
|
Black=Preto
|
||||||
|
Blue=Azul
|
||||||
|
Brown=Marrom
|
||||||
|
Cyan=Ciano
|
||||||
|
Dark Green=Verde Escuro
|
||||||
|
Dark Grey=Cinza Escuro
|
||||||
|
Green=Verde
|
||||||
|
Grey=Cinza
|
||||||
|
Magenta=Rosa Magenta
|
||||||
|
Orange=Laranja
|
||||||
|
Pink=Rosa
|
||||||
|
Red=Vermelho
|
||||||
|
Violet=Violeta
|
||||||
|
White=Branco
|
||||||
|
Yellow=Amarelo
|
||||||
|
@1 Sheep=Ovelha @1
|
||||||
|
Raw Mutton=Carneiro (Cru)
|
||||||
|
Cooked Mutton=Carneiro (Assado)
|
||||||
|
Warthog=Javali
|
||||||
|
Raw Porkchop=Costeleta de Javali (Crua)
|
||||||
|
Cooked Porkchop=Costeleta de Javali Assada
|
|
@ -0,0 +1,116 @@
|
||||||
|
#!/usr/bin/env luajit
|
||||||
|
|
||||||
|
-- Convert regular Gettext PO files to Minetest-specific TR files. If there is
|
||||||
|
-- already a TR file with the same name of the PO file except the file suffix
|
||||||
|
-- bneing .tr (or .TR) instead of .po (or .PO) then THIS FILE WILL BE
|
||||||
|
-- OVERWRITTEN WITHOUT INFORMATION OR A WAY TO RECOVER THE PREVIOUS FILE!
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- ▄██▄
|
||||||
|
-- ▀███
|
||||||
|
-- █
|
||||||
|
-- ▄▄▄▄▄ █
|
||||||
|
-- ▀▄ ▀▄ █ BACKUP
|
||||||
|
-- ▄▀▀▀▄ █▄▄▄▄█▄▄ ▄▀▀▀▄ █
|
||||||
|
-- █ ▄ █ █ ▄ █ █
|
||||||
|
-- ▀▄ ▄▀ ▀▄ ▄▀ █
|
||||||
|
-- █▀▀▀ ▀▀▀ █ █
|
||||||
|
-- █ █ █ ALL
|
||||||
|
-- ▄▀▄▄▀▄ █ ▄█▀█▀█▀█▀█▀█▄ █ █
|
||||||
|
-- █▒▒▒▒█ █ █████████████▄ █ █
|
||||||
|
-- █▒▒▒▒█ █ ██████████████▄ █ █
|
||||||
|
-- █▒▒▒▒█ █ ██████████████▄ █ █
|
||||||
|
-- █▒▒▒▒█ █ ██████████████ █ █
|
||||||
|
-- █▒▒▒▒█ █ ██████████████▀ █ █ THE
|
||||||
|
-- █▒▒▒▒█ ██ ██████████████ █ █
|
||||||
|
-- ▀████▀ ██▀█ █████████████▀ █▄█
|
||||||
|
-- ██ ██ ▀█ █▄█▄█▄█▄█▄█▀ ▄█▀
|
||||||
|
-- ██ ██ ▀█ ▄▀▓█
|
||||||
|
-- ██ ██ ▀█▀▄▄▄▄▄▄▄▄▄▀▀▓▓▓█
|
||||||
|
-- ████ █▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
|
||||||
|
-- ███ █▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ THINGS
|
||||||
|
-- ██ █▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
|
||||||
|
-- ██ █▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▌ !!!
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▌
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▌
|
||||||
|
-- ██ ▐█▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█▌
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- The syntax of TR files according to the introducing forum post is:
|
||||||
|
--
|
||||||
|
-- # textdomain: namespace
|
||||||
|
-- original 1 = translation 1
|
||||||
|
-- original 2 = translation 2
|
||||||
|
-- original 3 = tralslation 3
|
||||||
|
-- original N = translation N
|
||||||
|
--
|
||||||
|
-- Where namespace should be the name of the mod. Following strings have to be
|
||||||
|
-- escaped using @.
|
||||||
|
--
|
||||||
|
-- String | Escape
|
||||||
|
-- -------+--------
|
||||||
|
-- `@` |`@@`
|
||||||
|
-- `=` |`@=`
|
||||||
|
-- `\n` |`@\n`
|
||||||
|
--
|
||||||
|
-- See https://forum.minetest.net/viewtopic.php?t=18349 for details.
|
||||||
|
|
||||||
|
|
||||||
|
-- Preparation
|
||||||
|
if arg[1] == nil or arg[2] == nil then
|
||||||
|
print('Provide the namesspace as first parameter')
|
||||||
|
print('Provide the path to the source PO file as second parameter')
|
||||||
|
print('Example: '..arg[0]..' mymod path/to/my/source.po')
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local SEP = package.path:match('(%p)%?%.') or '/' -- wonky but hey ... :)
|
||||||
|
|
||||||
|
|
||||||
|
-- Assign parameters to local variables
|
||||||
|
local namespace = arg[1]
|
||||||
|
local po_file = arg[2]
|
||||||
|
local tr_file = arg[2]:gsub('po$', 'tr'):gsub('PO$', 'TR')
|
||||||
|
|
||||||
|
|
||||||
|
-- Get the translations through crude plaintext file parsing
|
||||||
|
local file_contents = {}
|
||||||
|
local translations = {}
|
||||||
|
|
||||||
|
local po_file_handle = io.open(po_file, 'rb')
|
||||||
|
if po_file_handle == nil then print('No base file found') return end
|
||||||
|
|
||||||
|
for line in po_file_handle:lines() do
|
||||||
|
if line:match('^msgid') or line:match('^msgstr') then
|
||||||
|
table.insert(file_contents, line)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local escape_string = function (s)
|
||||||
|
s = s:gsub('@([^%d])', '@@%1') -- All @ not followed by a number become @@
|
||||||
|
s = s:gsub('([^@]@)$', '%1@') -- An @ at the end of the string become @@
|
||||||
|
s = s:gsub('=', '@=') -- All = become @=
|
||||||
|
return s
|
||||||
|
end
|
||||||
|
|
||||||
|
for number,line_content in pairs(file_contents) do
|
||||||
|
if line_content:match('^msgid') then
|
||||||
|
local o = line_content:gsub('^msgid "(.+)"$', '%1')
|
||||||
|
local t = file_contents[number + 1]:gsub('^msgstr "(.+)"$', '%1')
|
||||||
|
if o ~= 'msgid = ""' and t ~= 'msgstr ""' then
|
||||||
|
table.insert(translations, escape_string(o)..'='..escape_string(t))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
print(number)
|
||||||
|
po_file_handle:close()
|
||||||
|
|
||||||
|
|
||||||
|
-- Write translation to file
|
||||||
|
local tr_file_handle = io.open(tr_file, 'w+')
|
||||||
|
if tr_file_handle == nil then print('Could not open target file') return end
|
||||||
|
tr_file_handle:write('# textdomain: '..namespace, "\n")
|
||||||
|
for _,line in pairs(translations) do tr_file_handle:write(line, "\n") end
|
||||||
|
tr_file_handle:close()
|
|
@ -0,0 +1,199 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-07-31 11:28+0200\n"
|
||||||
|
"PO-Revision-Date: 2021-06-20 18:51-0300\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
"Last-Translator: Lunovox Heavenfinder <lunovox@disroot.org>\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
"Language: pt_BR\n"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Bee"
|
||||||
|
msgstr "Abelha"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Honey"
|
||||||
|
msgstr "Mel"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Beehive"
|
||||||
|
msgstr "Colméia"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Honey Block"
|
||||||
|
msgstr "Bloco de Mel"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Bunny"
|
||||||
|
msgstr "Coelho"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Raw Rabbit"
|
||||||
|
msgstr "Carne de Coelho (Cru)"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Cooked Rabbit"
|
||||||
|
msgstr "Coelho (Assado)"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Rabbit Hide"
|
||||||
|
msgstr "Pele de Coelho"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Chicken"
|
||||||
|
msgstr "Galinha"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Chicken Egg"
|
||||||
|
msgstr "Ovo de Galinha"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Fried Egg"
|
||||||
|
msgstr "Ovo Frito"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Raw Chicken"
|
||||||
|
msgstr "Carne de Galinha (Crua)"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Cooked Chicken"
|
||||||
|
msgstr "Galinha Assada"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Feather"
|
||||||
|
msgstr "Pluma"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cow already milked!"
|
||||||
|
msgstr "Vaca já ordenhada!"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cow"
|
||||||
|
msgstr "Vaca"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Bucket of Milk"
|
||||||
|
msgstr "Balde de leite"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cheese"
|
||||||
|
msgstr "Queijo"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cheese Block"
|
||||||
|
msgstr "Bloco de Queijo"
|
||||||
|
|
||||||
|
#: init.lua
|
||||||
|
msgid "[MOD] Mobs Redo 'Animals' loaded"
|
||||||
|
msgstr "[MOBS_ANIMAL] Mod carregado completamente"
|
||||||
|
|
||||||
|
#: kitten.lua
|
||||||
|
msgid "Kitten"
|
||||||
|
msgstr "Gato"
|
||||||
|
|
||||||
|
#: penguin.lua
|
||||||
|
msgid "Penguin"
|
||||||
|
msgstr "Pinguim"
|
||||||
|
|
||||||
|
#: rat.lua
|
||||||
|
msgid "Rat"
|
||||||
|
msgstr "Rato"
|
||||||
|
|
||||||
|
#: rat.lua
|
||||||
|
msgid "Cooked Rat"
|
||||||
|
msgstr "Rato (Assado)"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Black"
|
||||||
|
msgstr "Preto"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Blue"
|
||||||
|
msgstr "Azul"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Brown"
|
||||||
|
msgstr "Marrom"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Cyan"
|
||||||
|
msgstr "Ciano"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Dark Green"
|
||||||
|
msgstr "Verde Escuro"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Dark Grey"
|
||||||
|
msgstr "Cinza Escuro"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Green"
|
||||||
|
msgstr "Verde"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Grey"
|
||||||
|
msgstr "Cinza"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Magenta"
|
||||||
|
msgstr "Rosa Magenta"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Orange"
|
||||||
|
msgstr "Laranja"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Pink"
|
||||||
|
msgstr "Rosa"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Red"
|
||||||
|
msgstr "Vermelho"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Violet"
|
||||||
|
msgstr "Violeta"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "White"
|
||||||
|
msgstr "Branco"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Yellow"
|
||||||
|
msgstr "Amarelo"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "@1 Sheep"
|
||||||
|
msgstr "Ovelha @1 "
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Raw Mutton"
|
||||||
|
msgstr "Carneiro (Cru)"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Cooked Mutton"
|
||||||
|
msgstr "Carneiro (Assado)"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Warthog"
|
||||||
|
msgstr "Javali"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Raw Porkchop"
|
||||||
|
msgstr "Costeleta de Javali (Crua)"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Cooked Porkchop"
|
||||||
|
msgstr "Costeleta de Javali Assada"
|
|
@ -0,0 +1,46 @@
|
||||||
|
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org>
|
||||||
|
Bee=Abelha
|
||||||
|
Honey=Mel
|
||||||
|
Beehive=Colméia
|
||||||
|
Honey Block=Bloco de Mel
|
||||||
|
Bunny=Coelho
|
||||||
|
Raw Rabbit=Carne de Coelho (Cru)
|
||||||
|
Cooked Rabbit=Coelho (Assado)
|
||||||
|
Rabbit Hide=Pele de Coelho
|
||||||
|
Chicken=Galinha
|
||||||
|
Chicken Egg=Ovo de Galinha
|
||||||
|
Fried Egg=Ovo Frito
|
||||||
|
Raw Chicken=Carne de Galinha (Crua)
|
||||||
|
Cooked Chicken=Galinha Assada
|
||||||
|
Feather=Pluma
|
||||||
|
Cow already milked!=Vaca já ordenhada!
|
||||||
|
Cow=Vaca
|
||||||
|
Bucket of Milk=Balde de leite
|
||||||
|
Cheese=Queijo
|
||||||
|
Cheese Block=Bloco de Queijo
|
||||||
|
[MOD] Mobs Redo 'Animals' loaded=[MOBS_ANIMAL] Mod carregado completamente
|
||||||
|
Kitten=Gato
|
||||||
|
Penguin=Pinguim
|
||||||
|
Rat=Rato
|
||||||
|
Cooked Rat=Rato (Assado)
|
||||||
|
Black=Preto
|
||||||
|
Blue=Azul
|
||||||
|
Brown=Marrom
|
||||||
|
Cyan=Ciano
|
||||||
|
Dark Green=Verde Escuro
|
||||||
|
Dark Grey=Cinza Escuro
|
||||||
|
Green=Verde
|
||||||
|
Grey=Cinza
|
||||||
|
Magenta=Rosa Magenta
|
||||||
|
Orange=Laranja
|
||||||
|
Pink=Rosa
|
||||||
|
Red=Vermelho
|
||||||
|
Violet=Violeta
|
||||||
|
White=Branco
|
||||||
|
Yellow=Amarelo
|
||||||
|
@1 Sheep=Ovelha @1
|
||||||
|
Raw Mutton=Carneiro (Cru)
|
||||||
|
Cooked Mutton=Carneiro (Assado)
|
||||||
|
Warthog=Javali
|
||||||
|
Raw Porkchop=Costeleta de Javali (Crua)
|
||||||
|
Cooked Porkchop=Costeleta de Javali Assada
|
|
@ -0,0 +1,199 @@
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-07-31 11:28+0200\n"
|
||||||
|
"PO-Revision-Date: 2021-06-20 18:51-0300\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
"Last-Translator: Lunovox Heavenfinder <lunovox@disroot.org>\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
"Language: pt_BR\n"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Bee"
|
||||||
|
msgstr "Abelha"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Honey"
|
||||||
|
msgstr "Mel"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Beehive"
|
||||||
|
msgstr "Colméia"
|
||||||
|
|
||||||
|
#: bee.lua
|
||||||
|
msgid "Honey Block"
|
||||||
|
msgstr "Bloco de Mel"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Bunny"
|
||||||
|
msgstr "Coelho"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Raw Rabbit"
|
||||||
|
msgstr "Carne de Coelho (Cru)"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Cooked Rabbit"
|
||||||
|
msgstr "Coelho (Assado)"
|
||||||
|
|
||||||
|
#: bunny.lua
|
||||||
|
msgid "Rabbit Hide"
|
||||||
|
msgstr "Pele de Coelho"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Chicken"
|
||||||
|
msgstr "Galinha"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Chicken Egg"
|
||||||
|
msgstr "Ovo de Galinha"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Fried Egg"
|
||||||
|
msgstr "Ovo Frito"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Raw Chicken"
|
||||||
|
msgstr "Carne de Galinha (Crua)"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Cooked Chicken"
|
||||||
|
msgstr "Galinha Assada"
|
||||||
|
|
||||||
|
#: chicken.lua
|
||||||
|
msgid "Feather"
|
||||||
|
msgstr "Pluma"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cow already milked!"
|
||||||
|
msgstr "Vaca já ordenhada!"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cow"
|
||||||
|
msgstr "Vaca"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Bucket of Milk"
|
||||||
|
msgstr "Balde de leite"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cheese"
|
||||||
|
msgstr "Queijo"
|
||||||
|
|
||||||
|
#: cow.lua
|
||||||
|
msgid "Cheese Block"
|
||||||
|
msgstr "Bloco de Queijo"
|
||||||
|
|
||||||
|
#: init.lua
|
||||||
|
msgid "[MOD] Mobs Redo 'Animals' loaded"
|
||||||
|
msgstr "[MOBS_ANIMAL] Mod carregado completamente"
|
||||||
|
|
||||||
|
#: kitten.lua
|
||||||
|
msgid "Kitten"
|
||||||
|
msgstr "Gato"
|
||||||
|
|
||||||
|
#: penguin.lua
|
||||||
|
msgid "Penguin"
|
||||||
|
msgstr "Pinguim"
|
||||||
|
|
||||||
|
#: rat.lua
|
||||||
|
msgid "Rat"
|
||||||
|
msgstr "Rato"
|
||||||
|
|
||||||
|
#: rat.lua
|
||||||
|
msgid "Cooked Rat"
|
||||||
|
msgstr "Rato (Assado)"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Black"
|
||||||
|
msgstr "Preto"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Blue"
|
||||||
|
msgstr "Azul"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Brown"
|
||||||
|
msgstr "Marrom"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Cyan"
|
||||||
|
msgstr "Ciano"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Dark Green"
|
||||||
|
msgstr "Verde Escuro"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Dark Grey"
|
||||||
|
msgstr "Cinza Escuro"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Green"
|
||||||
|
msgstr "Verde"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Grey"
|
||||||
|
msgstr "Cinza"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Magenta"
|
||||||
|
msgstr "Rosa Magenta"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Orange"
|
||||||
|
msgstr "Laranja"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Pink"
|
||||||
|
msgstr "Rosa"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Red"
|
||||||
|
msgstr "Vermelho"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Violet"
|
||||||
|
msgstr "Violeta"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "White"
|
||||||
|
msgstr "Branco"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Yellow"
|
||||||
|
msgstr "Amarelo"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "@1 Sheep"
|
||||||
|
msgstr "Ovelha @1 "
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Raw Mutton"
|
||||||
|
msgstr "Carneiro (Cru)"
|
||||||
|
|
||||||
|
#: sheep.lua
|
||||||
|
msgid "Cooked Mutton"
|
||||||
|
msgstr "Carneiro (Assado)"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Warthog"
|
||||||
|
msgstr "Javali"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Raw Porkchop"
|
||||||
|
msgstr "Costeleta de Javali (Crua)"
|
||||||
|
|
||||||
|
#: warthog.lua
|
||||||
|
msgid "Cooked Porkchop"
|
||||||
|
msgstr "Costeleta de Javali Assada"
|
|
@ -0,0 +1,46 @@
|
||||||
|
# textdomain: Lunovox Heavenfinder (https://libreplanet.org/wiki/User:Lunovox) <lunovox@disroot.org>
|
||||||
|
Bee=Abelha
|
||||||
|
Honey=Mel
|
||||||
|
Beehive=Colméia
|
||||||
|
Honey Block=Bloco de Mel
|
||||||
|
Bunny=Coelho
|
||||||
|
Raw Rabbit=Carne de Coelho (Cru)
|
||||||
|
Cooked Rabbit=Coelho (Assado)
|
||||||
|
Rabbit Hide=Pele de Coelho
|
||||||
|
Chicken=Galinha
|
||||||
|
Chicken Egg=Ovo de Galinha
|
||||||
|
Fried Egg=Ovo Frito
|
||||||
|
Raw Chicken=Carne de Galinha (Crua)
|
||||||
|
Cooked Chicken=Galinha Assada
|
||||||
|
Feather=Pluma
|
||||||
|
Cow already milked!=Vaca já ordenhada!
|
||||||
|
Cow=Vaca
|
||||||
|
Bucket of Milk=Balde de leite
|
||||||
|
Cheese=Queijo
|
||||||
|
Cheese Block=Bloco de Queijo
|
||||||
|
[MOD] Mobs Redo 'Animals' loaded=[MOBS_ANIMAL] Mod carregado completamente
|
||||||
|
Kitten=Gato
|
||||||
|
Penguin=Pinguim
|
||||||
|
Rat=Rato
|
||||||
|
Cooked Rat=Rato (Assado)
|
||||||
|
Black=Preto
|
||||||
|
Blue=Azul
|
||||||
|
Brown=Marrom
|
||||||
|
Cyan=Ciano
|
||||||
|
Dark Green=Verde Escuro
|
||||||
|
Dark Grey=Cinza Escuro
|
||||||
|
Green=Verde
|
||||||
|
Grey=Cinza
|
||||||
|
Magenta=Rosa Magenta
|
||||||
|
Orange=Laranja
|
||||||
|
Pink=Rosa
|
||||||
|
Red=Vermelho
|
||||||
|
Violet=Violeta
|
||||||
|
White=Branco
|
||||||
|
Yellow=Amarelo
|
||||||
|
@1 Sheep=Ovelha @1
|
||||||
|
Raw Mutton=Carneiro (Cru)
|
||||||
|
Cooked Mutton=Carneiro (Assado)
|
||||||
|
Warthog=Javali
|
||||||
|
Raw Porkchop=Costeleta de Javali (Crua)
|
||||||
|
Cooked Porkchop=Costeleta de Javali Assada
|
|
@ -12,7 +12,7 @@ if minetest.get_modpath("lucky_block") then
|
||||||
{"spw", "mobs:chicken", 5},
|
{"spw", "mobs:chicken", 5},
|
||||||
{"dro", {"mobs:egg"}, 5},
|
{"dro", {"mobs:egg"}, 5},
|
||||||
{"spw", "mobs:cow", 5},
|
{"spw", "mobs:cow", 5},
|
||||||
{"dro", {"mobs:bucket_milk"}, 8},
|
{"dro", {"mobs:bucket_milk", "bucket:bucket_water"}, 8},
|
||||||
{"spw", "mobs:kitten", 2},
|
{"spw", "mobs:kitten", 2},
|
||||||
{"exp"},
|
{"exp"},
|
||||||
{"dro", {"mobs:hairball"}, 3},
|
{"dro", {"mobs:hairball"}, 3},
|
||||||
|
|
4
mod.conf
4
mod.conf
|
@ -1,4 +1,4 @@
|
||||||
name = mobs_animal
|
name = mobs_animal
|
||||||
depends = default, mobs
|
depends = mobs
|
||||||
optional_depends = lucky_block, intllib
|
optional_depends = default, lucky_block, intllib
|
||||||
description = Adds farm animals.
|
description = Adds farm animals.
|
||||||
|
|
|
@ -28,6 +28,7 @@ stepheight = 0.6,
|
||||||
stepheight = 1.1,
|
stepheight = 1.1,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||||
|
{name = "ethereal:bone", chance = 2, min = 1, max = 1}
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 4,
|
lava_damage = 4,
|
||||||
|
@ -68,7 +69,7 @@ mobs:spawn({
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 20000,
|
chance = 20000,
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 200,
|
max_height = 400,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -52,7 +52,8 @@ for _, col in ipairs(all_colours) do
|
||||||
pushable = true,
|
pushable = true,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:mutton_raw", chance = 1, min = 1, max = 2},
|
{name = "mobs:mutton_raw", chance = 1, min = 1, max = 2},
|
||||||
{name = "wool:"..col[1], chance = 1, min = 1, max = 1},
|
{name = "ethereal:bone", chance = 2, min = 1, max = 2}
|
||||||
|
--{name = "wool:"..col[1], chance = 1, min = 1, max = 1},
|
||||||
},
|
},
|
||||||
water_damage = 0,
|
water_damage = 0,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
|
@ -222,7 +223,7 @@ mobs:spawn({
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000, -- 15000
|
chance = 8000, -- 15000
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 200,
|
max_height = 2000,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 568 B |
|
@ -87,7 +87,7 @@ mobs:spawn({
|
||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 8000, -- 15000
|
chance = 8000, -- 15000
|
||||||
min_height = 0,
|
min_height = 0,
|
||||||
max_height = 200,
|
max_height = 180,
|
||||||
day_toggle = true,
|
day_toggle = true,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue