Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Fri Oct 10, 2014 13:13
by LoseTheGame
Hi guys,
This is probably something pretty simple but I can't find how to do it. If I used print("hi") it will print it in the command console. How do I print messages in the actual game window like it does when you use in-game commands?
Cheers,
Jonty
Re: Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Fri Oct 10, 2014 13:23
by Krock
Welcome to Minetest.
Here's a simple code example of adding a new chat command
dev.minetest.netThere is an useful file, called "
lua_api.txt" and you can find it in minetest_folder\doc\
Re: Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Fri Oct 10, 2014 13:39
by LoseTheGame
Thanks for replying so quickly Krock and thanks for pointing out the lua_api file :)
Re: Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Fri Oct 10, 2014 14:25
by LoseTheGame
That's working fine now thanks. I'm a maths teacher and I've created a mod for my students where they have to build cuboids of a given volume :)
Re: Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Sun Oct 12, 2014 03:42
by hoodedice
LoseTheGame wrote:That's working fine now thanks. I'm a maths teacher and I've created a mod for my students where they have to build cuboids of a given volume :)
Wow, that sounds like a really cool mod. Mind putting that up on github?
Re: Print "in game" messages
![Post Post](./styles/mt_v1/imageset/icon_post_target.gif)
Posted:
Sun Oct 12, 2014 21:14
by twoelk
LoseTheGame wrote:...
I'm a maths teacher and I've created a mod for my students where they have to build cuboids of a given volume :)
Cool !
Could you add a little something about using Minetest as a tool for teaching to this thread?
Minetest Could Be An Educational Toolso that others may gain more insight on how Minetest could be used in classes. You may also find links to other usefull mods for use with pupils in that thread.