summaryrefslogtreecommitdiff
path: root/sheep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'sheep.lua')
-rw-r--r--sheep.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/sheep.lua b/sheep.lua
index 209d074..37b9157 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -1,20 +1,22 @@
+local S = mobs.intllib
+
local all_colours = {
- {"black", "Black", "#000000b0"},
- {"blue", "Blue", "#015dbb70"},
- {"brown", "Brown", "#663300a0"},
- {"cyan", "Cyan", "#01ffd870"},
- {"dark_green", "Dark Green", "#005b0770"},
- {"dark_grey", "Dark Grey", "#303030b0"},
- {"green", "Green", "#61ff0170"},
- {"grey", "Grey", "#5b5b5bb0"},
- {"magenta", "Magenta", "#ff05bb70"},
- {"orange", "Orange", "#ff840170"},
- {"pink", "Pink", "#ff65b570"},
- {"red", "Red", "#ff0000a0"},
- {"violet", "Violet", "#2000c970"},
- {"white", "White", "#abababc0"},
- {"yellow", "Yellow", "#e3ff0070"},
+ {"black", S("Black"), "#000000b0"},
+ {"blue", S("Blue"), "#015dbb70"},
+ {"brown", S("Brown"), "#663300a0"},
+ {"cyan", S("Cyan"), "#01ffd870"},
+ {"dark_green", S("Dark Green"), "#005b0770"},
+ {"dark_grey", S("Dark Grey"), "#303030b0"},
+ {"green", S("Green"), "#61ff0170"},
+ {"grey", S("Grey"), "#5b5b5bb0"},
+ {"magenta", S("Magenta"), "#ff05bb70"},
+ {"orange", S("Orange"), "#ff840170"},
+ {"pink", S("Pink"), "#ff65b570"},
+ {"red", S("Red"), "#ff0000a0"},
+ {"violet", S("Violet"), "#2000c970"},
+ {"white", S("White"), "#abababc0"},
+ {"yellow", S("Yellow"), "#e3ff0070"},
}
-- Sheep by PilzAdam, texture converted to minetest by AMMOnym from Summerfield pack
@@ -168,7 +170,7 @@ for _, col in pairs(all_colours) do
end
})
- mobs:register_egg("mobs_animal:sheep_"..col[1], col[2] .. " Sheep", "wool_"..col[1]..".png", 1)
+ mobs:register_egg("mobs_animal:sheep_"..col[1], col[2] .. " " .. S("Sheep"), "wool_"..col[1]..".png", 1)
-- compatibility
mobs:alias_mob("mobs:sheep_" .. col[1], "mobs_animal:sheep_" .. col[1])