What game, possibly a children's board game, is this die from or used to play?
This looks a lot like a dice from the game Tipsy Tower, specifically the Dutch version called 'Toren van Pisa'.
The goal of the game is to add pawns to the tower without it toppling. The colour rolled marks the floor where your pawn has to be placed. The star is a wildcard.