okay so thanks for the information on the packaging and declaring I just didn't have a copy of blockland to test on so I thought I would just give the most safe run down on how to do something in a way I knew would function as planned
however I think its better to use the onPickup function since you can dynamically change if it can be picked up under certain cases as opposed to making it statically unable to be picked up
Revised code
function pizzaItem::onPickUp(%this,%item,%pl,%a)
{
//Put your other code here and conditions here
}
no need to be packaged