#VS2017 – #Minecraft missions options in Xml format #ProjectMalmo

Hi!

In this post I will explain some of the configurations and options we can define in the mission files. The sample file is at the end of the post.

  • Line 21 defines the name of the Agent
  • The <AgentStart /> element defines the initial position of the agent.

The following image shows how to define a high value on the Y axis,
because our agent dies a few seconds later

 

2017 11 14 Malmo 02

Another interesting element is [ServerSection // ServerInitialCondition] where we can define the climate of the mod (line 12). The supported values ​​are normal, clear, rain and thunder.

My advice is to dedicate some time to understand Mission definition schema (see references) and know a little about the options offered by Minecraft.

For example, in the section [Mission // ServerSection // ServerInitialConditions // Time // StartTime] it is possible to define the time of the day in which the mission will start.

The possible values ​​are measured based on this table

 

  • 0 = dawn
  • 6000 = noon
  • 18000 = midnight
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Mission xmlns="http://ProjectMalmo.microsoft.com" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:schemaLocation="http://ProjectMalmo.microsoft.com Mission.xsd">
<About>
<Summary>El Bruno Sample Mission from Xml definition</Summary>
</About>
<ServerSection>
<ServerInitialConditions>
<Time>
<StartTime>1000</StartTime>
<AllowPassageOfTime>false</AllowPassageOfTime>
</Time>
<Weather>clear</Weather>
</ServerInitialConditions>
<ServerHandlers>
<FlatWorldGenerator generatorString="3;1*minecraft:lava,1*minecraft:bedrock,7*minecraft:dirt,1*minecraft:ice,1*minecraft:grass;2;mineshaft(chance=0.01),lake"/>
<ServerQuitFromTimeUp description="" timeLimitMs="10000"/>
<ServerQuitWhenAnyAgentFinishes description=""/>
</ServerHandlers>
</ServerSection>
<AgentSection mode="Survival">
<Name>Valentino</Name>
<AgentStart>
<Placement pitch="0" x="0.5" y="227.0" yaw="0" z="0.5"/>
</AgentStart>
<AgentHandlers>
<ObservationFromFullStats/>
<VideoProducer want_depth="true">
<Width>640</Width>
<Height>480</Height>
</VideoProducer>
<ObservationFromGrid>
<Grid name="floor3x3">
<min x="-1" y="-1" z="-1"/>
<max x="1" y="-1" z="1"/>
</Grid>
</ObservationFromGrid>
<ObservationFromRay/>
<ObservationFromNearbyEntities>
<Range name="NearbyEntities"
xrange="10"
yrange="10"
zrange="1"
update_frequency="1"/>
</ObservationFromNearbyEntities>
<ContinuousMovementCommands turnSpeedDegs="180"/>
</AgentHandlers>
</AgentSection>
</Mission>

Sample Project en GitHub link

Greetings @ Toronto

El Bruno

References

 

2 thoughts on “#VS2017 – #Minecraft missions options 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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.