Skip to content

Using "Attack" to damage entities - MalmoEnv #1024

@jerem-yp

Description

@jerem-yp

I'm having trouble issuing commands that deal damage to entities while using the malmoenv package. Specifically, if I use the "attack" command, my agent will be able to break the block in front of it. But, the agent cannot deal damage to a mob standing right in front of it - I see the "sword cooldown" animation, but the entity is not damaged/does not take damage. However, if I manually left-click on the window, I'm able to deal damage.

My XML for the zombie:

<DrawEntity type="Zombie" x="0" y="4" z="0"/>

My XML for the agent's commands (I'm only testing attack and turn at the moment):

            <DiscreteMovementCommands>
                <ModifierList type="allow-list">
                    <command>attack</command>
                    <command>turn</command>
                </ModifierList>
            </DiscreteMovementCommands>

Is this a setup issue, or is this a known issue with the "attack" ? If it is a setup issue, could you point me in the direction to fix this? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions