summaryrefslogtreecommitdiff
path: root/corn.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
commitcbf7bee93af73f0c5fc3098a81149fb3b884b91b (patch)
tree28bd29fe3933cf94a5d41a5a1488ddc3887d9ed4 /corn.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'corn.lua')
-rw-r--r--corn.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/corn.lua b/corn.lua
index 4370757..f178a48 100644
--- a/corn.lua
+++ b/corn.lua
@@ -4,9 +4,11 @@
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
+local S = farming.intllib
+
-- corn
minetest.register_craftitem("farming:corn", {
- description = "Corn",
+ description = S("Corn"),
inventory_image = "farming_corn.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1")
@@ -16,7 +18,7 @@ minetest.register_craftitem("farming:corn", {
-- corn on the cob (texture by TenPlus1)
minetest.register_craftitem("farming:corn_cob", {
- description = "Corn on the Cob",
+ description = S("Corn on the Cob"),
inventory_image = "farming_corn_cob.png",
on_use = minetest.item_eat(5),
})
@@ -30,7 +32,7 @@ minetest.register_craft({
-- ethanol (thanks to JKMurray for this idea)
minetest.register_craftitem("farming:bottle_ethanol", {
- description = "Bottle of Ethanol",
+ description = S("Bottle of Ethanol"),
inventory_image = "farming_bottle_ethanol.png",
})