Skip to content

bug(StartingInventory): nesting items not working for trunk block #19

@skaldarnar

Description

@skaldarnar

So, seemingly CoreAdvancedAssets:Trunk is an item/block that holds an inventory and thus should be able to be filled with items in a starting inventory:

{
  "uri": "CoreAdvancedAssets:Trunk",
    "items": [
      { "uri": "CoreAssets:Cobblestone", "quantity": 99 }
    ]
}

However, the item trunk.prefab does not have an InventoryComponent - only the trunkRegion.prefab does. However, the inventory will be retained via RetainBlockInventory when a trunk placed in the world is destroyed.

I don't know whether this is a restriction of the StartingInventorySystem or due to the structure of prefabs used to build the trunk functionality. I would suspect that we may to be able to make it behave better by having another look at the prefabs, but I'm not entirely sure about this - pinging @Qwertygiy for their opinion.


Related to Terasology/CoreAdvancedAssets

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugIssues reporting and PRs fixing problemsType: QuestionIssue intended to help understanding something that is unclear

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions