Integrated Tunnels

Integrated Tunnels

79M Downloads

Add ability to change player simulator interaction type

Minerofmillions opened this issue · 4 comments

commented

Issue type:

  • ➕ Feature request

Short description:

Some mods (Abyssalcraft is where it came up) have books that you can open, but need to use them to activate a block. Right now, that just makes the player simulator open the book (as far as I can tell without extensive testing) and not use the book on the block. ExtraUtilities' mechanical user allows you to change how it interacts with the target block, allowing for automation that ITu doesn't.

commented

Thanks for the suggestion!

commented

The player simulator should simulate interactions in the same way players interact with things, including activating blocks.
So if that doesn't work, that sounds like a bug.
Could you explain the exact issue some more?

commented

I'm not familiar with the AbyssalCraft mod. However these are just some examples of what could be going wrong and how to approach it:

If the difference between opening the book and using it on a block is just you holding your Crouch keybind for instance, then you can change the player simulator's associated shift-click behaviour to make it interact with the block.

If the book needs mode switching (pressing a keybind to change state) prior to using it on the block, you'll need to set the mode on the book correctly first, before using it with the simulator.

If the book differentiates the two actions by itself, depending on what block you're looking at, then you need to make sure that the simulator is properly facing the block in question, to get it to work.

Let us know if none of these explain your situation or help solve it.

commented

I was the one to found it with help of @Minerofmillions.
My goal was to automate charging Abyssalcraft (AC) item for storing energy using only ID as I needed it to read the info.

Now the important info about the item itself as it has several usages and behaviors based on situation:

  1. Clicking without crouching pointing to "non interactive blocks" (tried air, grass, wall, tree) opens it as book and mod manual.
  2. Clicking without crouching pointing to "interactive blocks" except AC (chests, ID variable store, ...) seems to interact like empty hand (open chest, open variable store, ...)
  3. Clicking without crouching pointing to AC "interactive blocks" (energy pedestal, ritual altar) will insert the item inside
  4. Clicking with crouching pointing to anything except AC Ritual altar seems to do nothing.
  5. Clicking with crouching pointing to AC Ritual altar will start the ritual.

From my knowledge only difference is what block you points at when you right-click and if you are crouching.

When we tried to make my setup work, while player simulator was facing the energy pedestal.
Image
We tried setting the interaction face, different combination of clicks (left / right hand, continuous, sneak, ...), ticks/operation timing in case my logic was inserting and extracting the item immediately but nothing worked. Only visible attempts at interaction were some particles from the pedestal (not happening without the simulator working)

Testing ExU2 mechanical user with setting "Activate block with item" works fine, after @Minerofmillions small investigation it seems that for some reason it stops trying different interaction types before getting to "activa block with item", probably opening the book?