2014-12-22 11:27:08 +00:00
## Letters: A mod for Minetest!
2014-12-22 12:19:39 +00:00
The majority of this code was taken (and altered significantly) from Calinou's [Moreblocks mod ](https://forum.minetest.net/viewtopic.php?t=509 ). It is designed to add letters in all different materials. Code is licensed under the zlib license, textures under the CC BY-SA license.
2014-12-22 11:27:08 +00:00
2014-12-22 12:19:39 +00:00
The Letter Cutter textures use parts of the default wood and tree textures made by Blockmen and Cisoun respectively.
2014-12-22 12:57:47 +00:00
####Allowing letters to be made from nodes:
2014-12-22 11:27:08 +00:00
Use this code to allow blocks to have letters registered from them:
```lua
letters.register_letters(modname, subname, from_node, description, tiles)
```
Modname is the mod that the node belongs to.
Subname is the actual name of the node.
From_nobe is the node that the letters will be crafted from (Usually modname:subname).
Description is the description of the node.
Tiles defines the image that will be used with the node.
For example, if I wanted to register marble, from the mod darkage, this is the code I would use:
```lua
letters.register_letters("darkage", "marble", "darkage:marble", "Marble", "darkage_marble.png")
```
You will need to add letters as a dependency to your mod, or include the registrations is the code:
```lua
if minetest.get_modpath("letters") then
letters.register_letters("darkage", "marble", "darkage:marble", "Marble", "darkage_marble.png")
--ect ect...
end
```
2014-12-22 12:57:47 +00:00
Most of the default nodes have already been registered, and I have added/will add mods I like, as an optional dependancy.
2014-12-22 12:19:39 +00:00
2014-12-22 12:57:47 +00:00
*This mod is fairly stable, and shouldn't crash, but be warned that it is in its early stages of development, and so things may change considerably*
2014-12-22 13:23:58 +00:00
**Screenshots!**
![Screenshot ](https://cdn.mediacru.sh/4/4BvHPHl70F9F.png )
![Another screenshot! ](https://cdn.mediacru.sh/t/tuOkRXixvFHY.png )