inventory-framework icon indicating copy to clipboard operation
inventory-framework copied to clipboard

File-based view

Open DevNatan opened this issue 2 years ago • 0 comments

Create view from file templates, proposal will be explained soon.

YAML format example
title: "My view"
size: 3
type: chest
auto-update: 20
layout:
  - "XXXXXXXXX"
  - "XOOOOOOOX"
  - "XXXXXXXXX"
slots:
  1:
    item:
      # describe stack somehow
    actions:
      - "message 'Hello!!!'"
  2:
    item:
      # describe stack somehow
    actions:
      - "close"

Context-specific

context:
  title: "My view"

Types

VirtualView

Name Type Description
title string The container title.
size int32 The container size.
type string The view type.
auto-update int64 View update interval (in ticks).
context VirtualView

DevNatan avatar Jun 26 '22 22:06 DevNatan