вот:
public String owner = "owner";
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if (!stack.hasTagCompound()) stack.stackTagCompound = new NBTTagCompound();
if (!world.isRemote) {
if(!stack.stackTagCompound.hasKey(owner))...