Page 1 of 1

A Basic Example Mod for those new to lua

PostPosted: Mon May 13, 2013 23:36
by Dan Duncombe
This is a basic mod with very simple coding introducing the method of adding blocks to Minetest. It is a WTFPL so you can look at the code and change it, although there is only about 5 lines of it. It basically adds a nice decorative block that when crafted, yields 2.
The recipe can be found in the init.lua. You can use the image however you want. Again, this mod is only here to demonstrate a working addition of a block that is easy to understand by complete beginners (I hope!).
Download at https://www.dropbox.com/s/aab2mbkhj5wuhvo/deco%20block.zip

The added block with proof that it glows.
Image

PostPosted: Mon May 27, 2013 02:08
by Mossmanikin
Thanks for posting this.
Started to try modding yesterday and it might be useful.

PostPosted: Wed Jun 12, 2013 17:38
by DeepGaze
thankyou this is just what i need!! thankyou
please could you make a tutorial for idiots (so not just me:) )