OpenComputers icon indicating copy to clipboard operation
OpenComputers copied to clipboard

Add ability to robots to obtain nearby experience orbs

Open zeng-github01 opened this issue 1 year ago • 3 comments

Temporary fix #3289

Existing bug: The format of settings.conf is wrong and cannot be parsed correctly, which will cause a crash.

A temporary fix has been made to this bug. Looks like a past patch oversight caused the crash, so it needs to be reviewed

zeng-github01 avatar Apr 11 '24 12:04 zeng-github01

It looks like the cause of the crash is two missing configuration entries, something the past patch missed.

zeng-github01 avatar Apr 12 '24 05:04 zeng-github01

@asiekierka After investigation, Minecraft does not fire any events when a transaction is triggered. Only some experience orbs will be spawned This problem cannot be fixed through ordinary solutions in the current version.

The only solution might be to add a custom event trigger to “useRecipe” through a mixin or ASM

A feasible method is to imitate this submission and add a logic to absorb experience balls in Trade.scala when the complateTrade judgment is completed, but there may be a lag.

Or just like this PR, giving players the power to customize

zeng-github01 avatar Apr 13 '24 07:04 zeng-github01

@asiekierka The patch has been tested and meets the expected results

zeng-github01 avatar Apr 15 '24 04:04 zeng-github01