forked from mtcontrib/mobs_animal
		
	Compare commits
	
		
			47 Commits
		
	
	
		
			nalc-1.2.0
			...
			cac5e8328f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| cac5e8328f | |||
| 
						 | 
					99ca850018 | ||
| bcb158d241 | |||
| 99cf81611a | |||
| 
						 | 
					c2fa3e300c | ||
| a7b08928c5 | |||
| 
						 | 
					9a27ed80d7 | ||
| 630c73cdd7 | |||
| 
						 | 
					52d4d45027 | ||
| 
						 | 
					1d50cdbcca | ||
| eba1ac7f10 | |||
| 
						 | 
					80e72a4edc | ||
| 86987aadde | |||
| 
						 | 
					cd2b2609a2 | ||
| 5293673547 | |||
| 
						 | 
					54f6de148b | ||
| 0873ef4119 | |||
| 
						 | 
					f2b1b752a7 | ||
| 
						 | 
					db59194f88 | ||
| 
						 | 
					733ab61820 | ||
| 498b3fbf10 | |||
| 
						 | 
					8bfa177190 | ||
| 01bdea97c7 | |||
| 
						 | 
					a1bbcb26ec | ||
| 620bdfe33d | |||
| 
						 | 
					77ed774de5 | ||
| 061cbb10b7 | |||
| 
						 | 
					c22c556b5f | ||
| ba305db9ca | |||
| 
						 | 
					7de71d8724 | ||
| 
						 | 
					6a74a05836 | ||
| e3ca168e7e | |||
| 
						 | 
					9c7e537f52 | ||
| 66be327567 | |||
| 
						 | 
					96f41785b5 | ||
| 8ef65e2292 | |||
| 
						 | 
					95c32cb4af | ||
| 
						 | 
					e8ccc6b3c1 | ||
| 03acd94c3b | |||
| 
						 | 
					4706a78a2a | ||
| a5ed775333 | |||
| 
						 | 
					7a572d874d | ||
| b98fc2186f | |||
| 
						 | 
					d4ae151e47 | ||
| a14d29bd55 | |||
| 
						 | 
					3768da8e49 | ||
