Core module extracted from Terasology