Minecraft Server

Some progress screenshots from my private Minecraft Server:


My friend’s House

My other friend’s “House”. I love use of the multiple layers of building blocks in the wall. Ahem.

My house

Our farm and some towers

The river

Overview of our town’s center.

Groovy and Tomcat, Pt5 – Bringing it together

For the final part in this miniseries I’ll create a small web application which brings together everything discussed so far. We’ll be using a Java Servlet, a Groovy Servlet and Groovyscripts to bring you the ultimate mix of all things Groovy that aren’t GRails.

What does it do?
It counts the visits you make and adds them to either the javacounter or the groovycounter. There is also a small groovyscript resetting the counter.




<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <p>Calls made:</p>
 <td><c:out value="${javacounter}" /></td>
 <td><c:out value="${groovycounter}" /></td>


request.session.setAttribute("javacounter", 0)
request.session.setAttribute("groovycounter", 0)


Java Servlet

public class JavaCounter extends HttpServlet {

 protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
 Object countObject = req.getSession().getAttribute("javacounter");

 int count = 0;

 if ( countObject != null ) {
 count = (Integer) countObject;

 req.getSession().setAttribute("javacounter", count+1);


Groovy Servlet

class GroovyCounter extends HttpServlet {

 protected void doGet (HttpServletRequest req, HttpServletResponse resp) {
 def countObject = req.session.getAttribute("groovycounter")

 def count = 0

 if ( countObject != null ) {
 count = (Integer) countObject

 req.session.setAttribute("groovycounter", count+1)


And that’s the end of this series. The code can be checked out at:¬†https://bitbucket.org/mymilkedeek/tutorials/src

Ludum Dare 24 [02] 14.30 PM Second commit and new idea

So, I didn’t go with the mouse cursor thing. Too meh. Decided on a farm simulator. You start with a few crops and some money. You can grow crops, sell crops and breed crops. At the end of turn 99, the game ends and your money is your score.

The cool thing is that you’ll be able to enter your own dna code. Basically letting you be a genetic engineer. The goal is to find the dna code which gives you the best crop concerning marketprice, seed number and growtime.

At this point I just finished crop breeding. The next steps are:

- user inventory (grown crops, seeds)
- marketplace

In the far future:

- crop/seed detail view
- user dna code (comes at a price)
- crop placement


So, yes, I have some work to do.


Ludum Dare 24 [01] 11.00 AM First commit

The theme is Evolution.

Wow, it actually won this time. I didn’t brainstorm on any idea for this them because, well yeah, it never wins. So, after about an hour I got to writing some concept code in Groovy. Threw it out, started over. Threw that out as well. And then I went back to my original thought: do something with the mouse.

The idea is to have the mouse do actions and stuff, not sure on what exactly, and from there, you can upgrade your mouse. Eventually your mouse will have the arms of a bodybuilder. I’m not sure how I’ll show the upgrades (if I’ll show them at all). The main idea here is that I’ll be learning about mouse interfacing and collision detection.

Screenshot time!


Ok, that’s lame. The mouse pointer doesn’t show…

Anyways, my code repository!