Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skaldarnar opened this issue May 30, 2020 · 0 comments
Open
Labels
Type: Bug Issues reporting and PRs fixing problems Type: Question Issue intended to help understanding something that is unclear

Comments

@skaldarnar
Copy link
Contributor

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

@skaldarnar skaldarnar added Type: Bug Issues reporting and PRs fixing problems Type: Question Issue intended to help understanding something that is unclear labels May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues reporting and PRs fixing problems Type: Question Issue intended to help understanding something that is unclear
Projects
None yet
Development

No branches or pull requests

1 participant