MovingBlocks/Terasology — Issue #90: Implementation sample: Container Tree
Author: Cervator
Created: 2012-01-29 17:33:00+00:00
State: open

This is a potentially silly (as in: won't actually be a standard part of the final game) exercise in trying to see how an object can be two meta blocks (#73) at once. Namely a tree that is also a container (imagine a hollow tree).

Additionally my thought is that we can use this to demonstrate (via youtube video) how easily you can take two existing objects (say an existing tree and a chest) and make a new object that has characteristics from both, yet is a brand new independent block.

That would go something like:

1) Extract existing definition from the jar file (OakTrunkBlock + ChestBlock)
2) Create a new tree as a quick demo - ElmTrunk, purely a copy of OakTrunk with a new texture file provided for the faces
3) Copy the ElmTrunk into a HollowTreeBlock and register is as both a tree and a container meta block
4) Demonstrate that the Elm is just a tree, but that the HollowTree is also a container (needs way to easily place newly defined blocks / force tree growth)

So maybe ideally this would also take advantage of the addon block parser in #86