A Basic Example Mod for those new to lua

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

A Basic Example Mod for those new to lua

by Dan Duncombe » Mon May 13, 2013 23:36

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
Last edited by Dan Duncombe on Wed Jun 12, 2013 20:00, edited 1 time in total.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
Mossmanikin
Member
 
Posts: 599
Joined: Sun May 19, 2013 16:26

by Mossmanikin » Mon May 27, 2013 02:08

Thanks for posting this.
Started to try modding yesterday and it might be useful.

Noob 4 life!
My stuff
 

User avatar
DeepGaze
Member
 
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze

by DeepGaze » Wed Jun 12, 2013 17:38

thankyou this is just what i need!! thankyou
please could you make a tutorial for idiots (so not just me:) )
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 20 guests

cron