0 of 0

File information

Last updated

Original upload

Created by

HitaxasTV

Uploaded by

HitaxasTV

Virus scan

Safe to use

About this mod

Adds a new few game state queries that can be used by other mods to trigger actions depending on if an item exists in the player's inventory, or a chest, or if they have an item or tool selected in the hotbar. And adds an in game search function to locate items.

Requirements
Permissions and credits
Changelogs
Donations
This mod does a few things. The first is an in game item locator. Pressing O (will be configurable soon) will open up a "Locate Item" search box. Typing the item ID or the item's display name into the bar and pressing enter will tell you the location of the item, if it exists in either a player's inventory or a chest. If it is in a chest, it will also display a pointing finger on the chest that contains the item


The next thing this mod does is that it adds a few game state queries for use with trigger actions.

For checking if the player owns a specific item (can be in their inventory, or a chest):

 "Condition": "ItemChecker.HasItemID <item ID> <true/false>"

 to their trigger action. Replace <item ID> with the desired item ID (no <>), and replace <true/false> with either true or false (no <>)



For checking if the player has a specific item selected in the hotbar:

 "Condition": "ItemChecker.IsItemSelected <item ID> <true/false>"

Replace <item ID> with the desired item ID (no <>), and replace <true/false> with either true or false (no <>)



For checking if the player has a specific tool selected in the hotbar:

 "Condition": "ItemChecker.IsToolEquipped <item ID> <true/false>"

Replace <item ID> with the desired item ID (no <>), and replace <true/false> with either true or false (no <>)


To use these GSQs with Content Patcher you would need to check for the condition a bit differently.
First, you would need Esca's Modding Plugins (EMP) and have that mod listed as one of your mods dependencies.
An example of how to use the queries:

"When": {
"Esca.EMP/GameStateQuery: ItemChecker.HasItemID 74 true": "true"
},


This will tell CP to only run the action if the item with ID 74 (a prismatic shard) is owned by the player. Inversely, if you want to check for the opposite case you would change the first true case to false.


This mod also adds a unique trigger action that can be used:

"Trigger": "ICM"


This trigger checks for if an item has been added or removed from the player's inventory.