Skip to content

1.16.5 - robot.swing() doesn't work #3719

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

Open
bobozee opened this issue Jun 6, 2024 · 2 comments
Open

1.16.5 - robot.swing() doesn't work #3719

bobozee opened this issue Jun 6, 2024 · 2 comments

Comments

@bobozee
Copy link

bobozee commented Jun 6, 2024

Problem: Calling robot.swing() will always return false, no matter energy level, equipped tool, selected item or block in front of the robot.

Steps to reproduce:

  1. Create a fresh installation of minecraft 1.16.5 with forge 36.2.24 and run it with java 8
  2. Place a robot, place a block in front of it and give it an appropriate tool, run lua and then robot.swing().
  3. The robot returns false no matter what.

No matter if called through the lua interpreter or through a standalone program, robot.swing() never works.

@krzakpl
Copy link

krzakpl commented Apr 11, 2025

Forge 36.2.42 here, also dont work

@ff66theone
Copy link
Contributor

Isn't that function designed to swing an axe/sword to inflict damage to entities ?

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

3 participants