{"id":470,"date":"2018-02-20T06:11:15","date_gmt":"2018-02-20T06:11:15","guid":{"rendered":"https:\/\/www.triptera.com.au\/wordpress\/?p=470"},"modified":"2018-03-13T00:58:29","modified_gmt":"2018-03-13T00:58:29","slug":"minetest-server-install","status":"publish","type":"post","link":"https:\/\/www.triptera.com.au\/wordpress\/2018\/02\/20\/minetest-server-install\/","title":{"rendered":"Minetest server install"},"content":{"rendered":"<p>If you want to practice at home building Minetest structures with python programs, you will need to install Minetest server with its mods. Before we start, make sure you have completed the <a href=\"https:\/\/www.triptera.com.au\/wordpress\/2018\/02\/05\/minetest-client-install\/\">Minetest client install<\/a>.<\/p>\n<p>The steps to configure the server are:<\/p>\n<ol>\n<li>Install <a href=\"https:\/\/git-scm.com\/\">git<\/a><\/li>\n<li>Install mods. <code>irc, irc_commands, irc_builder, signs_lib<\/code><\/li>\n<li>Configure IRC<\/li>\n<\/ol>\n<h2>Git<\/h2>\n<p>Windows users will need to download the latest from <a href=\"https:\/\/git-scm.com\/\">https:\/\/git-scm.com\/<\/a> and install. This will also install Git-Bash which is a command line shell similar to those on Mac and Linux.<\/p>\n<p>Linux and Mac users should already have git installed. To test, type the following in the Terminal:<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">git --version<\/pre>\n<p>If it is not installed it will give an error message saying &#8220;command not found&#8221;. Mac users can download the software from the above site or install it using brew as they did with minetest.<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">brew install git # Mac<\/pre>\n<p>Linux users can install using one of the following if it is not already installed.<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">apt install git # Ubuntu, Debian<\/pre>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">yum install git # Fedora, Centos, Red Hat<\/pre>\n<h2>Luasocket<\/h2>\n<p>The irc mod for minetest requires luasocket. This is difficult to install on windows so I have built a 64 bit version of minetest with irc mod and luasocket already built in. It can be downloaded from <a href=\"http:\/\/www.triptera.com.au\/download\/minetest-0.5.0-6cfd699b-irc-win64.zip\">minetest-0.5.0-6cfd699b-irc-win64.zip<\/a>.<\/p>\n<p>On Mac, install luasocket using brew and luarocks.<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">brew install lua51<\/pre>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">luarocks-5.1 install luasocket<\/pre>\n<p>On Ubuntu install luasocket using apt and luarocks.<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">apt install luarocks<\/pre>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">luarocks install luasocket<\/pre>\n<h2>Minetest mods<\/h2>\n<p>The following commands are to be typed into Git-Bash (Windows) or Terminal (Mac, Linux). Change directory to the minetest mods directory. If the directory doesn&#8217;t exist you may have to create it.<\/p>\n<p>Windows 64 bit<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\ncd Documents\/minetest-0.5.0-6cfd699b-irc-win64\/mods\r\n<\/pre>\n<p>Mac<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\ncd Library\/Application\\ Support\/minetest\/mods\r\ngit clone --recursive https:\/\/github.com\/minetest-mods\/irc.git\r\n<\/pre>\n<p>Linux<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\ncd .minetest\/mods\r\ngit clone --recursive https:\/\/github.com\/minetest-mods\/irc.git\r\n<\/pre>\n<p>Windows \/ Mac \/ Linux<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/ShadowNinja\/minetest-irc_commands.git\r\ngit clone https:\/\/github.com\/minetest-mods\/signs_lib.git\r\ngit clone https:\/\/github.com\/timcu\/irc_builder.git\r\nmv minetest-irc_commands irc_commands\r\n<\/pre>\n<h2>Configure mods and IRC<\/h2>\n<p>Every Minetest world in which you want to use these mods needs to have them enabled.<\/p>\n<ol>\n<li>Run Minetest.<\/li>\n<li>Select [Settings] tab, then [Advanced Settings] button in bottom left<\/li>\n<li>Expand: + Server \/ Singleplayer + Security<\/li>\n<li>[Edit] secure.trusted+mods. type in <code>irc<\/code><\/li>\n<li>Expand: + Mods + irc + Basic<\/li>\n<li>[Edit] Bot nickname. For example: <code>mtserver<\/code><\/li>\n<li>[Edit] IRC server. I like Rizon which has server: <code>irc.rizon.net<\/code><\/li>\n<li>[Edit] Channel to join. Choose a unique channel . eg <code>##minetest3214<\/code><\/li>\n<li>Port number can be 6667 and Auto-connect enabled. Channels starting with ## are generally temporary channels. Remember these settings to use in your python program. Make sure your IRC server allows several connections from the same IP address.<\/li>\n<li>From the [Local Game] tab, select your world and click on [Configure]<\/li>\n<li>Select mod on the right and click the &#8220;enabled&#8221; check box above for each of the four<\/li>\n<li>Click [Save] button to return to [Local Game] tab<\/li>\n<li>Type in a password in green password field and click [Host Game]<\/li>\n<li>Users who wish to build structures from python will need privilege irc_builder. After they have logged in grant them this privilege by typing <code>\/grant <i>username<\/i> irc_builder<\/code><\/li>\n<\/ol>\n<h2>Program in Python 3<\/h2>\n<p>Now you can start to write programs in Python which will build structures in Minetest. Remember to install ircbuilder python module in your python virtual environment so that your program can communicate with IRC and hence with Minetest. You can do this in PyCharm Edu from Settings (Windows) or Preferences (Mac) &gt; Project &gt; Project Interpreter &gt; + (and type in ircbuilder).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to practice at home building Minetest structures with python programs, you will need to install Minetest server with its mods. Before we start, make sure you have completed the Minetest client install. The steps to configure the server are: Install git Install mods. irc, irc_commands, irc_builder, signs_lib Configure IRC Git Windows users [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[13,16],"tags":[],"class_list":["post-470","post","type-post","status-publish","format-standard","hentry","category-coderdojo","category-minetest"],"_links":{"self":[{"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":11,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/posts\/470\/revisions\/646"}],"wp:attachment":[{"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.triptera.com.au\/wordpress\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}