summaryrefslogtreecommitdiff
path: root/warthog.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 /warthog.lua
parent23ffc0d0da463ec75de50a1e2b16da2075d4b2b7 (diff)
Added intllib support (en/de)
Diffstat (limited to 'warthog.lua')
-rw-r--r--warthog.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/warthog.lua b/warthog.lua
index 043cb42..aa62db2 100644
--- a/warthog.lua
+++ b/warthog.lua
@@ -1,4 +1,6 @@
+local S = mobs.intllib
+
-- Warthog by KrupnoPavel
mobs:register_mob("mobs_animal:pumba", {
@@ -56,21 +58,21 @@ mobs:register_mob("mobs_animal:pumba", {
mobs:register_spawn("mobs_animal:pumba",
{"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 1, 31000, true)
-mobs:register_egg("mobs_animal:pumba", "Warthog", "wool_pink.png", 1)
+mobs:register_egg("mobs_animal:pumba", S("Warthog"), "wool_pink.png", 1)
-- compatibility
mobs:alias_mob("mobs:pumba", "mobs_animal:pumba")
-- raw porkchop
minetest.register_craftitem(":mobs:pork_raw", {
- description = "Raw Porkchop",
+ description = S("Raw Porkchop"),
inventory_image = "mobs_pork_raw.png",
on_use = minetest.item_eat(4),
})
-- cooked porkchop
minetest.register_craftitem(":mobs:pork_cooked", {
- description = "Cooked Porkchop",
+ description = S("Cooked Porkchop"),
inventory_image = "mobs_pork_cooked.png",
on_use = minetest.item_eat(8),
})