diff options
author | Och Noe <och_noe@forksworld.de> | 2019-03-01 19:55:30 +0100 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2019-03-01 19:55:30 +0100 |
commit | 9ec2fed4c0fb4723b8b446a01701544a7b843594 (patch) | |
tree | 4af5b2741569007054dbd4ab82bff1c5a5c02d5d /init.lua | |
parent | c9a5f2931a150e6d2f76a70470646bb915cf2e99 (diff) | |
download | ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.tar.gz ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.tar.bz2 ehlphabet-9ec2fed4c0fb4723b8b446a01701544a7b843594.zip |
added greek letters and changed textures to 64 pixels
adapted gen.js for the texture size change
textures for 16px and 32px are also provided
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -13,6 +13,14 @@ local cyrillic_chars = { "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь",
"Э", "Ю", "Я"
}
+local greek_chars = {
+ "Α", "Β", "Γ", "Δ", "Ε", "Ζ", "Η", "Θ", "Ι", "Κ", "Λ", "Μ", "Ν", "Ξ", "Ο",
+ "Π", "Ρ", "Σ", "Τ", "Υ", "Φ", "Χ", "Ψ", "Ω"
+}
+local additional_chars = {
+ "猫"
+}
+
local characters = {}
ehlphabet = {}
@@ -31,7 +39,8 @@ end local function is_multibyte(ch)
local byte = ch:byte()
- return (195 == byte) or (208 == byte) or (209 == byte)
+ -- return (195 == byte) or (208 == byte) or (209 == byte)
+ return (byte > 191)
end
table_merge(characters, base_chars)
@@ -39,6 +48,8 @@ table_merge(characters, digits) table_merge(characters, special_chars)
table_merge(characters, german_chars)
table_merge(characters, cyrillic_chars)
+table_merge(characters, greek_chars)
+table_merge(characters, additional_chars)
local create_alias = true
@@ -197,4 +208,16 @@ minetest.register_craft({ type = "shapeless"
})
+--
+minetest.register_craft({
+ output = "ehlphabet:231140 4",
+ recipe = {
+ {"", "", ""},
+ {"ehlphabet:78", "", ""},
+ {"ehlphabet:69", "ehlphabet:75", "ehlphabet:79"}
+ }
+})
+
+
+
-- print(S("[MOD] Elphabet is loaded"))
|