summaryrefslogtreecommitdiff
path: root/chicken.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-06-11 11:14:08 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-06-11 11:14:08 +0100
commit09a6592f69bffc77c2ad873893323d759496a48a (patch)
treedd7ae36d9f1c81ccaa1e1442b1ea67bbb14d7e56 /chicken.lua
parent23ffc0d0da463ec75de50a1e2b16da2075d4b2b7 (diff)
Added intllib support (en/de)
Diffstat (limited to 'chicken.lua')
-rw-r--r--chicken.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/chicken.lua b/chicken.lua
index 0d6bab4..0f429ed 100644
--- a/chicken.lua
+++ b/chicken.lua
@@ -1,4 +1,6 @@
+local S = mobs.intllib
+
-- Chicken by JK Murray
mobs:register_mob("mobs_animal:chicken", {
@@ -79,7 +81,7 @@ mobs:register_mob("mobs_animal:chicken", {
mobs:register_spawn("mobs_animal:chicken",
{"default:dirt_with_grass", "ethereal:bamboo_dirt"}, 20, 10, 15000, 1, 31000, true)
-mobs:register_egg("mobs_animal:chicken", "Chicken", "mobs_chicken_inv.png", 0)
+mobs:register_egg("mobs_animal:chicken", S("Chicken"), "mobs_chicken_inv.png", 0)
-- compatibility
mobs:alias_mob("mobs:chicken", "mobs_animal:chicken")
@@ -199,7 +201,7 @@ end
-- egg
minetest.register_node(":mobs:egg", {
- description = "Chicken Egg",
+ description = S("Chicken Egg"),
tiles = {"mobs_chicken_egg.png"},
inventory_image = "mobs_chicken_egg.png",
visual_scale = 0.7,
@@ -224,7 +226,7 @@ minetest.register_node(":mobs:egg", {
-- fried egg
minetest.register_craftitem(":mobs:chicken_egg_fried", {
-description = "Fried Egg",
+description = S("Fried Egg"),
inventory_image = "mobs_chicken_egg_fried.png",
on_use = minetest.item_eat(2),
})
@@ -237,14 +239,14 @@ minetest.register_craft({
-- raw chicken
minetest.register_craftitem(":mobs:chicken_raw", {
-description = "Raw Chicken",
+description = S("Raw Chicken"),
inventory_image = "mobs_chicken_raw.png",
on_use = minetest.item_eat(2),
})
-- cooked chicken
minetest.register_craftitem(":mobs:chicken_cooked", {
-description = "Cooked Chicken",
+description = S("Cooked Chicken"),
inventory_image = "mobs_chicken_cooked.png",
on_use = minetest.item_eat(6),
})