Fake Action Utils
Functions
Interacts with the block at the gives blockpos with the currently held item. performs a check whether that block is in the specified range first. Returns true when the block is clicked, and false when it is out of range and the click is aborted.
Interacts with the block at the gives blockpos with the specified item or slot. Attempts to use the specified item, if not found or specified the specified slot, if not specified the current held item. Performs a check whether that block is in the specified range first.
Attempts to swap to and click the item containing given name in the hotbar. The same action as on a manual click is performed. so this will prioritise to interact with things instead of using the item ability. returns true if successful, false otherwise.
Stages an etherwarp fake action to the specified block pos. Returns false as well as sends a chat message if etherwarp not possible. Checks the center of all 6 sides of the block for visibility.
Stages an etherwarp fake action to the specified block pos for the given start vec which is assumed to be the players coordinates (at feet level). The top center of the block will be targeted. It will not check whether the target can be seen.
Interacts with the entity with the given id by sending the interaction package.
Interacts with the given entity by sending the interaction package.
Do not use for armorstands.
Swaps out the first item found that matches the given name with the corresponding worn armor piece.
Swaps the item in sourceSlot to the targetSlot in your hotbar.
Looks for the specified item in your inventory queues to and swaps it to the specified target slot.
Stages an etherwarp fake action to the specified block pos for the given start vec which is assumed to be the players coordinates (at feet level). Returns false as well as sends a chat message if etherwarp not possible. Checks the center of all 6 sides and all corners of the block for visibility.
Attempts to swap to and use the specified item. Returns true if successful.
Swaps to and uses the specified itemSlot.
Attempts to swap to and use the item with the specified name. Returns true if successful.