Added abjphabet alias capability
parent
7d17707c0f
commit
ff48cc394b
|
@ -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)
|
||||
|
|
21
init.lua
21
init.lua
|
@ -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"},
|
||||
|
|
Loading…
Reference in New Issue