<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Mission xmlns="http://ProjectMalmo.microsoft.com">
    <About>
        <Summary>$(ENV_NAME)</Summary>
    </About>

    <ModSettings>
        <MsPerTick>50</MsPerTick>
    </ModSettings>

    <ServerSection>
        <ServerInitialConditions>
            <Time>
                <StartTime>6000</StartTime>
                <AllowPassageOfTime>true</AllowPassageOfTime>
            </Time>
            <AllowSpawning>true</AllowSpawning>

        </ServerInitialConditions>
        <ServerHandlers>
            <DefaultWorldGenerator forceReset="true"/>
            <ServerQuitFromTimeUp timeLimitMs="900000" description="out_of_time"/>
            <ServerQuitWhenAnyAgentFinishes/>
        </ServerHandlers>
    </ServerSection>

    <AgentSection mode="Survival">
        <Name>MineRLAgent</Name>
        <AgentStart/>
        <AgentHandlers>
            <!--  Observations     -->
            <VideoProducer want_depth="false">
                <Width>64</Width>
                <Height>64</Height>
            </VideoProducer>
            <FileBasedPerformanceProducer/>
            <ObservationFromFullInventory flat="false"/>
            <ObservationFromFullStats/>
            <ObservationFromEquippedItem/>

            <!--  Commands   -->
            <HumanLevelCommands/>
            <CameraCommands/>
            <SimpleCraftCommands/>
            <!--      Provided as demonstration - don't use these for determining action space  ordering    -->
            <!--        <Item type="minecraft:stick"/>-->
            <!--        <Item type="minecraft:planks"/>-->
            <!--        <Item type="minecraft:torch"/>-->
            <NearbyCraftCommands/>
            <!--        <Item type="minecraft:wooden_axe"/>-->
            <!--        <Item type="minecraft:wooden_pickaxe"/>-->
            <!--        <Item type="minecraft:stone_axe"/>-->
            <!--        <Item type="minecraft:stone_pickaxe"/>-->
            <!--        <Item type="minecraft:iron_pickaxe"/>-->
            <NearbySmeltCommands/>
            <!--        <Item type="minecraft:iron_ingot"/>-->
            <!--        <Item type="minecraft:coal"/>-->
            <PlaceCommands/>
            <!--          <Item type="minecraft:crafting_table"/>-->
            <!--          <Item type="minecraft:furnace"/>-->
            <!--          <Item type="minecraft:torch"/>-->
            <EquipCommands/>
            <!--        <Item type="minecraft:stone_pickaxe"/>-->
            <!--        <Item type="minecraft:iron_pickaxe"/>-->
            <PauseCommand/>

            <!--  Rewards   -->
            <RewardForMissionEnd>
                <Reward description="out_of_time" reward="0"/>
            </RewardForMissionEnd>
            <RewardForPossessingItem sparse="true" excludeLoops="true">
                <Item amount="1" reward="1" type="log"/>
                <Item amount="1" reward="2" type="planks"/>
                <Item amount="1" reward="4" type="stick"/>
                <Item amount="1" reward="4" type="crafting_table"/>
                <Item amount="1" reward="8" type="wooden_pickaxe"/>
                <Item amount="1" reward="16" type="cobblestone"/>
                <Item amount="1" reward="32" type="furnace"/>
                <Item amount="1" reward="32" type="stone_pickaxe"/>
                <Item amount="1" reward="64" type="iron_ore"/>
                <Item amount="1" reward="128" type="iron_ingot"/>
                <Item amount="1" reward="256" type="iron_pickaxe"/>
                <Item amount="1" reward="1024" type="diamond"/>
            </RewardForPossessingItem>
            <AgentQuitFromPossessingItem>
                <Item type="diamond" amount="1"/>
            </AgentQuitFromPossessingItem>
        </AgentHandlers>
    </AgentSection>
</Mission>
