Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using "Attack" to damage entities - MalmoEnv #1024

Open
jerem-yp opened this issue Dec 9, 2024 · 0 comments
Open

Using "Attack" to damage entities - MalmoEnv #1024

jerem-yp opened this issue Dec 9, 2024 · 0 comments

Comments

@jerem-yp
Copy link

jerem-yp commented Dec 9, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant