Remove Item Action
Thebtc_remove_item_action removes specific custom RPG items from a player’s inventory. It scans the inventory (including hotbar and offhand) for items matching the custom Item ID.
Type: Action Entry
ID: btc_remove_item_action
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
items | List<BtcItemRemove> | [] | List of items to remove. |
itemId | String | "" | Shortcut to remove a single item ID. |
amount | Int | 1 | Shortcut amount for itemId. |
BtcItemRemove Structure
| Field | Type | Default | Description |
|---|---|---|---|
id | String | "" | The custom item ID to target. |
amount | Int | 1 | Quantity to remove. |
Behavior
- Scans the player’s inventory.
- Identifies custom items stored via NBT/PersistentDataContainer matching the configured IDs.
- Removes the specified total amount, taking from multiple slots if necessary.
- Does not drop items on the ground; they are simply deleted.