diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-11 11:14:08 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-11 11:14:08 +0100 |
commit | 09a6592f69bffc77c2ad873893323d759496a48a (patch) | |
tree | dd7ae36d9f1c81ccaa1e1442b1ea67bbb14d7e56 /rat.lua | |
parent | 23ffc0d0da463ec75de50a1e2b16da2075d4b2b7 (diff) |
Added intllib support (en/de)
Diffstat (limited to 'rat.lua')
-rw-r--r-- | rat.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,6 @@ +local S = mobs.intllib + -- Rat by PilzAdam mobs:register_mob("mobs_animal:rat", { @@ -57,14 +59,14 @@ mobs:register_mob("mobs_animal:rat", { mobs:register_spawn("mobs_animal:rat", {"default:stone"}, 20, 5, 15000, 2, 0) -mobs:register_egg("mobs_animal:rat", "Rat", "mobs_rat_inventory.png", 0) +mobs:register_egg("mobs_animal:rat", S("Rat"), "mobs_rat_inventory.png", 0) -- compatibility mobs:alias_mob("mobs:rat", "mobs_animal:rat") -- cooked rat, yummy! minetest.register_craftitem(":mobs:rat_cooked", { - description = "Cooked Rat", + description = S("Cooked Rat"), inventory_image = "mobs_cooked_rat.png", on_use = minetest.item_eat(3), }) |