From 09a6592f69bffc77c2ad873893323d759496a48a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 11 Jun 2016 11:14:08 +0100 Subject: Added intllib support (en/de) --- bee.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bee.lua') diff --git a/bee.lua b/bee.lua index ee4e99e..b64cdd1 100644 --- a/bee.lua +++ b/bee.lua @@ -1,4 +1,6 @@ +local S = mobs.intllib + -- Bee by KrupnoPavel mobs:register_mob("mobs_animal:bee", { @@ -41,21 +43,21 @@ mobs:register_mob("mobs_animal:bee", { mobs:register_spawn("mobs_animal:bee", {"group:flower"}, 20, 10, 9000, 1, 31000, true) -mobs:register_egg("mobs_animal:bee", "Bee", "mobs_bee_inv.png", 0) +mobs:register_egg("mobs_animal:bee", S("Bee"), "mobs_bee_inv.png", 0) -- compatibility mobs:alias_mob("mobs:bee", "mobs_animal:bee") -- honey minetest.register_craftitem(":mobs:honey", { - description = "Honey", + description = S("Honey"), inventory_image = "mobs_honey_inv.png", on_use = minetest.item_eat(6), }) -- beehive (when placed spawns bee) minetest.register_node(":mobs:beehive", { - description = "Beehive", + description = S("Beehive"), drawtype = "plantlike", visual_scale = 1.0, tiles = {"mobs_beehive.png"}, @@ -126,7 +128,7 @@ minetest.register_craft({ -- honey block minetest.register_node(":mobs:honey_block", { - description = "Honey Block", + description = S("Honey Block"), tiles = {"mobs_honey_block.png"}, groups = {snappy = 3, flammable = 2}, sounds = default.node_sound_dirt_defaults(), -- cgit v1.2.3