OpenComputers icon indicating copy to clipboard operation
OpenComputers copied to clipboard

1.16.5 - robot.swing() doesn't work

Open bobozee opened this issue 1 year ago • 2 comments

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.

bobozee avatar Jun 06 '24 15:06 bobozee

Forge 36.2.42 here, also dont work

krzakpl avatar Apr 11 '25 21:04 krzakpl

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

ff66theone avatar Apr 13 '25 20:04 ff66theone