#Entity Inventory UI

1 messages · Page 1 of 1 (latest)

crystal sable
#

how can i bind this ui inventory to my entity

{
  "namespace": "jm",
  "InventoryTest": {
    "type": "grid",
    "size": [162, 54],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "grid_dimensions": [6, 1],
    "grid_item_template": "chest.chest_grid_item",
    "collection_name": "container_items"
  }
}```
Entity:
```js
{
  "format_version": "1.20.80",
  "minecraft:entity": {
    "description": {
      "identifier": "jm:test",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {},
    "components": {
      "minecraft:physics": {},
      "minecraft:inventory": {
        "container_type": "inventory",
        "inventory_size": 6
      },
      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:nameable": {
        "always_show": true
      }
    },
    "events": {}
  }
}```
copper swan
#

I am not sure how your inventory ui is setup, but most ones I hace seen are bind to a specific container name. And then for a custom entity container name you would set that name in your luangage files.

crystal sable
#

How

copper swan
#

Open up your inventory, the container name should display something like entity.inventory.containor, in your lang file set that equal to whatever you are using in your json code i.e. entity.inventory.containor=containor

crystal sable
#

how

copper swan
#

Not sure what you mean, I just listed the steps.

crystal sable
#

I never really worked with json ui I don't know what I have to do