#VS2017 – Definition of #Minecraft missions in Xml format #ProjectMalmo

Hi!

In yesterday’s post I wrote on how to create a mission in Minecraft using code. Now, if we need to create a world with special characteristics, one of the options we can consider is to define these options in a mission definition file, in XML format.

The definition scheme of the mission is quite broad, however, we can start with some basic attributes. For example, the definition of the terrain. For this we use the <FlatWorldGenerator /> element and in the generatorString attribute, we define some attributes to create a world in Minecraft.

There are pages such as Superflat Preset Generator, that allow us to create these definitions, for example, let’s use the definition shown in the following image

 

I01

And in a few seconds we will be dead, since the 1st level that this definition creates is a floor of LAVA.

I0

If we change the layers of our floor so that the lava is in the lower level

I1

We can see that the world is more player friendly. Another important point is that as in the definition I have added the ability to have lakes, when the world is created, lakes will be added randomly in it.
In the following image we can see how after digging a bit we started to see the defined layers and also the random lakes in the landscape

I2

At the end of the post I will leave the definition file, and in future posts I will explain how to load it and how to define attributes such as the name of the agent (Valentino), the name of the mission, etc.

I3

Sample Xml Mission Definition code

Greetings @ Toronto

El Bruno

References

 

Advertisements

4 thoughts on “#VS2017 – Definition of #Minecraft missions in Xml format #ProjectMalmo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s