How does it work?
Here you configure the blocks that will be used as interface in Storage-config
Configuration file loc: /plugins/StorageMechanic/itemInterfaces/
ItemType | Usage |
---|---|
NEXT_PAGE | next page |
BACK_PAGE | back page |
SEARCH_PAGE | enter num page to go |
BLOCKED_ITEM | you can't take the item |
SEARCH_ITEM | search item in storage |
CLEAN_ITEM | clear items in specific slots and page |
PLACEHOLDER | put item in this item interface |
ACTION | execute action specific |
DROP_ITEMS | It will drop all the items according to your filter. |
Items which the player cannot move around in the Interface
BLOCKED_ITEM
Items:
item1:
itemType: blocked_item
item: 'mc:cyan_stained_glass_pane'
displayName: '<red> '
item2:
itemType: blocked_item
item: 'mc:red_stained_glass_pane'
displayName: '<red> '
Item to go to the next page
NEXT_PAGE
item3:
itemType: next_page
item: 'mc:arrow'
displayName: '<red>NEXT'
Item to go to previous page
BACK_PAGE
item4:
itemType: back_page
item: 'mc:arrow'
displayName: '<red>BACK'
Item to search for a specific page
SEARCH_PAGE
Propertie | Usage |
---|---|
max_distance | This is the maximum distance the player can open the page from the starting location. |
item5:
itemType: search_page
item: 'mc:stone'
displayName: '<red>SEARCH PAGE'
properties:
max_distance: 5.0
This item will be the one you will use to navigate to the item search menu.
ITEM_SEARCH
Propertie | Usage |
---|---|
inv-id | The id of the menu that will open in case you want to choose how to search for the item is defined. Link inventory |
def-action | If the default action is not defined in the property, the menu defined in inv-id will open. The default values are: BY_MATERIAL, BY_ITEM_ADAPTER , BY_DISPLAY_NAME |
inv-anvil-id | The inventory that has to be opened in case the input type is anvil Link inventory |
inv-result-id | The id of the menu that will open if you search with SIGN or when clicking on the results from ANVIL Menu Link inventory |
search-input | Types of entries for item search: SIGN , ANVIL |
.
itemSearch:
itemType: SEARCH_ITEM #type
item: 'mc:diamond'
displayName: '<gold>Search items'
properties:
inv-id: search-items
def-action: BY_MATERIAL #BY_MATERIAL, BY_ITEM_ADAPTER, BY_DISPLAY_NAME
inv-anvil-id: search-items-anvil
inv-result-id: search-items-result
search-input: ANVIL #SIGN, ANVIL
This makes it delete the items in the specified slots or pages.
CLEAN_ITEM
Propertie | Usage |
---|---|
pages | Pages in which the content in the specific slot is deleted |
slots | Slots in which content will be removed |
itemCleaner:
itemType: CLEAN_ITEM
item: 'mc:stone'
displayName: '<gold>Clean storage.'
properties:
pages: [0-2]
slots: [0-53]
This is an item that cannot be removed and will only allow a specific item to be placed on top of it.
PLACEHOLDER
Propertie | Usage |
---|---|
whitelist | List of items that you can put on top of the placeholder |
blacklist | List of items that you cannot put on top of the placeholder |
itemPlaceHolder:
itemType: PLACEHOLDER
item: 'mc:stone'
displayName: '<gold>Only diamonds.'
properties:
whitelist:
enabled: true
list:
- mc:diamond #itemId
- mc:emerald
- ia:iasurvival:ruby
blacklist:
enabled: false
list:
- mc:stone #itemId
Execute action as Item Interface Executator event.
ACTION
Propertie | Usage |
---|---|
action_id | the id of the action config |
itemAction:
itemType: ACTION
item: 'mc:redstone'
displayName: 'Execute action!'
properties:
action_id: action5 # action id config
It will drop all the items according to your filter.
DROP_ITEMS
Propertie | Usage |
---|---|
inv-id | The id of the inventory that will be opened to choose how you want to filter the items dropped. Link inventory |
def-action | If this option is not specified, the selection menu will open to select how you want to filter. If it is enabled, clicking on the item will be filtered by the filter applied here. The possible filters are: BY_MATERIAL , BY_ITEM_ADAPTER , BY_DISPLAY_NAME , BY_ACTUAL_PAGE , ALL_PAGES |
.
itemItemsDrop:
itemType: DROP_ITEMS
item: 'mc:stone'
displayName: '<gold>Click to open dropMenu.'
properties:
inv-id: drop-items
def-action: BY_MATERIAL #BY_MATERIAL , BY_ITEM_ADAPTER , BY_DISPLAY_NAME , BY_ACTUAL_PAGE , ALL_PAGES