name: Bug report
about: Report an issue of the mod crashing or behaving in an unexpected way
title: ''
labels: bug
assignees: ''
Describe the bug
When using the inventory_operations.drop method in a robot lua script, the items dropped always drop in the north direction regardless of the direction parameter given to the method.
To Reproduce
Steps to reproduce the behavior:
- Singleplayer
- write a script test.lua with the following contents on a robot:
#!/usr/bin/lua
d = require("devices")
inv = d:find("inventory_operations")
inv:drop(1, "front")
inv:drop(1, "up")
inv:drop(1, "down")
- make the script executable with
chmod +x test.lua
- Ensure there are at least 3 items in the first inventory slot of the robot
- run the script
./test.lua
Log files
Please post your log files (client and server) to gist and link them here.
If it's a crash report, please also upload the crash report to gist and link it here.
Expected behavior
An items should drop in the front, upwards, and downwards in relation to the direction the robot is facing
Screenshots

Kind of hard to tell, but the robot is facing west in this. All items are dropped to the north despite the different directions given to the drop method in the test script.
Versions (please complete the following information):
- Minecraft: 1.20.1
- Forge: 47.4.10
- oc2: 2.2.13
Additional context
Add any other context about the problem here.
name: Bug report
about: Report an issue of the mod crashing or behaving in an unexpected way
title: ''
labels: bug
assignees: ''
Describe the bug
When using the inventory_operations.drop method in a robot lua script, the items dropped always drop in the north direction regardless of the
directionparameter given to the method.To Reproduce
Steps to reproduce the behavior:
chmod +x test.lua./test.luaLog files
Please post your log files (client and server) to gist and link them here.
If it's a crash report, please also upload the crash report to gist and link it here.
Expected behavior
An items should drop in the front, upwards, and downwards in relation to the direction the robot is facing
Screenshots

Kind of hard to tell, but the robot is facing west in this. All items are dropped to the north despite the different directions given to the drop method in the test script.
Versions (please complete the following information):
Additional context
Add any other context about the problem here.