Page 1 of 1

Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 00:13
by basil60
Hi
I put my hand up to do an IT immersion with some primary school kids. I'm also a noob with Minetest.

I figure this could be a good way to introduce some simple programming concepts in a familiar environment for them.

I've started a server with school use in mind.

Can anyone suggest some good intro tutorials for coding (in game would be ideal initially I think) - and provide links?

So far I've looked at the Digilines LCD - but I'm sure there's more I could do with that too.

Any advice would be welcome?

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 00:18
by kaadmy
Here's a good tutorial on mod creation: http://rubenwardy.com/minetest_modding_book/
Development wiki: http://dev.minetest.net/Main_Page
And, if you want to do serious modding, see here for a (hopefully)complete API reference: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 00:20
by kaadmy
One of the best pieces of advice I would probably give: The documentation is not the greatest in any way, and if you can't figure something out, ask.

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 02:20
by MineYoshi
kaadmy i think in really you are right rubenwardy modding book is very complete with many stuff about moddin code and some good info

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 14:51
by kaadmy
I use the lua_api.txt for pretty much everything.
That has the complete API reference, I think.

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 14:59
by rubenwardy
lua_api.txt is supposed to be a complete and accurate description to officially supported parts of the Lua API. However, some things may be missing. If it's missing, it's probably not in my book, but it may be on the dev wiki. If not, then you'll have to resort to reading the C++ code or asking someone to, unfortunately. :(

Re: Noob Programming Tutorials

PostPosted: Thu Oct 01, 2015 19:41
by kaadmy
I don't know if this belongs here, but I found out a problem in the API.
The lua_api.txt says ObjectRefs have a method called get_inventory(), but the inventory isn't available unless it's a Player-only entity, which is annoying, because get_inventory should return an InvRef? Nope.

Re: Noob Programming Tutorials

PostPosted: Fri Oct 02, 2015 01:41
by twoelk
Updated the Mods:Learning page on the Minetest Wiki a little.