| 
						 | 
					c6a82eae3a | 
							
								
								
									
										2
									
								
								bee.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bee.lua
									
									
									
									
									
								
							@@ -46,6 +46,7 @@ mobs:register_mob("mobs_animal:bee", {
 | 
			
		||||
--	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:bee",
 | 
			
		||||
	nodes = {"group:flower"},
 | 
			
		||||
@@ -56,6 +57,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:bee", S("Bee"), "mobs_bee_inv.png")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								bunny.lua
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								bunny.lua
									
									
									
									
									
								
							@@ -113,6 +113,7 @@ if minetest.get_modpath("ethereal") then
 | 
			
		||||
	spawn_on = "ethereal:prairie_dirt"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:bunny",
 | 
			
		||||
	nodes = {spawn_on},
 | 
			
		||||
@@ -124,6 +125,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:bunny", S("Bunny"), "mobs_bunny_inv.png", 0)
 | 
			
		||||
@@ -159,7 +161,7 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craftitem(":mobs:rabbit_hide", {
 | 
			
		||||
	description = S("Rabbit Hide"),
 | 
			
		||||
	inventory_image = "mobs_rabbit_hide.png",
 | 
			
		||||
	groups = {flammable = 2},
 | 
			
		||||
	groups = {flammable = 2, pelt = 1},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
@@ -170,9 +172,9 @@ minetest.register_craft({
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "mobs:leather",
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
--	type = "shapeless",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"mobs:rabbit_hide", "mobs:rabbit_hide",
 | 
			
		||||
		"mobs:rabbit_hide", "mobs:rabbit_hide"
 | 
			
		||||
		{"mobs:rabbit_hide", "mobs:rabbit_hide"},
 | 
			
		||||
		{"mobs:rabbit_hide", "mobs:rabbit_hide"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										48
									
								
								chicken.lua
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								chicken.lua
									
									
									
									
									
								
							@@ -38,7 +38,7 @@ stepheight = 0.6,
 | 
			
		||||
	lava_damage = 5,
 | 
			
		||||
	light_damage = 0,
 | 
			
		||||
	fall_damage = 0,
 | 
			
		||||
	fall_speed = -8,
 | 
			
		||||
	fall_speed = -4,
 | 
			
		||||
	fear_height = 5,
 | 
			
		||||
	animation = {
 | 
			
		||||
		speed_normal = 15,
 | 
			
		||||
@@ -55,7 +55,10 @@ stepheight = 0.6,
 | 
			
		||||
		run_end = 110,
 | 
			
		||||
		run_speed = 24,
 | 
			
		||||
	},
 | 
			
		||||
	follow = {"farming:seed_wheat", "farming:seed_cotton"},
 | 
			
		||||
	follow = {
 | 
			
		||||
		"farming:seed_wheat", "farming:seed_cotton", "farming:seed_barley",
 | 
			
		||||
		"farming:seed_oat", "farming:seed_rye"
 | 
			
		||||
	},
 | 
			
		||||
	view_range = 5,
 | 
			
		||||
 | 
			
		||||
	on_rightclick = function(self, clicker)
 | 
			
		||||
@@ -78,7 +81,7 @@ stepheight = 0.6,
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local pos = self.object:get_pos()
 | 
			
		||||
		local pos = self.object:get_pos() ; if not pos then return end
 | 
			
		||||
 | 
			
		||||
		minetest.add_item(pos, "mobs:egg")
 | 
			
		||||
 | 
			
		||||
@@ -97,6 +100,8 @@ if minetest.get_modpath("ethereal") then
 | 
			
		||||
	spawn_on = {"ethereal:bamboo_dirt", "ethereal:prairie_dirt"}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:chicken",
 | 
			
		||||
	nodes = spawn_on,
 | 
			
		||||
@@ -108,6 +113,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:chicken", S("Chicken"), "mobs_chicken_inv.png", 0)
 | 
			
		||||
@@ -132,7 +138,7 @@ mobs:register_arrow("mobs_animal:egg_entity", {
 | 
			
		||||
	end,
 | 
			
		||||
 | 
			
		||||
	hit_mob = function(self, player)
 | 
			
		||||
		player:punch(minetest.get_player_by_name(self.playername) or self.object, 1.0, {
 | 
			
		||||
		player:punch(self.object, 1.0, {
 | 
			
		||||
			full_punch_interval = 1.0,
 | 
			
		||||
			damage_groups = {fleshy = 1},
 | 
			
		||||
		}, nil)
 | 
			
		||||
@@ -140,7 +146,7 @@ mobs:register_arrow("mobs_animal:egg_entity", {
 | 
			
		||||
 | 
			
		||||
	hit_node = function(self, pos, node)
 | 
			
		||||
 | 
			
		||||
		if math.random(1, 10) > 1 then
 | 
			
		||||
		if math.random(10) > 1 then
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
@@ -154,28 +160,10 @@ mobs:register_arrow("mobs_animal:egg_entity", {
 | 
			
		||||
			return
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		local mob = minetest.add_entity(pos, "mobs_animal:chicken")
 | 
			
		||||
		local ent2 = mob:get_luaentity()
 | 
			
		||||
		local staticdata = minetest.serialize(
 | 
			
		||||
			{child = true, tamed = true, owner = self.playername})
 | 
			
		||||
 | 
			
		||||
		mob:set_properties({
 | 
			
		||||
			textures = ent2.child_texture[1],
 | 
			
		||||
			visual_size = {
 | 
			
		||||
				x = ent2.base_size.x / 2,
 | 
			
		||||
				y = ent2.base_size.y / 2
 | 
			
		||||
			},
 | 
			
		||||
			collisionbox = {
 | 
			
		||||
				ent2.base_colbox[1] / 2,
 | 
			
		||||
				ent2.base_colbox[2] / 2,
 | 
			
		||||
				ent2.base_colbox[3] / 2,
 | 
			
		||||
				ent2.base_colbox[4] / 2,
 | 
			
		||||
				ent2.base_colbox[5] / 2,
 | 
			
		||||
				ent2.base_colbox[6] / 2
 | 
			
		||||
			},
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
		ent2.child = true
 | 
			
		||||
		ent2.tamed = true
 | 
			
		||||
		ent2.owner = self.playername
 | 
			
		||||
		minetest.add_entity(pos, "mobs_animal:chicken", staticdata)
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -207,14 +195,15 @@ local mobs_shoot_egg = function (item, player, pointed_thing)
 | 
			
		||||
 | 
			
		||||
	ent.velocity = egg_VELOCITY -- needed for api internal timing
 | 
			
		||||
	ent.switch = 1 -- needed so that egg doesn't despawn straight away
 | 
			
		||||
	ent._is_arrow = true -- tell advanced mob protection this is an arrow
 | 
			
		||||
 | 
			
		||||
	obj:setvelocity({
 | 
			
		||||
	obj:set_velocity({
 | 
			
		||||
		x = dir.x * egg_VELOCITY,
 | 
			
		||||
		y = dir.y * egg_VELOCITY,
 | 
			
		||||
		z = dir.z * egg_VELOCITY
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	obj:setacceleration({
 | 
			
		||||
	obj:set_acceleration({
 | 
			
		||||
		x = dir.x * -3,
 | 
			
		||||
		y = -egg_GRAVITY,
 | 
			
		||||
		z = dir.z * -3
 | 
			
		||||
@@ -222,6 +211,7 @@ local mobs_shoot_egg = function (item, player, pointed_thing)
 | 
			
		||||
 | 
			
		||||
	-- pass player name to egg for chick ownership
 | 
			
		||||
	local ent2 = obj:get_luaentity()
 | 
			
		||||
 | 
			
		||||
	ent2.playername = player:get_player_name()
 | 
			
		||||
 | 
			
		||||
	item:take_item()
 | 
			
		||||
@@ -296,7 +286,7 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craftitem(":mobs:chicken_feather", {
 | 
			
		||||
	description = S("Feather"),
 | 
			
		||||
	inventory_image = "mobs_chicken_feather.png",
 | 
			
		||||
	groups = {flammable = 2},
 | 
			
		||||
	groups = {flammable = 2, feather = 1},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										41
									
								
								cow.lua
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								cow.lua
									
									
									
									
									
								
							@@ -59,7 +59,10 @@ mobs:register_mob("mobs_animal:cow", {
 | 
			
		||||
		die_speed = 10,
 | 
			
		||||
		die_loop = false,
 | 
			
		||||
	},
 | 
			
		||||
	follow = {"farming:wheat", "default:grass_1"},
 | 
			
		||||
	follow = {
 | 
			
		||||
		"farming:wheat", "default:grass_1", "farming:barley",
 | 
			
		||||
		"farming:oat", "farming:rye"
 | 
			
		||||
	},
 | 
			
		||||
	view_range = 8,
 | 
			
		||||
	replace_rate = 10,
 | 
			
		||||
	replace_what = {
 | 
			
		||||
@@ -133,6 +136,7 @@ mobs:register_mob("mobs_animal:cow", {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:cow",
 | 
			
		||||
	nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
 | 
			
		||||
@@ -144,6 +148,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:cow", S("Cow"), "mobs_cow_inv.png")
 | 
			
		||||
@@ -158,7 +163,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
 | 
			
		||||
	inventory_image = "mobs_bucket_milk.png",
 | 
			
		||||
	stack_max = 1,
 | 
			
		||||
	on_use = minetest.item_eat(8, "bucket:bucket_empty"),
 | 
			
		||||
	groups = {food_milk = 1, flammable = 3},
 | 
			
		||||
	groups = {food_milk = 1, flammable = 3, drink = 1},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- glass of milk
 | 
			
		||||
@@ -166,29 +171,31 @@ minetest.register_craftitem(":mobs:glass_milk", {
 | 
			
		||||
	description = S("Glass of Milk"),
 | 
			
		||||
	inventory_image = "mobs_glass_milk.png",
 | 
			
		||||
	on_use = minetest.item_eat(2, "vessels:drinking_glass"),
 | 
			
		||||
	groups = {food_milk_glass = 1, flammable = 3, vessel = 1},
 | 
			
		||||
	groups = {food_milk_glass = 1, flammable = 3, vessel = 1, drink = 1},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
--	type = "shapeless",
 | 
			
		||||
	output = "mobs:glass_milk 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"vessels:drinking_glass", "vessels:drinking_glass",
 | 
			
		||||
		"vessels:drinking_glass", "vessels:drinking_glass",
 | 
			
		||||
		"mobs:bucket_milk"
 | 
			
		||||
		{"vessels:drinking_glass", "vessels:drinking_glass"},
 | 
			
		||||
		{"vessels:drinking_glass", "vessels:drinking_glass"},
 | 
			
		||||
		{"mobs:bucket_milk", ""}
 | 
			
		||||
	},
 | 
			
		||||
	replacements = { {"mobs:bucket_milk", "bucket:bucket_empty"} }
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
--	type = "shapeless",
 | 
			
		||||
	output = "mobs:bucket_milk",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"mobs:glass_milk", "mobs:glass_milk",
 | 
			
		||||
		"mobs:glass_milk", "mobs:glass_milk",
 | 
			
		||||
		"bucket:bucket_empty"
 | 
			
		||||
		{"group:food_milk_glass", "group:food_milk_glass"},
 | 
			
		||||
		{"group:food_milk_glass", "group:food_milk_glass"},
 | 
			
		||||
		{"bucket:bucket_empty", ""}
 | 
			
		||||
	},
 | 
			
		||||
	replacements = { {"mobs:glass_milk", "vessels:drinking_glass 4"} }
 | 
			
		||||
	replacements = {
 | 
			
		||||
		{"group:food_milk_glass", "vessels:drinking_glass 4"}
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -197,7 +204,7 @@ minetest.register_craftitem(":mobs:butter", {
 | 
			
		||||
	description = S("Butter"),
 | 
			
		||||
	inventory_image = "mobs_butter.png",
 | 
			
		||||
	on_use = minetest.item_eat(1),
 | 
			
		||||
	groups = {food_butter = 1, flammable = 2},
 | 
			
		||||
	groups = {food_butter = 1, flammable = 2}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("farming") and farming and farming.mod then
 | 
			
		||||
@@ -237,16 +244,16 @@ minetest.register_node(":mobs:cheeseblock", {
 | 
			
		||||
	description = S("Cheese Block"),
 | 
			
		||||
	tiles = {"mobs_cheeseblock.png"},
 | 
			
		||||
	is_ground_content = false,
 | 
			
		||||
	groups = {crumbly = 3},
 | 
			
		||||
	groups = {oddly_breakable_by_hand = 3},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults()
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "mobs:cheeseblock",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
 | 
			
		||||
		{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
 | 
			
		||||
		{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
 | 
			
		||||
		{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
 | 
			
		||||
		{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
 | 
			
		||||
		{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
default
 | 
			
		||||
mobs
 | 
			
		||||
intllib?
 | 
			
		||||
default?
 | 
			
		||||
lucky_block?
 | 
			
		||||
intllib?
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								goat.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								goat.lua
									
									
									
									
									
								
							@@ -55,7 +55,7 @@ mobs:register_mob("mobs_animal:goat", {
 | 
			
		||||
		punch_start = 120,		punch_end = 150, -- attack
 | 
			
		||||
	},
 | 
			
		||||
	-- follows wheat
 | 
			
		||||
	follow = "farming:wheat",
 | 
			
		||||
	follow = {"farming:wheat"},
 | 
			
		||||
	view_range = 10,
 | 
			
		||||
	-- replace grass/wheat with air (eat)
 | 
			
		||||
	replace_rate = 50,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										51
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								init.lua
									
									
									
									
									
								
							@@ -1,25 +1,44 @@
 | 
			
		||||
 | 
			
		||||
local path = minetest.get_modpath("mobs_animal")
 | 
			
		||||
 | 
			
		||||
-- Load support for intllib.
 | 
			
		||||
local MP = minetest.get_modpath(minetest.get_current_modname())
 | 
			
		||||
local S, NS = dofile(MP.."/intllib.lua")
 | 
			
		||||
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
 | 
			
		||||
 | 
			
		||||
local S = minetest.get_translator and minetest.get_translator("mobs_animal") or
 | 
			
		||||
		dofile(path .. "intllib.lua")
 | 
			
		||||
 | 
			
		||||
mobs.intllib = S
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Check for custom mob spawn file
 | 
			
		||||
local input = io.open(path .. "spawn.lua", "r")
 | 
			
		||||
 | 
			
		||||
if input then
 | 
			
		||||
	mobs.custom_spawn_animal = true
 | 
			
		||||
	input:close()
 | 
			
		||||
	input = nil
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Animals
 | 
			
		||||
dofile(path .. "chicken.lua") -- JKmurray
 | 
			
		||||
dofile(path .. "cow.lua") -- KrupnoPavel
 | 
			
		||||
dofile(path .. "rat.lua") -- PilzAdam
 | 
			
		||||
dofile(path .. "sheep.lua") -- PilzAdam
 | 
			
		||||
dofile(path .. "warthog.lua") -- KrupnoPavel
 | 
			
		||||
dofile(path .. "bee.lua") -- KrupnoPavel
 | 
			
		||||
dofile(path .. "bunny.lua") -- ExeterDad
 | 
			
		||||
dofile(path .. "kitten.lua") -- Jordach/BFD
 | 
			
		||||
dofile(path .. "penguin.lua") -- D00Med
 | 
			
		||||
dofile(path .. "panda.lua") -- AspireMint
 | 
			
		||||
dofile(path .. "goat.lua") -- NALC(sys4 fork MFF)
 | 
			
		||||
 | 
			
		||||
dofile(path .. "/chicken.lua") -- JKmurray
 | 
			
		||||
dofile(path .. "/cow.lua") -- KrupnoPavel
 | 
			
		||||
dofile(path .. "/rat.lua") -- PilzAdam
 | 
			
		||||
dofile(path .. "/sheep.lua") -- PilzAdam
 | 
			
		||||
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") -- NALC(sys4 fork MFF)
 | 
			
		||||
dofile(path .. "/penguin.lua") -- D00Med
 | 
			
		||||
dofile(path .. "/panda.lua") -- AspireMint
 | 
			
		||||
 | 
			
		||||
dofile(path .. "/lucky_block.lua")
 | 
			
		||||
-- Load custom spawning
 | 
			
		||||
if mobs.custom_spawn_animal then
 | 
			
		||||
	dofile(path .. "spawn.lua")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Lucky Blocks
 | 
			
		||||
dofile(path .. "lucky_block.lua")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
print (S("[MOD] Mobs Redo Animals loaded"))
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										46
									
								
								intllib.lua
									
									
									
									
									
								
							
							
						
						
									
										46
									
								
								intllib.lua
									
									
									
									
									
								
							@@ -1,45 +1,3 @@
 | 
			
		||||
-- Support for the old multi-load method
 | 
			
		||||
dofile(minetest.get_modpath("intllib").."/init.lua")
 | 
			
		||||
 | 
			
		||||
-- Fallback functions for when `intllib` is not installed.
 | 
			
		||||
-- Code released under Unlicense <http://unlicense.org>.
 | 
			
		||||
 | 
			
		||||
-- Get the latest version of this file at:
 | 
			
		||||
--   https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
 | 
			
		||||
 | 
			
		||||
local function format(str, ...)
 | 
			
		||||
	local args = { ... }
 | 
			
		||||
	local function repl(escape, open, num, close)
 | 
			
		||||
		if escape == "" then
 | 
			
		||||
			local replacement = tostring(args[tonumber(num)])
 | 
			
		||||
			if open == "" then
 | 
			
		||||
				replacement = replacement..close
 | 
			
		||||
			end
 | 
			
		||||
			return replacement
 | 
			
		||||
		else
 | 
			
		||||
			return "@"..open..num..close
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local gettext, ngettext
 | 
			
		||||
if minetest.get_modpath("intllib") then
 | 
			
		||||
	if intllib.make_gettext_pair then
 | 
			
		||||
		-- New method using gettext.
 | 
			
		||||
		gettext, ngettext = intllib.make_gettext_pair()
 | 
			
		||||
	else
 | 
			
		||||
		-- Old method using text files.
 | 
			
		||||
		gettext = intllib.Getter()
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Fill in missing functions.
 | 
			
		||||
 | 
			
		||||
gettext = gettext or function(msgid, ...)
 | 
			
		||||
	return format(msgid, ...)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
 | 
			
		||||
	return format(n==1 and msgid or msgid_plural, ...)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
return gettext, ngettext
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								kitten.lua
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								kitten.lua
									
									
									
									
									
								
							@@ -53,16 +53,9 @@ stepheight = 1.1,
 | 
			
		||||
		stoodup_end = 0,
 | 
			
		||||
	},
 | 
			
		||||
	follow = {
 | 
			
		||||
		"mobs_animal:rat",
 | 
			
		||||
		"ethereal:fish_raw",
 | 
			
		||||
		"mobs_fish:clownfish",
 | 
			
		||||
		"mobs_fish:tropical",
 | 
			
		||||
		"fishing:clownfish_raw",
 | 
			
		||||
		"fishing:bluewhite_raw",
 | 
			
		||||
		"fishing:exoticfish_raw",
 | 
			
		||||
		"fishing:carp_raw",
 | 
			
		||||
		"fishing:perch_raw",
 | 
			
		||||
		"fishing:catfish_raw",
 | 
			
		||||
		"mobs_animal:rat", "group:food_fish_raw",
 | 
			
		||||
		"mobs_fish:tropical", "xocean:fish_edible",
 | 
			
		||||
		"group:fishraw" -- NALC: Group from fishing mod
 | 
			
		||||
	},
 | 
			
		||||
	view_range = 8,
 | 
			
		||||
 | 
			
		||||
@@ -123,6 +116,7 @@ if minetest.get_modpath("ethereal") then
 | 
			
		||||
	spawn_on = "ethereal:grove_dirt"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:kitten",
 | 
			
		||||
	nodes = {spawn_on},
 | 
			
		||||
@@ -134,6 +128,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 50,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0)
 | 
			
		||||
@@ -162,7 +157,8 @@ minetest.register_craftitem(":mobs:hairball", {
 | 
			
		||||
		local newpos = {x = pos.x + dir.x, y = pos.y + dir.y + 1.5, z = pos.z + dir.z}
 | 
			
		||||
		local item = hairball_items[math.random(1, #hairball_items)]
 | 
			
		||||
 | 
			
		||||
		if item ~= "" then
 | 
			
		||||
		if item ~= ""
 | 
			
		||||
		and minetest.registered_items[item] then
 | 
			
		||||
			minetest.add_item(newpos, {name = item})
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								locale/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								locale/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.de.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=@1 Schaf
 | 
			
		||||
Bee=Biene
 | 
			
		||||
Beehive=Bienenstock
 | 
			
		||||
Black=Schwarzes
 | 
			
		||||
Blue=Blaues
 | 
			
		||||
Brown=Braunes
 | 
			
		||||
Bucket of Milk=Eimer Milch
 | 
			
		||||
Bunny=Häschen
 | 
			
		||||
#Butter=
 | 
			
		||||
Cheese=Käse
 | 
			
		||||
Cheese Block=Käseblock
 | 
			
		||||
Chicken=Huhn
 | 
			
		||||
Chicken Egg=Hühnerei
 | 
			
		||||
Cooked Chicken=Gekochtes Hühnchen
 | 
			
		||||
Cooked Mutton=Gekochtes Hammelfleisch
 | 
			
		||||
Cooked Porkchop=Gekochtes Schweinekotelett
 | 
			
		||||
Cooked Rabbit=Gekochtes Kaninchen
 | 
			
		||||
Cooked Rat=Gekochte Ratte
 | 
			
		||||
Cow=Kuh
 | 
			
		||||
Cow already milked!=Kuh ist bereits gemolken!
 | 
			
		||||
Cyan=Cyan
 | 
			
		||||
Dark Green=Dunkelgrünes
 | 
			
		||||
Dark Grey=Dunkelgraues
 | 
			
		||||
Feather=Feder
 | 
			
		||||
Fried Egg=Spiegelei
 | 
			
		||||
#Glass of Milk=
 | 
			
		||||
Green=Grünes
 | 
			
		||||
Grey=Graues
 | 
			
		||||
#Hairball=
 | 
			
		||||
Honey=Honig
 | 
			
		||||
Honey Block=Honigblock
 | 
			
		||||
Kitten=Kätzchen
 | 
			
		||||
Magenta=Magenta
 | 
			
		||||
Orange=Oranges
 | 
			
		||||
#Panda=
 | 
			
		||||
Penguin=Pinguin
 | 
			
		||||
Pink=Pinkes
 | 
			
		||||
Rabbit Hide=Kaninchenfell
 | 
			
		||||
Rat=Ratte
 | 
			
		||||
Raw Chicken=Rohes Hühnchen
 | 
			
		||||
Raw Mutton=Rohes Hammelfleisch
 | 
			
		||||
Raw Porkchop=Rohes Schweinekotelett
 | 
			
		||||
Raw Rabbit=Rohes Kaninchen
 | 
			
		||||
Red=Rotes
 | 
			
		||||
Violet=Violettes
 | 
			
		||||
Warthog=Warzenschwein
 | 
			
		||||
White=Weißes
 | 
			
		||||
Yellow=Gelbes
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.en.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.en.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
#@1 Sheep=
 | 
			
		||||
#Bee=
 | 
			
		||||
#Beehive=
 | 
			
		||||
#Black=
 | 
			
		||||
#Blue=
 | 
			
		||||
#Brown=
 | 
			
		||||
#Bucket of Milk=
 | 
			
		||||
#Bunny=
 | 
			
		||||
#Butter=
 | 
			
		||||
#Cheese=
 | 
			
		||||
#Cheese Block=
 | 
			
		||||
#Chicken=
 | 
			
		||||
#Chicken Egg=
 | 
			
		||||
#Cooked Chicken=
 | 
			
		||||
#Cooked Mutton=
 | 
			
		||||
#Cooked Porkchop=
 | 
			
		||||
#Cooked Rabbit=
 | 
			
		||||
#Cooked Rat=
 | 
			
		||||
#Cow=
 | 
			
		||||
#Cow already milked!=
 | 
			
		||||
#Cyan=
 | 
			
		||||
#Dark Green=
 | 
			
		||||
#Dark Grey=
 | 
			
		||||
#Feather=
 | 
			
		||||
#Fried Egg=
 | 
			
		||||
#Glass of Milk=
 | 
			
		||||
#Green=
 | 
			
		||||
#Grey=
 | 
			
		||||
#Hairball=
 | 
			
		||||
#Honey=
 | 
			
		||||
#Honey Block=
 | 
			
		||||
#Kitten=
 | 
			
		||||
#Magenta=
 | 
			
		||||
#Orange=
 | 
			
		||||
#Panda=
 | 
			
		||||
#Penguin=
 | 
			
		||||
#Pink=
 | 
			
		||||
#Rabbit Hide=
 | 
			
		||||
#Rat=
 | 
			
		||||
#Raw Chicken=
 | 
			
		||||
#Raw Mutton=
 | 
			
		||||
#Raw Porkchop=
 | 
			
		||||
#Raw Rabbit=
 | 
			
		||||
#Red=
 | 
			
		||||
#Violet=
 | 
			
		||||
#Warthog=
 | 
			
		||||
#White=
 | 
			
		||||
#Yellow=
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.fr.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=Mouton @1
 | 
			
		||||
Bee=Abeille
 | 
			
		||||
Beehive=Ruche
 | 
			
		||||
Black=noir
 | 
			
		||||
Blue=bleu
 | 
			
		||||
Brown=marron
 | 
			
		||||
Bucket of Milk=Seau de lait
 | 
			
		||||
Bunny=Lapin
 | 
			
		||||
Butter=Beurre
 | 
			
		||||
Cheese=Fromage
 | 
			
		||||
Cheese Block=Bloc de fromage
 | 
			
		||||
Chicken=Poule
 | 
			
		||||
Chicken Egg=Œuf
 | 
			
		||||
Cooked Chicken=Poulet cuit
 | 
			
		||||
Cooked Mutton=Mouton cuit
 | 
			
		||||
Cooked Porkchop=Côte de sanglier cuite
 | 
			
		||||
Cooked Rabbit=Lapin cuit
 | 
			
		||||
Cooked Rat=Rat cuit
 | 
			
		||||
Cow=Vache
 | 
			
		||||
Cow already milked!=Vache déjà traite !
 | 
			
		||||
Cyan=cyan
 | 
			
		||||
Dark Green=vert foncé
 | 
			
		||||
Dark Grey=gris foncé
 | 
			
		||||
Feather=Plume
 | 
			
		||||
Fried Egg=Œuf au plat
 | 
			
		||||
Glass of Milk=Verre de lait
 | 
			
		||||
Green=vert
 | 
			
		||||
Grey=gris
 | 
			
		||||
Hairball=Boule de poils
 | 
			
		||||
Honey=Miel
 | 
			
		||||
Honey Block=Bloc de miel
 | 
			
		||||
Kitten=Chaton
 | 
			
		||||
Magenta=magenta
 | 
			
		||||
Orange=orange
 | 
			
		||||
Panda=Panda
 | 
			
		||||
Penguin=Manchot
 | 
			
		||||
Pink=rose
 | 
			
		||||
Rabbit Hide=Fourrure de lapin
 | 
			
		||||
Rat=Rat
 | 
			
		||||
Raw Chicken=Poulet cru
 | 
			
		||||
Raw Mutton=Mouton cru
 | 
			
		||||
Raw Porkchop=Côte de sanglier crue
 | 
			
		||||
Raw Rabbit=Lapin cru
 | 
			
		||||
Red=rouge
 | 
			
		||||
Violet=violet
 | 
			
		||||
Warthog=Sanglier
 | 
			
		||||
White=blanc
 | 
			
		||||
Yellow=jaune
 | 
			
		||||
[MOD] Mobs Redo Animals loaded=[MOD] Animaux «Mobs Redo» chargés
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.it.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=Pecora @1
 | 
			
		||||
Bee=Ape
 | 
			
		||||
Beehive=Favo
 | 
			
		||||
Black=Nera
 | 
			
		||||
Blue=Blu
 | 
			
		||||
Brown=Marrone
 | 
			
		||||
Bucket of Milk=Secchio di latte
 | 
			
		||||
Bunny=Coniglietto
 | 
			
		||||
#Butter=
 | 
			
		||||
Cheese=Formaggio
 | 
			
		||||
Cheese Block=Blocco di formaggio
 | 
			
		||||
Chicken=Gallina
 | 
			
		||||
Chicken Egg=Uovo di gallina
 | 
			
		||||
Cooked Chicken=Pollo cotto
 | 
			
		||||
Cooked Mutton=Montone Cotto
 | 
			
		||||
Cooked Porkchop=Bistecca di maiale cotta
 | 
			
		||||
Cooked Rabbit=Coniglio Cotto
 | 
			
		||||
Cooked Rat=Ratto cotto
 | 
			
		||||
Cow=Mucca
 | 
			
		||||
Cow already milked!=Mucca già munta!
 | 
			
		||||
Cyan=Ciano
 | 
			
		||||
Dark Green=Verde scuro
 | 
			
		||||
Dark Grey=Grigio scuro
 | 
			
		||||
Feather=Piuma
 | 
			
		||||
Fried Egg=Uovo fritto
 | 
			
		||||
#Glass of Milk=
 | 
			
		||||
Green=Verde
 | 
			
		||||
Grey=Grigia
 | 
			
		||||
#Hairball=
 | 
			
		||||
Honey=Miele
 | 
			
		||||
Honey Block=Blocco di miele
 | 
			
		||||
Kitten=Gattino
 | 
			
		||||
Magenta=Magenta
 | 
			
		||||
Orange=Arancione
 | 
			
		||||
#Panda=
 | 
			
		||||
Penguin=Pinguino
 | 
			
		||||
Pink=Rosa
 | 
			
		||||
Rabbit Hide=Pelle di Coniglio
 | 
			
		||||
Rat=Ratto
 | 
			
		||||
Raw Chicken=Pollo crudo
 | 
			
		||||
Raw Mutton=Montone Crudo
 | 
			
		||||
Raw Porkchop=Bistecca di maiale cruda
 | 
			
		||||
Raw Rabbit=Coniglio Crudo
 | 
			
		||||
Red=Rossa
 | 
			
		||||
Violet=Viola
 | 
			
		||||
Warthog=Facocero
 | 
			
		||||
White=Bianca
 | 
			
		||||
Yellow=Gialla
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.ms.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=Biri-biri @1
 | 
			
		||||
Bee=Lebah
 | 
			
		||||
Beehive=Sarang Lebah
 | 
			
		||||
Black=Hitam
 | 
			
		||||
Blue=Biru
 | 
			
		||||
Brown=Perang
 | 
			
		||||
Bucket of Milk=Baldi Susu
 | 
			
		||||
Bunny=Arnab
 | 
			
		||||
#Butter=
 | 
			
		||||
Cheese=Keju
 | 
			
		||||
Cheese Block=Blok Keju
 | 
			
		||||
Chicken=Ayam
 | 
			
		||||
Chicken Egg=Telur Ayam
 | 
			
		||||
Cooked Chicken=Ayam Bakar
 | 
			
		||||
Cooked Mutton=Daging Biri-biri Bakar
 | 
			
		||||
Cooked Porkchop=Daging Babi Bakar
 | 
			
		||||
Cooked Rabbit=Daging Arnab Bakar
 | 
			
		||||
Cooked Rat=Tikus Bakar
 | 
			
		||||
Cow=Lembu
 | 
			
		||||
Cow already milked!=Lembu telah diperah susunya!
 | 
			
		||||
Cyan=Sian
 | 
			
		||||
Dark Green=Hijau Gelap
 | 
			
		||||
Dark Grey=Kelabu Gelap
 | 
			
		||||
Feather=Bulu
 | 
			
		||||
Fried Egg=Telur Goreng
 | 
			
		||||
#Glass of Milk=
 | 
			
		||||
Green=Hijau
 | 
			
		||||
Grey=Kelabu
 | 
			
		||||
#Hairball=
 | 
			
		||||
Honey=Madu
 | 
			
		||||
Honey Block=Blok Madu
 | 
			
		||||
Kitten=Anak Kucing
 | 
			
		||||
Magenta=Merah Lembayung
 | 
			
		||||
Orange=Jingga
 | 
			
		||||
#Panda=
 | 
			
		||||
Penguin=Penguin
 | 
			
		||||
Pink=Merah Jambu
 | 
			
		||||
Rabbit Hide=Belulang Arnab
 | 
			
		||||
Rat=Tikus
 | 
			
		||||
Raw Chicken=Ayam Mentah
 | 
			
		||||
Raw Mutton=Daging Biri-biri Mentah
 | 
			
		||||
Raw Porkchop=Daging Babi Mentah
 | 
			
		||||
Raw Rabbit=Daging Arnab Mentah
 | 
			
		||||
Red=Merah
 | 
			
		||||
Violet=Ungu
 | 
			
		||||
Warthog=Babi Hutan
 | 
			
		||||
White=Putih
 | 
			
		||||
Yellow=Kuning
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										46
									
								
								locale/mobs_animal.pt.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								locale/mobs_animal.pt.tr
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
							
								
								
									
										46
									
								
								locale/mobs_animal.pt_BR.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								locale/mobs_animal.pt_BR.tr
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.ru.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=@1 овца
 | 
			
		||||
Bee=Пчела
 | 
			
		||||
Beehive=Улей
 | 
			
		||||
Black=Черная
 | 
			
		||||
Blue=Синяя
 | 
			
		||||
Brown=Коричневая
 | 
			
		||||
Bucket of Milk=Ведро молока
 | 
			
		||||
Bunny=Кролик
 | 
			
		||||
Butter=Масло
 | 
			
		||||
Cheese=Сыр
 | 
			
		||||
Cheese Block=Блок сыра
 | 
			
		||||
Chicken=Курица
 | 
			
		||||
Chicken Egg=Куриное яйцо
 | 
			
		||||
Cooked Chicken=Приготовленная курятина
 | 
			
		||||
Cooked Mutton=Приготовленная баранина
 | 
			
		||||
Cooked Porkchop=Приготовленные свиные отбивные
 | 
			
		||||
Cooked Rabbit=Приготовленная крольчатина
 | 
			
		||||
Cooked Rat=Приготовленная крыса
 | 
			
		||||
Cow=Корова
 | 
			
		||||
Cow already milked!=Корову уже подоили!
 | 
			
		||||
Cyan=Голубая
 | 
			
		||||
Dark Green=Темно-зеленая
 | 
			
		||||
Dark Grey=Темно-серая
 | 
			
		||||
Feather=Перо
 | 
			
		||||
Fried Egg=Яичница
 | 
			
		||||
Glass of Milk=Стакан молока
 | 
			
		||||
Green=Зеленая
 | 
			
		||||
Grey=Серая
 | 
			
		||||
Hairball=Комочек шерсти
 | 
			
		||||
Honey=Мёд
 | 
			
		||||
Honey Block=Блок мёда
 | 
			
		||||
Kitten=Котенок
 | 
			
		||||
Magenta=Пурпурная
 | 
			
		||||
Orange=Оранжевая
 | 
			
		||||
Panda=Панда
 | 
			
		||||
Penguin=Пингвин
 | 
			
		||||
Pink=Розовая
 | 
			
		||||
Rabbit Hide=Кроличья шкурка
 | 
			
		||||
Rat=Крыса
 | 
			
		||||
Raw Chicken=Сырая курятина
 | 
			
		||||
Raw Mutton=Сырая баранина
 | 
			
		||||
Raw Porkchop=Свиные отбивные
 | 
			
		||||
Raw Rabbit=Сырая крольчатина
 | 
			
		||||
Red=Красная
 | 
			
		||||
Violet=Фиолетовая
 | 
			
		||||
Warthog=Бородавочник
 | 
			
		||||
White=Белая
 | 
			
		||||
Yellow=Желтая
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.tr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.tr.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=@1 Koyun
 | 
			
		||||
Bee=Arı
 | 
			
		||||
Beehive=Arı kovanı
 | 
			
		||||
Black=Siyah
 | 
			
		||||
Blue=Mavi
 | 
			
		||||
Brown=Kahverengi
 | 
			
		||||
Bucket of Milk=Süt kovası
 | 
			
		||||
Bunny=Tavşan
 | 
			
		||||
#Butter=
 | 
			
		||||
Cheese=Peynir
 | 
			
		||||
Cheese Block=Peynir bloğu
 | 
			
		||||
Chicken=Tavuk
 | 
			
		||||
Chicken Egg=Tavuk yumurtası 
 | 
			
		||||
Cooked Chicken=Pişmiş tavuk
 | 
			
		||||
Cooked Mutton=pişmiş kuzu
 | 
			
		||||
Cooked Porkchop=Pişmiş pirzola
 | 
			
		||||
Cooked Rabbit=pişmiş tavşan
 | 
			
		||||
Cooked Rat=Pişmiş sıçan
 | 
			
		||||
Cow=İnek
 | 
			
		||||
Cow already milked!=İnekte süt yok!
 | 
			
		||||
Cyan=Camgöbeği
 | 
			
		||||
Dark Green=Koyu yeşil
 | 
			
		||||
Dark Grey=Koyu gri
 | 
			
		||||
#Feather=
 | 
			
		||||
Fried Egg=Kızarmış yumurta
 | 
			
		||||
#Glass of Milk=
 | 
			
		||||
Green=Yeşil
 | 
			
		||||
Grey=Gri
 | 
			
		||||
#Hairball=
 | 
			
		||||
Honey=Bal
 | 
			
		||||
Honey Block=Bal bloğu
 | 
			
		||||
Kitten=Yavru kedi
 | 
			
		||||
Magenta=Macenta
 | 
			
		||||
Orange=Turuncu
 | 
			
		||||
#Panda=
 | 
			
		||||
#Penguin=
 | 
			
		||||
Pink=Pembe
 | 
			
		||||
Rabbit Hide=tavşan kürkü
 | 
			
		||||
Rat=Sıçan
 | 
			
		||||
Raw Chicken=Çiğ tavuk
 | 
			
		||||
Raw Mutton=çiğ kuzu
 | 
			
		||||
Raw Porkchop=Çiğ pirzola
 | 
			
		||||
Raw Rabbit=çiğ tavşan
 | 
			
		||||
Red=Kırmızı
 | 
			
		||||
Violet=Mor
 | 
			
		||||
Warthog=Domuz
 | 
			
		||||
White=Beyaz
 | 
			
		||||
Yellow=Sarı
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=@1羊
 | 
			
		||||
Bee=蜜蜂
 | 
			
		||||
Beehive=蜂巢
 | 
			
		||||
Black=黑
 | 
			
		||||
Blue=蓝
 | 
			
		||||
Brown=棕
 | 
			
		||||
Bucket of Milk=一桶牛奶
 | 
			
		||||
Bunny=兔子
 | 
			
		||||
Butter=黄油
 | 
			
		||||
Cheese=奶酪
 | 
			
		||||
Cheese Block=奶酪方块
 | 
			
		||||
Chicken=鸡
 | 
			
		||||
Chicken Egg=鸡蛋
 | 
			
		||||
Cooked Chicken=熟鸡肉
 | 
			
		||||
Cooked Mutton=熟羊肉
 | 
			
		||||
Cooked Porkchop=熟猪排
 | 
			
		||||
Cooked Rabbit=熟兔肉
 | 
			
		||||
Cooked Rat=熟老鼠
 | 
			
		||||
Cow=奶牛
 | 
			
		||||
Cow already milked!=奶牛已被挤奶!
 | 
			
		||||
Cyan=青
 | 
			
		||||
Dark Green=暗绿
 | 
			
		||||
Dark Grey=暗灰
 | 
			
		||||
Feather=羽毛
 | 
			
		||||
Fried Egg=煎蛋
 | 
			
		||||
Glass of Milk=一杯牛奶
 | 
			
		||||
Green=绿
 | 
			
		||||
Grey=灰
 | 
			
		||||
Hairball=毛球
 | 
			
		||||
Honey=蜂蜜
 | 
			
		||||
Honey Block=蜂蜜方块
 | 
			
		||||
Kitten=小猫
 | 
			
		||||
Magenta=品红
 | 
			
		||||
Orange=橙
 | 
			
		||||
Panda=熊猫
 | 
			
		||||
Penguin=企鹅
 | 
			
		||||
Pink=粉红
 | 
			
		||||
Rabbit Hide=兔子皮
 | 
			
		||||
Rat=老鼠
 | 
			
		||||
Raw Chicken=生鸡肉
 | 
			
		||||
Raw Mutton=生羊肉
 | 
			
		||||
Raw Porkchop=生猪排
 | 
			
		||||
Raw Rabbit=生兔肉
 | 
			
		||||
Red=红
 | 
			
		||||
Violet=紫
 | 
			
		||||
Warthog=野猪
 | 
			
		||||
White=白
 | 
			
		||||
Yellow=黄
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										50
									
								
								locale/mobs_animal.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								locale/mobs_animal.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
# textdomain:mobs_animal
 | 
			
		||||
@1 Sheep=@1羊
 | 
			
		||||
Bee=蜜蜂
 | 
			
		||||
Beehive=蜂巢
 | 
			
		||||
Black=黑
 | 
			
		||||
Blue=藍
 | 
			
		||||
Brown=棕
 | 
			
		||||
Bucket of Milk=一桶牛奶
 | 
			
		||||
Bunny=兔子
 | 
			
		||||
Butter=黃油
 | 
			
		||||
Cheese=奶酪
 | 
			
		||||
Cheese Block=奶酪方塊
 | 
			
		||||
Chicken=雞
 | 
			
		||||
Chicken Egg=雞蛋
 | 
			
		||||
Cooked Chicken=熟雞肉
 | 
			
		||||
Cooked Mutton=熟羊肉
 | 
			
		||||
Cooked Porkchop=熟豬排
 | 
			
		||||
Cooked Rabbit=熟兔肉
 | 
			
		||||
Cooked Rat=熟老鼠
 | 
			
		||||
Cow=奶牛
 | 
			
		||||
Cow already milked!=奶牛已被擠奶!
 | 
			
		||||
Cyan=青
 | 
			
		||||
Dark Green=暗綠
 | 
			
		||||
Dark Grey=暗灰
 | 
			
		||||
Feather=羽毛
 | 
			
		||||
Fried Egg=煎蛋
 | 
			
		||||
Glass of Milk=一杯牛奶
 | 
			
		||||
Green=綠
 | 
			
		||||
Grey=灰
 | 
			
		||||
Hairball=毛球
 | 
			
		||||
Honey=蜂蜜
 | 
			
		||||
Honey Block=蜂蜜方塊
 | 
			
		||||
Kitten=小貓
 | 
			
		||||
Magenta=品紅
 | 
			
		||||
Orange=橙
 | 
			
		||||
Panda=熊貓
 | 
			
		||||
Penguin=企鵝
 | 
			
		||||
Pink=粉紅
 | 
			
		||||
Rabbit Hide=兔子皮
 | 
			
		||||
Rat=老鼠
 | 
			
		||||
Raw Chicken=生雞肉
 | 
			
		||||
Raw Mutton=生羊肉
 | 
			
		||||
Raw Porkchop=生豬排
 | 
			
		||||
Raw Rabbit=生兔肉
 | 
			
		||||
Red=紅
 | 
			
		||||
Violet=紫
 | 
			
		||||
Warthog=野豬
 | 
			
		||||
White=白
 | 
			
		||||
Yellow=黃
 | 
			
		||||
#[MOD] Mobs Redo Animals loaded=
 | 
			
		||||
							
								
								
									
										116
									
								
								locale/po2tr.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								locale/po2tr.lua
									
									
									
									
									
										Normal file
									
								
							@@ -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()
 | 
			
		||||
							
								
								
									
										199
									
								
								locale/pt.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										199
									
								
								locale/pt.po
									
									
									
									
									
										Normal file
									
								
							@@ -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"
 | 
			
		||||
							
								
								
									
										46
									
								
								locale/pt.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								locale/pt.txt
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
							
								
								
									
										199
									
								
								locale/pt_BR.po
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										199
									
								
								locale/pt_BR.po
									
									
									
									
									
										Normal file
									
								
							@@ -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"
 | 
			
		||||
							
								
								
									
										46
									
								
								locale/pt_BR.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								locale/pt_BR.txt
									
									
									
									
									
										Normal file
									
								
							@@ -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},
 | 
			
		||||
		{"dro", {"mobs:egg"}, 5},
 | 
			
		||||
		{"spw", "mobs:cow", 5},
 | 
			
		||||
		{"dro", {"mobs:bucket_milk"}, 8},
 | 
			
		||||
		{"dro", {"mobs:bucket_milk", "bucket:bucket_water"}, 8},
 | 
			
		||||
		{"spw", "mobs:kitten", 2},
 | 
			
		||||
		{"exp"},
 | 
			
		||||
		{"dro", {"mobs:hairball"}, 3},
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								mod.conf
									
									
									
									
									
								
							@@ -1 +1,4 @@
 | 
			
		||||
name = mobs_animal
 | 
			
		||||
depends = mobs
 | 
			
		||||
optional_depends = default, lucky_block, intllib
 | 
			
		||||
description = Adds farm animals.
 | 
			
		||||
 
 | 
			
		||||
@@ -68,7 +68,7 @@ stepheight = 0.6,
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("ethereal") then
 | 
			
		||||
if minetest.get_modpath("ethereal") and not mobs.custom_spawn_animal then
 | 
			
		||||
 | 
			
		||||
	mobs:spawn({
 | 
			
		||||
		name = "mobs_animal:panda",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								penguin.lua
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								penguin.lua
									
									
									
									
									
								
							@@ -46,16 +46,9 @@ stepheight = 0.6,
 | 
			
		||||
	fly_in = {"default:water_source", "default:water_flowing"},
 | 
			
		||||
	floats = 0,
 | 
			
		||||
	follow = {
 | 
			
		||||
		"ethereal:fish_raw",
 | 
			
		||||
		"mobs_fish:clownfish_set", "mobs_fish:clownfish",
 | 
			
		||||
		"mobs_fish:tropical_set", "mobs_fish:tropical",
 | 
			
		||||
		"fishing:fish_raw",
 | 
			
		||||
		"fishing:clownfish_raw",
 | 
			
		||||
		"fishing:bluewhite_raw",
 | 
			
		||||
		"fishing:exoticfish_raw",
 | 
			
		||||
		"fishing:carp_raw",
 | 
			
		||||
		"fishing:perch_raw",
 | 
			
		||||
		"fishing:catfish_raw",
 | 
			
		||||
		"group:food_fish_raw", "mobs_fish:clownfish", "mobs_fish:tropical",
 | 
			
		||||
		"mobs_fish:clownfish_set", "mobs_fish:tropical_set", "xocean:fish_edible",
 | 
			
		||||
		"group:fishraw" -- Edit from NALC: Group from fishing mod
 | 
			
		||||
	},
 | 
			
		||||
	view_range = 5,
 | 
			
		||||
 | 
			
		||||
@@ -68,7 +61,7 @@ stepheight = 0.6,
 | 
			
		||||
	end,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:penguin",
 | 
			
		||||
	nodes = {"default:snowblock"},
 | 
			
		||||
@@ -79,6 +72,6 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:penguin", S("Penguin"), "mobs_penguin_inv.png")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								rat.lua
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								rat.lua
									
									
									
									
									
								
							@@ -67,6 +67,7 @@ local function rat_spawn(self, pos)
 | 
			
		||||
	self.health = 100
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:rat",
 | 
			
		||||
	nodes = {"default:stone"},
 | 
			
		||||
@@ -77,6 +78,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 0,
 | 
			
		||||
--	on_spawn = rat_spawn,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:rat", S("Rat"), "mobs_rat_inv.png")
 | 
			
		||||
@@ -90,12 +92,12 @@ minetest.register_craftitem(":mobs:rat_cooked", {
 | 
			
		||||
	description = S("Cooked Rat"),
 | 
			
		||||
	inventory_image = "mobs_cooked_rat.png",
 | 
			
		||||
	on_use = minetest.item_eat(3),
 | 
			
		||||
	groups = {food_rat = 1, flammable = 2},
 | 
			
		||||
	groups = {food_rat = 1, flammable = 2}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "cooking",
 | 
			
		||||
	output = "mobs:rat_cooked",
 | 
			
		||||
	recipe = "mobs_animal:rat",
 | 
			
		||||
	cooktime = 5,
 | 
			
		||||
	cooktime = 5
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								sheep.lua
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								sheep.lua
									
									
									
									
									
								
							@@ -64,8 +64,17 @@ for _, col in ipairs(all_colours) do
 | 
			
		||||
			stand_end = 80,
 | 
			
		||||
			walk_start = 81,
 | 
			
		||||
			walk_end = 100,
 | 
			
		||||
 | 
			
		||||
			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_loop = false,
 | 
			
		||||
			die_rotate = true,
 | 
			
		||||
		},
 | 
			
		||||
		follow = {
 | 
			
		||||
			"farming:wheat", "default:grass_1", "farming:barley",
 | 
			
		||||
			"farming:oat", "farming:rye"
 | 
			
		||||
		},
 | 
			
		||||
		follow = {"farming:wheat", "default:grass_1"},
 | 
			
		||||
		view_range = 8,
 | 
			
		||||
		replace_rate = 10,
 | 
			
		||||
		replace_what = {
 | 
			
		||||
@@ -94,7 +103,7 @@ for _, col in ipairs(all_colours) do
 | 
			
		||||
			--are we feeding?
 | 
			
		||||
			if mobs:feed_tame(self, clicker, 8, true, true) then
 | 
			
		||||
 | 
			
		||||
				--if fed 7x grass or wheat then sheep regrows wool
 | 
			
		||||
				--if fed 7 times then sheep regrows wool
 | 
			
		||||
				if self.food and self.food > 6 then
 | 
			
		||||
 | 
			
		||||
					self.gotten = false
 | 
			
		||||
@@ -204,6 +213,7 @@ mobs:register_egg("mobs_animal:sheep_"..col[1], S("@1 Sheep", col[2]), "wool_"..
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:sheep_white",
 | 
			
		||||
	nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
 | 
			
		||||
@@ -215,6 +225,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mobs:alias_mob("mobs:sheep", "mobs_animal:sheep_white") -- compatibility
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										195
									
								
								spawn_example.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										195
									
								
								spawn_example.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,195 @@
 | 
			
		||||
 | 
			
		||||
--[[ Spawn Template, defaults to values shown if line not provided
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
 | 
			
		||||
	name = "",
 | 
			
		||||
 | 
			
		||||
		- Name of mob, must be provided e.g. "mymod:my_mob"
 | 
			
		||||
 | 
			
		||||
	nodes = {"group:soil, "group:stone"},
 | 
			
		||||
 | 
			
		||||
		- Nodes to spawn on top of.
 | 
			
		||||
 | 
			
		||||
	neighbors = {"air"},
 | 
			
		||||
 | 
			
		||||
		- Nodes to spawn beside.
 | 
			
		||||
 | 
			
		||||
	min_light = 0,
 | 
			
		||||
 | 
			
		||||
		- Minimum light level.
 | 
			
		||||
 | 
			
		||||
	max_light = 15,
 | 
			
		||||
 | 
			
		||||
		- Maximum light level, 15 is sunlight only.
 | 
			
		||||
 | 
			
		||||
	interval = 30,
 | 
			
		||||
 | 
			
		||||
		- Spawn interval in seconds.
 | 
			
		||||
 | 
			
		||||
	chance = 5000,
 | 
			
		||||
 | 
			
		||||
		- Spawn chance, 1 in every 5000 nodes.
 | 
			
		||||
 | 
			
		||||
	active_object_count = 1,
 | 
			
		||||
 | 
			
		||||
		- Active mobs of this type in area.
 | 
			
		||||
 | 
			
		||||
	min_height = -31000,
 | 
			
		||||
 | 
			
		||||
		- Minimum height level.
 | 
			
		||||
 | 
			
		||||
	max_height = 31000,
 | 
			
		||||
 | 
			
		||||
		- Maximum height level.
 | 
			
		||||
 | 
			
		||||
	day_toggle = nil,
 | 
			
		||||
 | 
			
		||||
		- Daytime toggle, true to spawn during day, false for night, nil for both
 | 
			
		||||
 | 
			
		||||
	on_spawn = nil,
 | 
			
		||||
 | 
			
		||||
		- On spawn function to run when mob spawns in world
 | 
			
		||||
 | 
			
		||||
	on_map_load = nil,
 | 
			
		||||
 | 
			
		||||
		- On map load, when true mob only spawns in newly generated map areas
 | 
			
		||||
})
 | 
			
		||||
]]--
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Bee
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:bee",
 | 
			
		||||
	nodes = {"group:flower"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 7000,
 | 
			
		||||
	min_height = 3,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Bunny
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:bunny",
 | 
			
		||||
	nodes = {"default:dirt_with_grass"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 5,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Chicken
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:chicken",
 | 
			
		||||
	nodes = {"default:dirt_with_grass"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 5,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Cow
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:cow",
 | 
			
		||||
	nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 5,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Kitten
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:kitten",
 | 
			
		||||
	nodes = {"default:dirt_with_grass"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 10000,
 | 
			
		||||
	min_height = 5,
 | 
			
		||||
	max_height = 50,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Panda
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:panda",
 | 
			
		||||
	nodes = {"ethereal:bamboo_dirt"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 10,
 | 
			
		||||
	max_height = 80,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Penguin
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:penguin",
 | 
			
		||||
	nodes = {"default:snowblock"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 20000,
 | 
			
		||||
	min_height = 0,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Rat
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:rat",
 | 
			
		||||
	nodes = {"default:stone"},
 | 
			
		||||
	min_light = 3,
 | 
			
		||||
	max_light = 9,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	max_height = 0,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Sheep
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:sheep_white",
 | 
			
		||||
	nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
 | 
			
		||||
	neighbors = {"group:grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 0,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Warthog
 | 
			
		||||
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:pumba",
 | 
			
		||||
	nodes = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"},
 | 
			
		||||
	neighbors = {"group:dry_grass"},
 | 
			
		||||
	min_light = 14,
 | 
			
		||||
	interval = 60,
 | 
			
		||||
	chance = 8000,
 | 
			
		||||
	min_height = 0,
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								textures/mobs_chicken_white.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								textures/mobs_chicken_white.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 103 B  | 
@@ -51,6 +51,12 @@ mobs:register_mob("mobs_animal:pumba", {
 | 
			
		||||
		walk_end = 100,
 | 
			
		||||
		punch_start = 70,
 | 
			
		||||
		punch_end = 100,
 | 
			
		||||
 | 
			
		||||
		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_loop = false,
 | 
			
		||||
		die_rotate = true,
 | 
			
		||||
	},
 | 
			
		||||
	on_rightclick = function(self, clicker)
 | 
			
		||||
 | 
			
		||||
@@ -73,6 +79,7 @@ if minetest.get_modpath("ethereal") then
 | 
			
		||||
	spawn_by = {"flowers:mushroom_brown", "flowers:mushroom_red"}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if not mobs.custom_spawn_animal then
 | 
			
		||||
mobs:spawn({
 | 
			
		||||
	name = "mobs_animal:pumba",
 | 
			
		||||
	nodes = spawn_on,
 | 
			
		||||
@@ -84,7 +91,7 @@ mobs:spawn({
 | 
			
		||||
	max_height = 200,
 | 
			
		||||
	day_toggle = true,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
mobs:register_egg("mobs_animal:pumba", S("Warthog"), "mobs_pumba_inv.png")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user