Variable: options - ScreamingSandals/SimpleInventories GitHub Wiki
options
With options you can define the inventory size, page back, page forward, back and cosmetic item. You can also make it for certain categories so you can have more type of inventories in one tree gui. There are an inheritance system so if you change options for some category and insert category inside these category, it will inherit changed options. Remember that if you want to change something, you don't have to specify all options, specify just options that you want change.
options in YAML
data:
- stack: DIRT
options:
# items
backItem: DIRT
pageBackItem: STONE
pageForwardItem: SPONGE
cosmeticItem: GLASS
# size (don't change this if you don't know what are you doing)
rows: 4
render_actual_rows: 6
render_offset: 9
render_header_start: 0
render_footer_start: 45
items_on_row: 9
inventoryType: CHEST
items:
- DIRT
- STONE
categoryOptions in Groovy
In Yaml you can change options for subcategories. With Groovy, you can change it for the main category as well.
inventory {
categoryOptions {
backItem {
type 'DIRT'
}
pageBackItem {
type 'STONE'
}
pageForwardItem {
type 'SPONGE'
}
cosmeticItem {
type 'GLASS'
}
rows 4
renderActualRows 6
renderOffset 9
renderHeaderStart 0
renderFooterStart 45
itemsOnRow 9
inventoryType 'CHEST'
}
category('DIRT') {
categoryOptions {
backItem {
type 'BARRIER'
}
}
item('DIRT')
item('STONE')
}
}