diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-02-08 13:05:58 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-02-08 13:05:58 +0100 |
commit | ff48cc394b415d94d128e348bb8998dbd6ec86d4 (patch) | |
tree | 9798104ceaca8b20f94304559ad0fdc76facf3ae | |
parent | 7d17707c0fb2630b7a5d2a4c8a70580e52e1ca18 (diff) | |
download | ehlphabet-ff48cc394b415d94d128e348bb8998dbd6ec86d4.tar.gz ehlphabet-ff48cc394b415d94d128e348bb8998dbd6ec86d4.tar.bz2 ehlphabet-ff48cc394b415d94d128e348bb8998dbd6ec86d4.zip |
Added abjphabet alias capability
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | init.lua | 21 |
2 files changed, 26 insertions, 0 deletions
@@ -8,3 +8,8 @@ http://www.asciitable.com/ Textures were created using Title Wave font by Digital Graphic Labs Textures are licensed under CC-BY-SA 3.0 + + +20180124 +patched by Och_Noe to use it as replacement for abjphabet +(create aliases) @@ -1,5 +1,12 @@ local characters = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0","!","#","$","%","&","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@"}
+-- Alias (Och_Noe 20180124) +local compat_characters = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0"} -- for reference, unused +-- + +-- Alias (Och_Noe 20180124) +create_alias = true +-- for _, name in ipairs(characters) do --do this for all characters in the list
local byte = string.byte(name)
@@ -14,8 +21,17 @@ for _, name in ipairs(characters) do --do this for all characters in the list groups = {cracky=3,not_in_creative_inventory=1,not_in_crafting_guide=1}
})
minetest.register_craft ({ type="shapeless", output = "ehlphabet:block", recipe = {"ehlphabet:"..byte} })
+ if name == "!" then create_alias = false end + +-- Alias (Och_Noe 20180124) + if create_alias then + minetest.register_alias("abjphabet:"..name:lower(),"ehlphabet:"..byte) + end +-- + end
+ minetest.register_node("ehlphabet:machine", {
description = "Letter Machine",
tiles = {"ehlphabet_machine_top.png", "ehlphabet_machine_bottom.png", "ehlphabet_machine_side.png",
@@ -72,6 +88,11 @@ minetest.register_node("ehlphabet:machine", { end
})
+ +-- Alias (Och_Noe 20180124) +minetest.register_alias("abjphabet:machine","ehlphabet:machine") +-- + minetest.register_node("ehlphabet:block", {
description = "Ehlphabet Block (blank)",
tiles = {"ehlphabet_000.png"},
|