do i delete the script you gave me earlyer?
I don't know what you want, it just demonstrated how to preset events on bricks and how to preset multiple of them which displayed a text message.
%object.addEvent(true, 0, "onPickaxeHit", "Self", "Disappear", -1);
%object.addEvent(true, 0, "onPickaxeHit", "Client", "CenterPrint", "<color:00ff00><font:impact:30>+1 Emerald");
Just put those both in
function yourBrickData::onPlant(%data, %object)
{
//here
}