The first CraftBian 2 version is now ready for some testing! I have made an image ready for Raspberry Pi 2 and 3, which is two separate images for now. I’m making an installation script, so CraftBian 2 should be installable on any device (at least in theory), which will be made available later

Be advised though, that this image IS an ALPHA. Stuff is most certainly broken (hence the testing part), and there will be a lot of features missing from CraftBian 1 .

What this image includes

  • Ubuntu 16.04 linux release for Raspberry Pi
  • Laravel 5.5.28
  • CraftBian v2 ALPHA 1 which includes
    • Functionality to create, edit and delete servers
    • Send server commands through the web interface
    • Start/Stop the server
    • Power management of the Raspberry Pi
    • Limited settings for CraftBian

CraftBian 2 is not a continuation of CraftBian 1.. Its a complete do-over. A rewrite, utilizing the Laravel framework. This also means that many features from CraftBian 1 will not be present in this version of CraftBian 2. Those include:

  • Backup feature
  • Port forwarding feature
  • Auto server restart, and power scheduling
  • User management along with user role control
  • Automated server broadcast over LAN
  • etc.

All those above features are planned to be included later, along with new features.

My goal of this first ALPHA is mainly to see how well this idea works with the Laravel framework.

If you want in on the testing, don’t hesitate to contact me on my email .. Remember, the more testing and feedback i get on this version, the faster i can get new versions out to you, which includes the public release!

In this post I will be explaining some of the changes in CraftBian 2, codewise. These changes has mainly happened because i now utilize Laravel, so this is both notes to my self but might also be useful to others


Laravel uses the MVC design pattern, which CraftBian v1.x did not. In CraftBian v1.x i used my “own” design pattern, with a ViewHandler that generated HTML so somewhat still separated from the View, but not completely. Laravel changes all that so that its now more distinctly separated hence the MVC: Model, View, Controller. Now in the view a templating engine called Blade is used, which gets its variables passed from the Controller. This structures the code much better, and most importantly – makes the code much easy to maintain. Furthermore Laravel provides loads of helper features which makes it easier to do Logging, Localization and even showing messages to the user. All features which CraftBian v1.x was missing very much


In CraftBian v1.x i simply didn’t do localization, which meant that all strings was typed in directly where needed. Laravel uses localization files like the below one

And when needing a specific translation, you call it out via the __() helper function, which takes the filename as input followed by the key needed like so


Logging is also a feature which i would have appreciated back in CraftBian v1.x, mainly because it would be much easier to debug when CraftBians users were having trouble with something, which i needed to assist on. Laravel makes this very easy. An example below of logging a simple information is shown:

As you can see its as simple as calling the static method info inside the Log class. This methods first argument would be a simple titile describing what has happened, and the next parameter is an array containing contextual and relevant info, but it is optional. There are other methods besides info or error, which you can find more info about here .

The log file containing all this is stored in storage/logs/laravel.log

Messages to the user (Flash messages)

CraftBian v1.x missed a lot of feedback to the user, when they did something inside the interface, being everything from saving a file for a Minecraft server, or setting up a backup schedule. In Laravel this is so easy to do with Flash messages:

This is mostly notes to my self, but others might find it useful / interesting  . It also gives you a slight insight in the development of CraftBian 2

I have more things i would like to cover, like the Model structure and how Object relational mapping works in Laravel, which i also get to utilize in CraftBian 2, because it now uses SQLite to store its settings instead of JSON as in CraftBian v1.x.


Heard of my latest project CraftBian ? Its a web interface I’ve been working on and off on, for the last 3 months for administrating Minecraft Servers running on Raspberry Pi. And now its done! Well the interface it self and image is done and ready, but i just need to get some legal stuff in place before i can release it. Which is (hopefully) the least difficult part of it all. So stay tuned! For more details on what it can do go here.

Skærmbillede 2014-12-29 11.30.16

To make a task of mine easier, i made this small utility in C#. It just points out which files contains what you tell it to search for, and where in the file.

All you need to do is specify the root path of where to search, and what to search for. The tool will then run through each file and in all subfolders (recursively), and list all the occurrences it finds of the specified string or piece of text, and in which files it finds it, wand where in the file it finds it.

Link to page

I’ve been working on some templates for this site on pages that contains downloads which is now live. I have done this to streamline all my downlaods to “work in the same way”.

The new design is simply a box to the right in pages that hosts an application/mod/tool. In the box, you will find the points of interest when talking about software downloads, like download link, link to documentation, newest version number and so fourth.

So this is my first attempt at a mod. Basicly i only made this as a way to get into forge coding. That being said i also wanted to create something that could fix a thing that has bothered me for a long time : Villager Trades.. Those horrid offers they give you.. Useless stuff for insane prices. It has never made sense to me why a flint and steel, that you can make your self without any material in like 10 mins, should cost something that you can spend hours on trying to find.! And this is where this mod should come in handy.

EnchantmentTrades is a very small mod that only has one purpose: To let villagers trade enchanted books for your precious emeralds at a higher rate. The offers aint cheap though, but i also wanted some balance in the mod.

The pricing of the enchanted books is divided into 5 price tiers coresponding to the levels of enchantment the book offer.

Level 1 => Cost from 5 – 19 Emeralds
Level 2 => Cost from 8 – 32 Emeralds
Level 3 => Cost from 11 – 45 Emeralds
Level 4 => Cost from 14 – 58 Emeralds
Level 5 => Cost from 17 – 64 Emeralds
Level 1 High value enchantments => Cost from 45 – 64 Emeralds (Infinity, Silktouch.. Configurable)

The variable prices mean that you not only have to find a villager that will offer you the book you search for. You can also find villagers that sell your wanted book cheaper than the other. The hunt is on!

The mod is made for Minecraft 1.7.10, and can be downloaded here

I’ve just released a quick update that fixes some of the bugs that you guys have mentioned. Im about to create video tutorial on how to use the tool also. Mod Pack Creator should automaticly ask you if it should update it self if you launch it. If not just use the Check for updates menu button in the program.

Mod Pack Creator version has been released. It includes a bunch of new features, such as LiteLoader support and a new profile generator, for the vanilla/original Minecraft Launcher ( a much requested feature ).

Mod Pack Installer also got updated to be able to handle the new features of course, and then i updated the Updater tool (yeah i know, sounds a little retarded).

The reason for the update on updater was because back when i programmed that part, i hardcoded the urls into the application. A very bad choice i know, especially when you then go ahead and get a new domain. But that is now dynamic instead. Also since i still have the old domain some time yet, i the old updater is still working, and should still grab the new version automaticly. Most of all this update featured a lot of clean up on the code of Mod Pack Creator. Since its been quite some time since my last review on that part, i have learned a lot, which Mod Pack Creator should get part in too.

Next up is cleaning up the code in Mod Pack Installer. The code in there is quite a mess, but works ofcourse. Also next up is more customization i hope 🙂