Bedrock Energistics Core
    Preparing search index...

    JSON UI Reference

    Reference for the JSON UI elements provided by Bedrock Energistics Core. These elements are available to any add-on that depends on Bedrock Energistics Core, you do not need to copy them into your own pack.

    See the Machine UI guide for an overview of how machine UIs work.

    Source: packs/RP/ui/fluffyalien/energisticscore/common_v2.json

    A collection of common UI utilities to be used by machine UIs.

    Fully qualified name: fluffyalien_energisticscore:common_v2.screen_template

    A template for a machine UI screen. Lays out the player inventory and hotbar in the bottom half of the screen and the machine's own content in the top half.

    Extend this then pass the fully qualified name of a panel containing your machine's content as '$content_ref'. Any panel will do, though 'content_template' is already sized and positioned to fit.

    Props:

    • $content_ref - The fully qualified name of the panel containing the machine-specific content.
    • $root_panel_size - The size of the screen root panel. Defaults to [180, 180].

    Fully qualified name: fluffyalien_energisticscore:common_v2.content_template

    A panel sized and positioned to fill the content area in the top half of a 'screen_template'.

    Extend this and add your controls, then pass its fully qualified name to 'screen_template' as '$content_ref'. This is a convenience, not a requirement, '$content_ref' accepts any panel.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_title

    A container title label, positioned to be used in a 'content_template' panel.

    Extend this and add a 'text' property to set the title. A translation key or plain text string can be used.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_slot_item

    A container slot that displays an item from the 'container_items' collection and allows the player to take from and place into it. Looks like a regular chest container slot.

    This element uses 'chest.chest_grid_item' as the container item. You can use props from that control as well, such as '$cell_overlay_ref'.

    Props:

    • $index - The index of the item in the 'container_items' collection. Defaults to 0.
    • $slot_size - The size of the slot. Defaults to [18, 18].
    • $slot_image_size - The size of the slot background image. Defaults to [18, 18]. This is forwarded to the '$cell_image_size' prop of 'chest.chest_grid_item'.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_slot_custom

    A container slot that takes a custom item control as '$container_item_ref'.

    This element is for advanced custom UIs. Use 'container_slot_item', 'container_slot_nobg', or 'container_slot_nobg_noclick' unless you need a slot with a custom container item.

    Props:

    • $index - The index of the item in the 'container_items' collection. Defaults to 0.
    • $container_item_ref - The fully qualified name of the container item panel to use.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_slot_nobg

    Extends: fluffyalien_energisticscore:common_v2.container_slot_custom

    A container slot with no background.

    The player can take from and place into this slot. Use 'container_slot_nobg_noclick' for slots that only display information.

    Props:

    • $index - The index of the item in the 'container_items' collection. Defaults to 0.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_slot_nobg_nohover

    Extends: fluffyalien_energisticscore:common_v2.container_slot_custom

    A container slot with no background and no hover or click functionality.

    Use this for slots that display only an image with no tooltip. Hover text does not display.

    Props:

    • $index - The index of the item in the 'container_items' collection. Defaults to 0.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_slot_nobg_noclick

    Extends: fluffyalien_energisticscore:common_v2.container_slot_custom

    A container slot with no background and no click functionality.

    Use this for slots that display information rather than hold items the player interacts with, such as storage bar segments and progress indicators. Hover text still displays.

    Props:

    • $index - The index of the item in the 'container_items' collection. Defaults to 0.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_nobg

    A container item with no background. Used as the item ref for 'container_slot_nobg'.

    This is a building block for 'container_slot_nobg'. You only need it directly when composing a custom container slot.

    Props:

    • $button_ref - The fully qualified name of the button panel to use. Defaults to 'fluffyalien_energisticscore:common_v2.container_item_button_nobg'.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_nobg_nohover

    A container item with no background and no hover or click functionality. Used as the item ref for 'container_slot_nobg_nohover'.

    This is a building block for 'container_slot_nobg_nohover'. You only need it directly when composing a custom container slot.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_nobg_noclick

    Extends: fluffyalien_energisticscore:common_v2.container_item_nobg

    A container item with no background and no click functionality. Used as the item ref for 'container_slot_nobg_noclick'.

    This is a building block for 'container_slot_nobg_noclick'. You only need it directly when composing a custom container slot.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_button_nobg

    A container item button with no background. Handles the click and focus behavior of a container slot.

    This is a building block for 'container_item_nobg'. You only need it directly when composing a custom container slot.

    Props:

    • $highlight_control - The fully qualified name of the highlight control to use. Defaults to 'fluffyalien_energisticscore:common_v2.container_item_highlight_nobg'.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_button_nobg_noclick

    Extends: fluffyalien_energisticscore:common_v2.container_item_button_nobg

    A container item button with no background and no click functionality. Used by 'container_item_nobg_noclick'.

    Every button mapping is redirected to 'button.container_slot_hovered', so the slot still responds to being hovered but the player cannot take or place items.

    Fully qualified name: fluffyalien_energisticscore:common_v2.container_item_highlight_nobg

    The hover control for a container item slot with no background. Displays the hover text of the item under the cursor.

    This is a building block for 'container_item_button_nobg'. You only need it directly when composing a custom container slot.

    Fully qualified name: fluffyalien_energisticscore:common_v2.machine_storage_bar

    A panel that displays a standard machine storage bar, which consists of 4 container item slots and a border. The bar is 16 pixels wide and 64 pixels tall.

    The border is split into three parts which are drawn on top of the container item slots, so use border images with transparency. The top part fills the first 16x16 pixels, the middle part fills the 16x32 pixels below it (the middle texture is tiled vertically to fill that area, so it should be 16x16), and the bottom part fills the last 16x16 pixels. This element is designed for a standard vertical storage bar. If you need a unique layout, you can use the 'container_slot_nobg_noclick' element to display the storage bar items in your own layout.

    Props:

    • $start_index - The index of the first item in the 'container_items' collection. This should match the 'startIndex' property from the machine definition. Defaults to 0.
    • $border_top_texture - The texture to use for the top 16x16 pixels of the border. Defaults to 'textures/fluffyalien/energisticscore/ui/sbar_border_inset_top'.
    • $border_middle_texture - The texture to use for the middle 16x32 pixels of the border. This texture is tiled vertically, so it should be 16x16. Defaults to 'textures/fluffyalien/energisticscore/ui/sbar_border_inset_middle'.
    • $border_bottom_texture - The texture to use for the bottom 16x16 pixels of the border. Defaults to 'textures/fluffyalien/energisticscore/ui/sbar_border_inset_bottom'.

    Deprecated.

    Source: packs/RP/ui/fluffyalien/energisticscore/common.json

    Legacy common UI utilities. This namespace is deprecated and will be removed in a future update. Please use 'common_v2' instead.

    Fully qualified name: fluffyalien_energisticscore:common.container_title

    Fully qualified name: fluffyalien_energisticscore:common.container_item_slot

    Fully qualified name: fluffyalien_energisticscore:common.container_item_slot_nobg

    Extends: fluffyalien_energisticscore:common.container_item_slot

    Fully qualified name: fluffyalien_energisticscore:common.container_slot_icon

    Extends: fluffyalien_energisticscore:common.container_item_slot

    Fully qualified name: fluffyalien_energisticscore:common.machine_storage_bar